/* ══════════════════════════════════════════════════════════════════════════
   THE ODDS NETWORK — Shared Design System for Server-Rendered Pages
   Used by: pricing, about, accuracy, analysts, blog, player, legal pages
   Matches: landing.html + dashboard.css visual language
   ══════════════════════════════════════════════════════════════════════════ */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@600,700&display=swap');

/* ── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:      #080b12;
  --s1:      #0d1117;
  --s2:      #131a27;
  --s3:      #1a2332;
  --border:  rgba(136,180,255,0.06);
  --border2: rgba(136,180,255,0.12);
  --text:    #e1e7ef;
  --muted:   #8a9bb5;
  --muted2:  #96a7bf;
  --green:   #00e68a;
  --green2:  #00c974;
  --red:     #f44060;
  --orange:  #f59e0b;
  --blue:    #60a5fa;
  --yellow:  #eab308;

  /* Tier colors */
  --tier-s:  #ff3d5a;
  --tier-a:  #f59e0b;
  --tier-b:  #60a5fa;
  --tier-c:  #6b7280;

  /* Typography */
  --display: 'Clash Display', 'Bebas Neue', 'Orbitron', sans-serif;
  --sans:    'DM Sans', -apple-system, sans-serif;
  --mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --sp-4:  4px;
  --sp-8:  8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-32: 32px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
}

/* ── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── AMBIENT ATMOSPHERE ────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(0,230,138,0.03) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(96,165,250,0.02) 0%, transparent 50%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
}

/* ── NAVIGATION (matches landing page) ─────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,11,18,0.88);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}
.nav::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,230,138,0.012) 2px, rgba(0,230,138,0.012) 4px);
  z-index: -1;
}
.nav::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,230,138,0.25) 30%, rgba(0,230,138,0.25) 70%, transparent 100%);
}
.nav-brand {
  font-family: var(--display);
  font-size: 16px; letter-spacing: 3px;
  color: var(--text); white-space: nowrap;
  position: relative; z-index: 2;
}
.nav-brand span { color: var(--green); }
.nav-links {
  display: flex; gap: 24px; align-items: center;
}
.nav-links a {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted2); letter-spacing: 0.5px;
  transition: color 0.15s; position: relative;
}
.nav-links a:hover { color: var(--green); text-decoration: none; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px;
  background: var(--green); transform: scaleX(0); transition: transform 0.2s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1px;
  background: var(--green); color: #000; border: none; border-radius: var(--radius-sm);
  padding: 8px 20px; cursor: pointer; transition: all .15s; text-decoration: none;
  display: inline-block;
}
.nav-cta:hover {
  background: #00ff9d; transform: translateY(-1px); text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,230,138,0.25);
}

/* ── LAYOUT ────────────────────────────────────────────────────────────── */
.container {
  max-width: 960px; margin: 0 auto;
  padding: 40px 24px 60px;
  position: relative; z-index: 1;
}
.breadcrumb {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); margin-bottom: var(--sp-24);
}
.breadcrumb a { color: var(--muted2); }

/* ── TYPOGRAPHY ────────────────────────────────────────────────────────── */
.page-title {
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700; letter-spacing: 1px;
  margin-bottom: var(--sp-8);
  text-transform: uppercase;
}
.page-title span[style*="green"] {
  text-shadow: 0 0 30px rgba(0,230,138,0.15);
}
.page-sub {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); margin-bottom: var(--sp-32);
  line-height: 1.6;
}

