/* ── AON DARK BLOG THEME ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;700;900&display=swap');

:root {
  --bg: #060810;
  --bg2: #0a0c16;
  --card-bg: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.07);
  --text: #ffffff;
  --muted: #7a7a8a;
  --violet: #8a2be2;
  --cyan: #00d4ff;
  --green: #22c55e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── NAVIGATION ─────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6,8,16,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Orbitron', monospace;
  font-weight: 700; font-size: 0.9rem;
  color: #fff; text-decoration: none;
  letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 10px;
}
.nav-brand .or  { color: var(--cyan); }
.nav-brand .dot { color: var(--violet); }
.nav-tag {
  font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.16em; padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px; color: var(--muted);
}

.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  font-size: 0.85rem; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--violet) !important;
  color: #fff !important; padding: 8px 20px;
  border-radius: 8px; font-weight: 600 !important;
  font-size: 0.82rem !important;
}
.nav-cta:hover { opacity: 0.85; color: #fff !important; }

/* ── BLOG HERO ──────────────────────────────────────── */
.blog-hero {
  position: relative;
  padding: 140px 28px 80px;
  text-align: center;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(138,43,226,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--cyan); font-weight: 600;
  margin-bottom: 20px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%  { box-shadow: 0 0 0 0 rgba(0,212,255,0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0,212,255,0); }
  100%{ box-shadow: 0 0 0 0 rgba(0,212,255,0); }
}

.blog-hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.blog-hero-title .or  { color: var(--cyan); }
.blog-hero-title .dot { color: var(--violet); }

.blog-hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted); max-width: 520px;
  margin: 0 auto; line-height: 1.7;
}

/* ── POST GRID ──────────────────────────────────────── */
.post-grid-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px 80px;
  position: relative; z-index: 1;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(138,43,226,0.3);
  box-shadow: 0 16px 48px rgba(138,43,226,0.1);
}

.post-card-image-link { display: block; text-decoration: none; }

.post-card-image {
  height: 200px;
  background-size: cover; background-position: center;
  position: relative;
}
.post-card-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(6,8,16,0.9) 100%);
}

.post-card-content { padding: 24px; }

.post-card-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}

.post-tag {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 700; color: var(--cyan); text-decoration: none;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 3px 10px; border-radius: 4px;
  transition: background 0.2s;
}
.post-tag:hover { background: rgba(0,212,255,0.15); }

.post-date {
  font-size: 0.78rem; color: var(--muted);
}

.post-card-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.05rem; font-weight: 700;
  line-height: 1.35; margin-bottom: 10px;
}
.post-card-title a {
  color: #fff; text-decoration: none;
  transition: color 0.2s;
}
.post-card-title a:hover { color: var(--cyan); }

.post-card-excerpt {
  font-size: 0.88rem; color: var(--muted);
  line-height: 1.6; margin-bottom: 20px;
}

.post-card-cta {
  font-size: 0.82rem; font-weight: 600;
  color: var(--violet); text-decoration: none;
  transition: color 0.2s;
}
.post-card-cta:hover { color: var(--cyan); }

/* ── SINGLE POST ────────────────────────────────────── */
.post-main { padding-top: 64px; }

.post-hero {
  position: relative; height: 70vh; min-height: 500px;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(6,8,16,0.3) 0%, rgba(6,8,16,0.95) 100%);
}
.post-hero-content {
  position: relative; z-index: 2;
  max-width: 860px; width: 100%;
  padding: 0 32px 52px;
}

.post-header-plain {
  max-width: 860px; margin: 0 auto;
  padding: 80px 32px 40px;
}

.post-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900; line-height: 1.15;
  margin: 16px 0 20px;
  letter-spacing: -0.02em;
}

.post-byline {
  font-size: 0.85rem; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.post-byline strong { color: rgba(255,255,255,0.8); }
.sep { color: rgba(255,255,255,0.2); }

.post-body-wrap {
  max-width: 780px; margin: 0 auto;
  padding: 48px 32px 80px;
}

/* ── PROSE CONTENT ──────────────────────────────────── */
.gh-content { color: rgba(255,255,255,0.85); line-height: 1.8; }

.gh-content h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem; font-weight: 700;
  color: #fff; margin: 2.5em 0 0.8em;
}
.gh-content h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.15rem; color: var(--cyan);
  margin: 2em 0 0.6em;
}
.gh-content p { margin-bottom: 1.4em; }
.gh-content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.gh-content ul, .gh-content ol {
  margin: 0 0 1.4em 1.4em;
}
.gh-content li { margin-bottom: 0.4em; }
.gh-content blockquote {
  border-left: 3px solid var(--violet);
  padding: 12px 20px;
  background: rgba(138,43,226,0.06);
  border-radius: 0 8px 8px 0;
  margin: 1.5em 0;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}
.gh-content code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.07);
  padding: 2px 6px; border-radius: 4px;
  font-size: 0.88em;
}
.gh-content pre {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 20px;
  overflow-x: auto; margin: 1.5em 0;
}
.gh-content pre code { background: none; padding: 0; font-size: 0.85em; }
.gh-content img {
  max-width: 100%; border-radius: 12px;
  border: 1px solid var(--border);
  margin: 1em 0;
}
.gh-content hr {
  border: none; border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* ── POST NAV ───────────────────────────────────────── */
.post-nav-wrap {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.post-nav { max-width: 780px; margin: 0 auto; }
.post-nav-back {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s;
}
.post-nav-back:hover { color: var(--cyan); }

/* ── PAGINATION ─────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center;
  align-items: center; gap: 16px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.pagination a {
  padding: 10px 24px; border-radius: 8px;
  background: var(--card-bg); border: 1px solid var(--border);
  color: #fff; text-decoration: none; font-size: 0.88rem;
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--violet); color: var(--cyan); }
.page-number { color: var(--muted); font-size: 0.85rem; }

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 28px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  font-family: 'Orbitron', monospace;
  font-weight: 700; font-size: 0.85rem;
  color: rgba(255,255,255,0.5); text-decoration: none;
  letter-spacing: 0.1em;
}
.footer-brand span { color: var(--cyan); }
.footer-copy { font-size: 0.78rem; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 0.8rem; color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { padding: 0 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 120px 20px 60px; }
  .post-hero-content { padding: 0 20px 36px; }
  .post-body-wrap { padding: 32px 20px 60px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .blog-hero-title { font-size: 1.8rem; }
  .post-title { font-size: 1.5rem; }
  .post-hero { height: 55vh; min-height: 400px; }
}
