/* SONIQ Blog — Shared Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --bg3: #13131f;
  --violet: #7c3aed;
  --violet-light: #9d5af5;
  --cyan: #06b6d4;
  --text: #f1f0ff;
  --text-muted: #8b8aab;
  --text-dim: #5a597a;
  --border: rgba(124, 58, 237, 0.2);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── SITE NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo { font-size: 1.2rem; font-weight: 800; color: var(--violet-light); text-decoration: none; letter-spacing: -0.02em; }
.site-nav-links { display: flex; gap: 24px; align-items: center; }
.site-nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.15s; }
.site-nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--violet) !important; color: #fff !important; padding: 8px 18px !important; border-radius: 8px !important; font-weight: 600 !important; }

/* ── BLOG HERO ── */
.post-hero {
  position: relative;
  padding: 80px max(24px, calc((100vw - 800px) / 2)) 48px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(124,58,237,0.08) 0%, transparent 100%);
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.post-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.post-category {
  display: inline-block;
  background: rgba(124, 58, 237, 0.15);
  color: var(--violet-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.post-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.post-hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 28px;
}
.post-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.post-meta span { display: flex; align-items: center; gap: 6px; }

/* ── ARTICLE BODY ── */
.post-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px;
}
.post-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
  color: var(--text);
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.post-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.post-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}
.post-body p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.025rem; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body ul, .post-body ol {
  color: var(--text-muted);
  padding-left: 24px;
  margin-bottom: 20px;
  font-size: 1.025rem;
}
.post-body li { margin-bottom: 8px; line-height: 1.7; }
.post-body a { color: var(--violet-light); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--text); }
.post-body blockquote {
  border-left: 3px solid var(--violet);
  padding: 16px 24px;
  margin: 28px 0;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-style: italic;
}
.post-body code {
  font-family: var(--font-mono);
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--cyan);
}

/* ── CALLOUT BOX ── */
.callout {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
}
.callout-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 10px;
}
.callout p { margin-bottom: 0; }

/* ── CTA BOX ── */
.cta-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 16px;
  padding: 36px 40px;
  margin: 48px 0;
  text-align: center;
}
.cta-box h3 { color: var(--text); font-size: 1.4rem; margin-bottom: 12px; }
.cta-box p { color: var(--text-muted); margin-bottom: 24px; }
.cta-btn {
  display: inline-block;
  background: var(--violet);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 32px rgba(124, 58, 237, 0.5); color: #fff; text-decoration: none; }

/* ── RELATED POSTS ── */
.related-section {
  border-top: 1px solid var(--border);
  padding: 56px max(24px, calc((100vw - 1100px) / 2));
  background: var(--bg2);
}
.related-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 28px; color: var(--text); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.related-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}
.related-card:hover { border-color: var(--violet-light); transform: translateY(-2px); }
.related-card-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--violet-light); margin-bottom: 8px; }
.related-card-title { font-size: 0.95rem; font-weight: 600; color: var(--text); line-height: 1.4; }

/* ── PILLAR BADGE ── */
.pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #22d3ee;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── BLOG INDEX CARDS ── */
.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
.blog-card:hover { border-color: var(--violet-light); transform: translateY(-2px); }
.blog-card-category { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--violet-light); margin-bottom: 10px; }
.blog-card-title { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.3; }
.blog-card-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.blog-card-meta { font-size: 0.8rem; color: var(--text-dim); }
.blog-pillar-card { border-color: rgba(6, 182, 212, 0.25); }

/* ── FOOTER ── */
.blog-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px max(24px, calc((100vw - 1200px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.blog-footer-logo { font-size: 1rem; font-weight: 800; color: var(--violet-light); text-decoration: none; }
.blog-footer-links { display: flex; gap: 20px; }
.blog-footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.85rem; }
.blog-footer-links a:hover { color: var(--text-muted); }
.blog-footer-copy { color: var(--text-dim); font-size: 0.8rem; }

/* ── HERO IMAGE PLACEHOLDER ── */
.post-hero-image {
  max-width: 800px;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
}
.post-hero-image.placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.06));
  font-size: 4rem;
}
.post-hero-image.placeholder::before {
  content: attr(data-icon);
}
.post-hero-image img { width: 100%; display: block; }

/* ── TABLE OF CONTENTS ── */
.toc {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 0 0 40px;
}
.toc-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 14px;
}
.toc ol {
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toc li { margin: 0; }
.toc a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.toc a:hover { color: var(--violet-light); text-decoration: none; }

/* ── HIGHLIGHT BOX (stats grid) ── */
.highlight-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 28px 0 40px;
}
.highlight-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color 0.15s;
}
.highlight-item:hover { border-color: rgba(124,58,237,0.45); }
.highlight-item .hi-value {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--violet-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.highlight-item .hi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── ACCENT STRIP ── */
.accent-strip {
  border-left: 3px solid var(--violet);
  padding: 12px 20px;
  background: rgba(124,58,237,0.06);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}
.accent-strip strong { color: var(--text); }

/* ── INLINE IMAGE ── */
.inline-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid var(--border);
}
.inline-image img { width: 100%; display: block; }
.inline-image figcaption {
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--bg2);
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .post-body { padding: 40px 20px; }
  .cta-box { padding: 28px 24px; }
  .related-section { padding: 40px 20px; }
  .site-nav-links .hide-mobile { display: none; }
  .highlight-box { grid-template-columns: repeat(2, 1fr); }
  .post-hero-image.placeholder { height: 160px; font-size: 3rem; }
}