/* ── CARDS ──────────────────────────────────────────────────────────────── */
.take-card {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-20); margin-bottom: var(--sp-16);
  transition: border-color .15s, box-shadow .15s;
}
.take-card:hover {
  border-color: var(--border2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Analyst take cards */
.take-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.take-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.take-analyst-name { font-family: var(--sans); font-size: 15px; font-weight: 700; }
.take-tagline { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.take-prop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.take-player { font-family: var(--sans); font-size: 16px; font-weight: 600; }
.take-line { font-family: var(--mono); font-size: 13px; font-weight: 700; }
.take-tier { font-family: var(--mono); font-size: 10px; color: var(--muted); background: var(--s2); padding: 2px 8px; border-radius: 4px; }
.take-text { font-family: var(--sans); font-size: 13px; color: var(--muted2); line-height: 1.8; font-style: italic; margin-bottom: 14px; }
.take-footer { display: flex; align-items: center; justify-content: space-between; }
.take-verdict { font-family: var(--mono); font-size: 12px; font-weight: 700; }

/* Result badges */
.result-badge { padding: 4px 10px; border-radius: 4px; font-family: var(--mono); font-size: 10px; font-weight: 700; }
.result-hit { background: rgba(0,230,138,0.15); color: var(--green); }
.result-miss { background: rgba(244,64,96,0.15); color: var(--red); }
.result-push { background: rgba(107,114,128,0.15); color: var(--muted2); }
.result-pending { background: rgba(245,158,11,0.15); color: var(--orange); }

/* Date cards (analyst archive, blog) */
.date-card {
  display: block; background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px; margin-bottom: 10px;
  transition: all .15s; text-decoration: none;
}
.date-card:hover { border-color: var(--green); background: var(--s2); text-decoration: none; }
.date-card-title { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--text); }
.date-card-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── TABLES ────────────────────────────────────────────────────────────── */
.lb-table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-32); }
.lb-table th {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  text-align: left; padding: 8px 12px;
  border-bottom: 1px solid var(--border); letter-spacing: 1px;
}
.lb-table td {
  font-family: var(--sans); font-size: 13px;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
}

/* ── LEGAL PAGES ───────────────────────────────────────────────────────── */
.legal-h2 { font-family: var(--display); font-size: 16px; letter-spacing: 1px; color: var(--green); margin: 28px 0 10px; }
.legal-p { margin-bottom: 12px; }
.legal-li { margin-bottom: 6px; }
.legal-strong { color: var(--text); }
.legal-ul { margin: 0 0 12px 20px; list-style: disc; }
.legal-callout {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: var(--radius-md);
  padding: var(--sp-16); margin: var(--sp-16) 0; line-height: 1.8;
}

/* ── FOOTER (matches landing page) ─────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 40px 24px;
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 40px;
  position: relative; z-index: 1;
}
.footer a {
  color: var(--muted2); margin: 0 8px;
  transition: color 0.15s;
}
.footer a:hover { color: var(--green); text-decoration: none; }

/* ── PAGE TRANSITIONS ──────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.container { animation: fadeInUp 0.5s cubic-bezier(.16,1,.3,1); }
.footer { animation: fadeIn 0.6s ease-out 0.2s both; }

/* Staggered reveals for child elements */
.container > *:nth-child(1) { animation: fadeInUp 0.5s cubic-bezier(.16,1,.3,1) 0.05s both; }
.container > *:nth-child(2) { animation: fadeInUp 0.5s cubic-bezier(.16,1,.3,1) 0.1s both; }
.container > *:nth-child(3) { animation: fadeInUp 0.5s cubic-bezier(.16,1,.3,1) 0.15s both; }
.container > *:nth-child(4) { animation: fadeInUp 0.5s cubic-bezier(.16,1,.3,1) 0.2s both; }
.container > *:nth-child(5) { animation: fadeInUp 0.5s cubic-bezier(.16,1,.3,1) 0.25s both; }

