/* ============================================================
   SEO Content Pages — Shared Styles
   ============================================================ */

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.site-nav a:hover { color: var(--text); border-color: var(--border); }
.site-nav a.active { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-glow); }

/* Content pages layout */
.content-page {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 100px;
}

/* Hero */
.page-hero {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.page-hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text);
}
.page-hero h1 span { color: var(--accent); }
.page-hero .lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}

/* Article content */
.article-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.article-section {}
.article-section h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.article-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  margin-top: 28px;
}
.article-section p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.article-section p strong { color: var(--text); }
.article-section ul, .article-section ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.article-section li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.article-section li strong { color: var(--text); }

/* Code block */
.code-block {
  background: #1e1a3f;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 16px 0;
  overflow-x: auto;
}
.code-block pre {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c7c2ff;
  line-height: 1.8;
  white-space: pre;
}
.code-block .comment { color: #7c74b8; }

/* Callout box */
.callout {
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
}
.callout p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}
.callout strong { color: var(--accent); }

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
}
.compare-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.6;
}
.compare-table td:first-child { font-weight: 700; color: var(--text); font-family: var(--font-mono); font-size: 13px; }
.compare-table tr:hover td { background: var(--surface2); }
.badge-good { color: var(--success); font-weight: 600; }
.badge-ok   { color: var(--warning); font-weight: 600; }
.badge-poor { color: var(--error); font-weight: 600; }

/* Step cards */
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}
.step-card {
  display: flex;
  gap: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.step-card-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.step-card-body h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.step-card-body p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* FAQ items */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: var(--surface2);
  border: none;
  padding: 16px 20px;
  text-align: left;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--border); }
.faq-q .chevron { flex-shrink: 0; transition: transform 0.25s ease; color: var(--accent); }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 20px 16px;
  background: var(--surface2);
}
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 12px 0 0; }

/* CTA banner */
.cta-banner {
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-top: 16px;
}
.cta-banner h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.cta-banner p  { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.cta-banner a  {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 40px;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(91, 79, 233, 0.30);
}
.cta-banner a:hover { background: #4338ca; transform: translateY(-2px); }

/* Breadcrumb */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-dim); }

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}
.stat-card .stat-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* TOC */
.toc {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.toc h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.toc ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.toc li { font-size: 14px; }
.toc a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.toc a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .content-page { padding: 24px 16px 60px; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px 10px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav a { font-size: 12px; padding: 5px 10px; }
}
