/* ============================================================
   VoxSports — article.css
   Extracted verbatim from the live guide page's inline <style>
   (guides/sports-betting-strategy/index.html), so render_article's
   output matches the site's actual existing pages pixel-for-pixel.
   ============================================================ */

:root {
  --bg: #080c10;
  --bg2: #0d1219;
  --surface: #111820;
  --surface2: #161e28;
  --border: #1e2d3d;
  --accent: #00d4ff;
  --accent2: #ff6b35;
  --accent3: #39e96b;
  --gold: #f5c842;
  --text: #e8eef4;
  --muted: #6b8099;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ─── HEADER ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,12,16,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo span { color: var(--accent); }

nav { display: flex; gap: 28px; align-items: center; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
nav a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #080c10 !important;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.9; }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 24px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border); }

/* ─── ARTICLE LAYOUT ─── */
/* Single centred column.
   On the hand-built guide page `.article-wrap` is the 2-column shell around
   <main> + <aside class="sidebar">. render_article() instead puts the class on
   the article container itself, whose children are .breadcrumb and <article> —
   with a `1fr 300px` grid the article lands in the 300px sidebar track. */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

/* ─── HERO ─── */
.article-hero {
  margin-bottom: 36px;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text);
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.article-lead {
  font-size: 19px;
  line-height: 1.65;
  color: #a8bdd0;
  max-width: 680px;
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #080c10;
  flex-shrink: 0;
}

.author-name { font-size: 14px; font-weight: 600; }
.author-role { font-size: 12px; color: var(--muted); }

.meta-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.meta-stat svg { opacity: 0.5; }

/* ─── TABLE OF CONTENTS ─── */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 44px;
}

.toc-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 8px; }
.toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.toc a:hover { color: var(--accent); }

/* ─── CONTENT SECTIONS ─── */
.article-body h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.3px;
  margin: 52px 0 18px;
  color: var(--text);
  padding-top: 8px;
}

.article-body h2::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 12px;
}

.article-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: 32px 0 12px;
  color: var(--text);
}

.article-body p { margin-bottom: 18px; }

.article-body strong { color: var(--text); font-weight: 600; }

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0,212,255,0.3);
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------
   Classes emitted by render_article() that the guide page does
   not use — without these they fall back to plain body text.
   ------------------------------------------------------------ */

/* The breadcrumb sits inside .article-wrap here, not above it,
   so drop its own centring and horizontal padding. */
.article-wrap > .breadcrumb {
  max-width: none;
  margin: 0 0 4px;
  padding: 0 0 8px;
}

.meta-date { font-size: 13px; color: var(--muted); }

.article-intro {
  font-size: 19px;
  line-height: 1.65;
  color: #a8bdd0;
  margin-bottom: 8px;
}

.article-intro p { margin-bottom: 16px; }

.section-content { margin-bottom: 4px; }

.article-conclusion {
  margin-top: 36px;
  padding: 20px 24px;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.18);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.article-conclusion p:last-child { margin-bottom: 0; }

.author-box-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ─── CALLOUT BOXES ─── */
.callout {
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  gap: 14px;
}

.callout-key {
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.2);
  border-left: 4px solid var(--accent);
}

.callout-warn {
  background: rgba(245,200,66,0.07);
  border: 1px solid rgba(245,200,66,0.2);
  border-left: 4px solid var(--gold);
}

.callout-tip {
  background: rgba(57,233,107,0.07);
  border: 1px solid rgba(57,233,107,0.2);
  border-left: 4px solid var(--accent3);
}

.callout-icon { font-size: 22px; flex-shrink: 0; line-height: 1; margin-top: 2px; }

.callout-content { flex: 1; }

.callout-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.7;
}

.callout-key .callout-label { color: var(--accent); }
.callout-warn .callout-label { color: var(--gold); }
.callout-tip .callout-label { color: var(--accent3); }

.callout p { margin-bottom: 0; font-size: 15px; line-height: 1.6; }

/* ─── DATA TABLE ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}

.data-table thead th {
  background: var(--surface2);
  padding: 12px 16px;
  text-align: left;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table tbody tr:hover { background: var(--surface); }

.data-table .highlight { color: var(--accent); font-family: 'DM Mono', monospace; font-weight: 500; }
.data-table .green { color: var(--accent3); }
.data-table .gold { color: var(--gold); }

/* ─── FORMULA BOX ─── */
.formula-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  line-height: 1.8;
}

.formula-label {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.formula { color: var(--accent3); }
.formula-result { color: var(--accent); margin-top: 8px; }

/* ─── NUMBERED STEPS ─── */
.steps { margin: 24px 0; }

.step {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h4 {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.step-content p { font-size: 15px; color: #a8bdd0; margin: 0; }

/* ─── STAT CARDS ─── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ─── FAQ ─── */
.faq { margin: 20px 0; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  transition: background 0.2s;
}

.faq-q:hover { background: var(--surface2); }

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.25s, background 0.2s;
  color: var(--accent);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(0,212,255,0.15);
}

.faq-a {
  display: none;
  padding: 16px 20px 18px;
  font-size: 15px;
  color: #a8bdd0;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

.faq-item.open .faq-a { display: block; }

/* ─── BOOKMAKER CTA ─── */
.bookie-section {
  margin: 48px 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.bookie-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 6px;
}

.bookie-section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.bookie-cards { display: flex; flex-direction: column; gap: 12px; }

.bookie-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  /* Fix (found during mobile audit): this <a> never set `color`,
     so bookmaker names fell through to the browser default link
     blue/purple against the dark theme. Re-anchored to tokens. */
  color: var(--text);
}

.bookie-card:hover {
  border-color: var(--accent);
  background: var(--surface2);
}

.bookie-logo {
  width: 52px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  color: #080c10;
}

.bookie-info { flex: 1; min-width: 0; }
.bookie-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; color: var(--text); }
.bookie-offer { font-size: 13px; color: var(--accent3); font-weight: 500; }
.bookie-rating { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--gold); }

.bookie-btn {
  background: var(--accent);
  color: #080c10;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── SIDEBAR ─── */
.sidebar { position: sticky; top: 80px; }

.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-links { display: flex; flex-direction: column; gap: 8px; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.sidebar-link:hover { background: var(--surface2); color: var(--accent); }

.sidebar-link-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.sidebar-cta {
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(255,107,53,0.06));
  border-color: rgba(0,212,255,0.25);
  text-align: center;
}

.sidebar-cta-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 8px;
}

.sidebar-cta p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #080c10;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  width: 100%;
  text-align: center;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }

.sidebar-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.s-stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}

.s-stat-val {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.s-stat-label { font-size: 11px; color: var(--muted); }

/* ─── AUTHOR BOX ─── */
.author-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin: 52px 0 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-box-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  color: #080c10;
  flex-shrink: 0;
}

.author-box-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 2px;
}

.author-box-role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}

.author-box-bio { font-size: 14px; color: #a8bdd0; line-height: 1.65; }

/* ─── FOOTER ─── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 60px;
  text-align: center;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }

.footer-disclaimer {
  font-size: 12px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.age-badge {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  margin-right: 6px;
}

/* ─── READING PROGRESS ─── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 200;
  width: 0%;
  transition: width 0.1s;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  h1 { font-size: 34px; }
  .article-wrap { padding: 0 16px; padding-top: 24px; padding-bottom: 60px; }
  .stat-grid { grid-template-columns: 1fr; }
  .bookie-section { padding: 20px; }
  nav { display: none; }
}