/* ── SKELETON LOADING ─────────────────────────────────────────────────── */
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
@keyframes skeletonSweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--s2) 25%, var(--s3) 50%, var(--s2) 75%);
  background-size: 200% 100%;
  animation: skeletonSweep 1.8s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text {
  height: 12px; margin-bottom: 8px;
  background: linear-gradient(90deg, var(--s2) 25%, var(--s3) 50%, var(--s2) 75%);
  background-size: 200% 100%;
  animation: skeletonSweep 1.8s ease-in-out infinite;
  border-radius: 4px;
}
.skeleton-text:last-child { width: 60%; }
.skeleton-card {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px;
  position: relative; overflow: hidden;
}
.skeleton-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(0,230,138,0.03) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: skeletonSweep 2s ease-in-out infinite;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-links { gap: 12px; }
  .nav-brand { font-size: 13px; letter-spacing: 2px; }
  .nav-links a { font-size: 10px; }
  .container { padding: 24px 16px 40px; }
  .take-header { gap: 8px; }
  .take-avatar { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .nav-links { gap: 8px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links .nav-cta { display: inline-block; }
}

/* ── PRICING PAGE ──────────────────────────────────────────────────────── */
.plans {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 700px; margin: 0 auto 40px;
}
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--s1); border: 1px solid var(--border); border-radius: 14px;
  padding: 32px 24px; text-align: left; position: relative;
}
.plan.featured { border-color: var(--green); }
.plan.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  background: var(--green); color: #000; padding: 3px 12px; border-radius: 10px;
}
.plan-name { font-family: var(--display); font-size: 16px; letter-spacing: 1px; margin-bottom: 8px; text-transform: uppercase; }
.plan-price { font-family: var(--display); font-size: 36px; font-weight: 900; color: var(--green); margin-bottom: 4px; }
.plan-price .period { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 400; }
.plan-desc { font-family: var(--sans); font-size: 13px; color: var(--muted2); margin-bottom: 20px; }
.plan-features { list-style: none; padding: 0; margin-bottom: 24px; }
.plan-features li {
  font-family: var(--sans); font-size: 13px; color: var(--muted2); padding: 6px 0;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px;
}
.plan-features li::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.plan-features li.no::before { background: var(--s3); }
.plan-features li.no { color: var(--muted); text-decoration: line-through; opacity: 0.6; }
.plan-btn {
  display: block; width: 100%; text-align: center; font-family: var(--mono); font-size: 12px;
  font-weight: 700; letter-spacing: 1px; padding: 12px; border-radius: var(--radius-md);
  cursor: pointer; transition: all .2s; text-decoration: none; border: none;
}
.plan-btn.primary { background: var(--green); color: #000; }
.plan-btn.primary:hover { background: #00ff9d; box-shadow: 0 4px 20px rgba(0,230,138,0.2); }
.plan-btn.secondary { background: var(--s2); color: var(--muted2); border: 1px solid var(--border); }
.plan-btn.secondary:hover { border-color: var(--green); color: var(--text); }
.proof { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 20px; }
.proof strong { color: var(--green); }
.subtitle { font-family: var(--sans); font-size: 15px; color: var(--muted2); max-width: 520px; margin: 0 auto 40px; line-height: 1.6; }

/* ── FAQ (shared) ──────────────────────────────────────────────────────── */
.faq { max-width: 600px; margin: 40px auto 0; text-align: left; }
.faq h2 { font-family: var(--display); font-size: 16px; letter-spacing: 1px; margin-bottom: 16px; text-align: center; text-transform: uppercase; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-q { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.faq-a { font-family: var(--sans); font-size: 13px; color: var(--muted2); line-height: 1.6; }

/* ── ABOUT PAGE ────────────────────────────────────────────────────────── */
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0; }
.stat-box {
  background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 20px; text-align: center; flex: 1; min-width: 120px;
}
.stat-num { font-family: var(--display); font-size: 22px; color: var(--green); }
.stat-label { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 4px; letter-spacing: 1px; text-transform: uppercase; }

/* ── PRINT ─────────────────────────────────────────────────────────────── */
@media print {
  body::before, body::after, .nav { display: none; }
  body { background: white; color: black; }
  .container { padding: 0; max-width: 100%; }
}
