/* ============================================
   DropForge — Blog Post CSS
   Deep indigo + gold, article-focused layout
   ============================================ */

:root {
  --bg: #0A0E1C;
  --bg-alt: #0D1120;
  --surface: #111828;
  --surface-2: #182038;
  --gold: #C8A96E;
  --gold-dim: rgba(200, 169, 110, 0.12);
  --gold-bright: rgba(200, 169, 110, 0.25);
  --teal: #4AAFA8;
  --teal-dim: rgba(74, 175, 168, 0.12);
  --indigo: #3D52A0;
  --indigo-dim: rgba(61, 82, 160, 0.15);
  --text: #F0F0F0;
  --text-muted: #8892a4;
  --text-dim: #4a5568;
  --border: rgba(255,255,255,0.06);
  --border-bright: rgba(255,255,255,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(10, 14, 28, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.topbar-logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { font-size: 18px; color: var(--gold); }
.logo-text { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.nav-link:hover { color: var(--text); }
.nav-cta {
  background: var(--gold); color: #0A0E1C;
  padding: 7px 16px; border-radius: 7px;
  font-size: 12px; font-weight: 600;
  text-decoration: none; transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── Article Header ── */
.article-header {
  padding: 120px 24px 64px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.article-header-inner {
  max-width: 760px;
  margin: 0 auto;
}
.article-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-dim);
  margin-bottom: 20px;
}
.article-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--gold); }
.article-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.tag {
  font-size: 11px; color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-bright);
  padding: 3px 10px; border-radius: 100px;
  letter-spacing: 0.03em;
}
.article-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}
.article-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 680px;
}
.article-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim);
}
.meta-sep { color: var(--text-dim); }

/* ── Article Body Layout ── */
.article-body {
  padding: 64px 24px 96px;
}
.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

/* ── Sidebar ── */
.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.sidebar-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.sidebar-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 600;
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 10px; }
.toc-list a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  line-height: 1.4;
}
.toc-list a:hover { color: var(--gold); border-left-color: var(--gold); }

.sidebar-cta {
  background: var(--surface);
  border: 1px solid var(--gold-bright);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.sidebar-cta-label {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}
.sidebar-cta p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.sidebar-cta-btn {
  display: block;
  background: var(--gold);
  color: #0A0E1C;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.sidebar-cta-btn:hover { opacity: 0.85; }
.sidebar-cta-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 10px;
}

/* ── Article Content ── */
.article-content {
  max-width: 720px;
}
.article-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 56px 0 20px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.article-content h2:first-child { margin-top: 0; }
.article-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}
.article-content em { color: var(--text); font-style: normal; font-weight: 500; }

/* ── Callout Box ── */
.callout {
  display: flex; gap: 16px;
  background: var(--indigo-dim);
  border: 1px solid rgba(61, 82, 160, 0.3);
  border-radius: 10px;
  padding: 20px;
  margin: 28px 0;
}
.callout-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.callout strong { color: var(--text); display: block; margin-bottom: 4px; }
.callout p { margin: 0; font-size: 14px; }
.callout div { font-size: 14px; color: var(--text-muted); }

/* ── Frequency Table ── */
.freq-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
  font-size: 14px;
}
.freq-row {
  display: grid;
  grid-template-columns: 100px 100px 1fr 1fr;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  color: var(--text-muted);
}
.freq-row:last-child { border-bottom: none; }
.freq-header-row {
  background: var(--surface-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
}
.freq-row strong { color: var(--text); }

/* ── Fork Guide ── */
.fork-guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}
.fork-item {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  align-items: flex-start;
}
.fork-hz {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-bright);
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.fork-info strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 6px; }
.fork-info p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── Use Guide ── */
.use-guide {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}
.use-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-n {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-bright);
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-body strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 6px; }
.step-body p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── Buying Guide ── */
.criteria-list {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.criteria-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.criteria-list li strong { color: var(--text); display: block; margin-bottom: 4px; }

/* ── Product Mention ── */
.product-mention {
  background: var(--surface);
  border: 1px solid var(--gold-bright);
  border-radius: 12px;
  padding: 28px;
  margin: 48px 0;
}
.product-mention-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
}
.product-mention h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.product-mention p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.product-mention-actions { display: flex; align-items: center; gap: 16px; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold);
  color: #0A0E1C;
  font-weight: 600; font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-bright);
  padding-bottom: 2px;
  transition: opacity 0.15s;
}
.btn-ghost:hover { opacity: 0.75; }

/* ── Article CTA ── */
.article-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}
.article-cta h3 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.article-cta p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.article-cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.faq-q {
  width: 100%; background: var(--surface);
  border: none; outline: none;
  color: var(--text);
  font-size: 14px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  transition: background 0.15s;
}
.faq-q::after { content: '+'; color: var(--gold); font-size: 18px; margin-left: auto; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-q:hover { background: var(--surface-2); }
.faq-a {
  display: none;
  background: var(--bg-alt);
  padding: 0 20px 18px;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-top: 14px; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.footer-logo-mark { font-size: 16px; color: var(--gold); }
.footer-logo-text { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; }
.footer-tagline { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--text-dim); }
.footer-sep { color: var(--text-dim); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar { position: static; flex-direction: row; overflow-x: auto; gap: 16px; }
  .sidebar-toc, .sidebar-cta { min-width: 240px; }
}
@media (max-width: 600px) {
  .article-header { padding: 100px 16px 40px; }
  .article-body { padding: 40px 16px 64px; }
  .freq-row { grid-template-columns: 80px 80px 1fr; font-size: 13px; }
  .freq-row > div:last-child { display: none; }
  .article-cta-actions { flex-direction: column; }
  .product-mention-actions { flex-direction: column; align-items: flex-start; }
}