/* ===== NRL Watch Guide — Production CSS ===== */
/* Design direction: Kayo Sports dark theme — bold, sporty, high-contrast */

:root {
  --bg: #0a0e17;
  --bg-card: #141a2a;
  --bg-card-hover: #1b2340;
  --surface: #1e2740;
  --border: rgba(255,255,255,0.06);
  --text: #e8eaf0;
  --text-dim: #8b92a8;
  --text-muted: #5a6178;
  --accent: #00d97e;
  --accent-dim: rgba(0,217,126,0.12);
  --orange: #ff6a13;
  --orange-dim: rgba(255,106,19,0.12);
  --free-badge: #00d97e;
  --paid-badge: #ff6a13;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.35);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --topbar-h: 60px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== TOPBAR ===== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,23,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--topbar-h);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 100%;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #00b368);
  display: grid; place-items: center;
  font-size: 20px; line-height: 1;
}
.logo-text { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.topbar-links { display: flex; gap: 24px; }
.topbar-link { color: var(--text-dim); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.topbar-link:hover { color: var(--text); text-decoration: none; }

/* ===== SHELL ===== */
.shell {
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px 48px;
}

/* ===== HERO ===== */
.hero {
  padding: 56px 0 32px;
  text-align: center;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 520px;
  margin-left: auto; margin-right: auto;
  line-height: 1.6;
}
.hero-note {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ===== TEAM PICKER ===== */
.picker-section { padding: 8px 0 24px; }
.picker-bar {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  max-width: 700px;
  margin: 0 auto;
}
.picker-label { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.picker-select {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit; font-size: 1rem; font-weight: 600;
  padding: 12px 16px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b92a8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.picker-select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== SAVINGS BANNER ===== */
.savings-banner {
  background: linear-gradient(135deg, var(--bg-card), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.savings-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.savings-left { display: flex; flex-direction: column; gap: 4px; }
.savings-tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent);
}
.savings-plan { font-size: 1.3rem; font-weight: 700; }
.savings-right { text-align: right; }
.savings-amount {
  display: block;
  font-size: 2rem; font-weight: 800;
  color: var(--accent);
}
.savings-label { font-size: 0.8rem; color: var(--text-dim); }
.savings-detail {
  margin-top: 12px;
  font-size: 0.92rem; color: var(--text-dim); line-height: 1.55;
}

/* ===== STAT CARDS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-value { display: block; font-size: 2rem; font-weight: 800; }
.stat-label { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.stat-free .stat-value { color: var(--accent); }
.stat-save .stat-value { color: var(--accent); }

/* ===== AD ZONES ===== */
.ad-zone {
  display: flex; justify-content: center; padding: 12px 20px;
}
.ad-placeholder {
  background: var(--bg-card);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.75rem; gap: 4px;
}
.ad-leaderboard .ad-placeholder { width: 728px; height: 90px; max-width: 100%; }
.ad-rectangle { margin: 20px 0; }
.ad-rectangle .ad-placeholder { width: 300px; height: 250px; max-width: 100%; }
.ad-footer-banner .ad-placeholder { width: 728px; height: 90px; max-width: 100%; }

/* ===== SECTION HEADS ===== */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 1.5rem; font-weight: 700; }
.section-title-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.section-note {
  color: var(--text-dim);
  font-size: 0.84rem;
}

/* ===== ROUND TABS ===== */
.round-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.round-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font: inherit; font-size: 0.8rem; font-weight: 600;
  color: var(--text-dim); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.round-tab:hover { background: var(--bg-card-hover); color: var(--text); }
.round-tab.active {
  background: var(--accent);
  color: #0a0e17;
  border-color: var(--accent);
}
.round-tab.is-current,
.round-tab.is-next {
  position: relative;
  padding-right: 12px;
}
.round-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.round-tab.is-current .round-pill {
  background: rgba(10,14,23,0.18);
  color: #0a0e17;
}
.round-tab.is-next .round-pill {
  background: var(--orange-dim);
  color: var(--orange);
}

/* ===== FIXTURE GRID ===== */
.fixture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.fixture-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.fixture-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: var(--bg-card-hover);
}
.fixture-header {
  display: flex; align-items: start; justify-content: space-between; gap: 12px;
}
.fixture-teams { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.fixture-vs { color: var(--text-muted); font-weight: 400; }
.fixture-badge {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fixture-badge.free { background: var(--accent-dim); color: var(--free-badge); }
.fixture-badge.paid { background: var(--orange-dim); color: var(--paid-badge); }
.fixture-meta {
  font-size: 0.85rem; color: var(--text-dim); line-height: 1.4;
}
.fixture-channels { display: flex; flex-wrap: wrap; gap: 6px; }
.channel-tag {
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.76rem; font-weight: 500; color: var(--text-dim);
}
.channel-tag.is-free { color: var(--accent); background: var(--accent-dim); }
.fixture-tip {
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.45;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* ===== PROVIDER COMPARISON ===== */
.compare-section { margin: 20px 0 32px; }
.compare-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.compare-sub { color: var(--text-dim); margin-bottom: 20px; }
.provider-list { display: grid; gap: 12px; }
.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}
.provider-card:hover { background: var(--bg-card-hover); }
.provider-name { font-weight: 700; font-size: 1rem; }
.provider-notes { font-size: 0.84rem; color: var(--text-dim); margin-top: 4px; line-height: 1.45; }
.provider-price {
  font-size: 1.6rem; font-weight: 800; text-align: right; white-space: nowrap;
}
.provider-price.is-free { color: var(--accent); }
.provider-price-label { display: block; font-size: 0.72rem; color: var(--text-dim); font-weight: 500; }

/* ===== KAYO TIMING ADVISOR ===== */
.timing-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
}
.timing-section .section-head { margin-bottom: 12px; }
.timing-section .section-head div { display: flex; align-items: center; gap: 10px; }
.timing-icon { font-size: 1.4rem; }
.timing-intro {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.timing-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* Timeline bar */
.timing-timeline {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 56px;
}
.tl-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  min-width: 0;
}
.tl-segment.tl-free {
  background: var(--surface);
  color: var(--text-dim);
}
.tl-segment.tl-sub {
  background: linear-gradient(135deg, rgba(0,217,126,0.18), rgba(0,217,126,0.08));
  color: var(--accent);
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.tl-label { font-weight: 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }
.tl-dates { font-size: 0.7rem; margin-top: 2px; opacity: 0.8; }

/* Steps */
.timing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.timing-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timing-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.timing-step-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.timing-step-date {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}
.timing-step-detail {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Summary */
.timing-summary {
  background: linear-gradient(135deg, rgba(0,217,126,0.08), rgba(0,217,126,0.03));
  border: 1px solid rgba(0,217,126,0.2);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.timing-summary-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}
.timing-summary-cost {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}
.timing-summary-vs {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
}
.timing-no-sub {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .timing-timeline { flex-direction: column; }
  .tl-segment { border-left: none !important; border-right: none !important; border-top: 2px solid var(--border); }
  .tl-segment.tl-sub { border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
  .timing-summary { flex-direction: column; text-align: center; }
}

/* ===== ABOUT ===== */
.about-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 12px;
}
.about-section h2 { margin-bottom: 12px; }
.about-section p { color: var(--text-dim); line-height: 1.6; margin-bottom: 12px; }
.about-section .disclaimer {
  font-size: 0.82rem; color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px; margin-top: 8px;
}
.legal-shell {
  padding-top: 32px;
}
.legal-page {
  max-width: 840px;
  margin: 0 auto 32px;
}
.legal-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}
.legal-page h2 {
  margin-top: 28px;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
}
#last-updated {
  color: var(--text-dim);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: center; align-items: center; gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-muted);
}
.footer-sep { color: var(--text-muted); }
.site-footer a { color: var(--text-dim); }

/* ===== ANIMATIONS ===== */
.fixture-card, .stat-card, .savings-banner, .provider-card {
  animation: cardIn 0.4s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 36px 0 24px; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .fixture-grid { grid-template-columns: 1fr; }
  .provider-card { grid-template-columns: 1fr; }
  .provider-price { text-align: left; }
  .savings-inner { flex-direction: column; text-align: left; }
  .savings-right { text-align: left; }
  .topbar-links { gap: 16px; }
  .topbar-link { font-size: 0.82rem; }
  .ad-leaderboard .ad-placeholder,
  .ad-footer-banner .ad-placeholder { width: 320px; height: 50px; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 1.5rem; }
  .round-tabs { gap: 4px; }
  .round-tab { padding: 6px 12px; font-size: 0.74rem; }
  .picker-bar { flex-direction: column; gap: 8px; text-align: center; }
}

/* ===== iCal Download Button ===== */
.ical-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 24px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.ical-download-btn:hover {
  background: var(--accent-hover, #66ff99);
  transform: translateY(-1px);
}
.ical-download-btn:active {
  transform: translateY(0);
}

/* ===== Range Picker ===== */
.range-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.range-sep {
  color: var(--muted);
  font-size: 0.85rem;
}
.picker-select-sm {
  max-width: 90px;
  padding: 8px 12px;
  font-size: 0.85rem;
}
.range-btn {
  padding: 8px 16px;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.range-btn:hover {
  background: var(--accent);
  color: #000;
}
@media (max-width: 600px) {
  .range-picker {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== Savings Counter Widget ===== */
.savings-widget {
  margin: 24px auto;
  max-width: 700px;
}
.sw-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.sw-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sw-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sw-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  transition: all 0.4s ease;
}
.sw-value-full {
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: #ff4d4d;
  text-decoration-thickness: 2px;
}
.sw-value-smart {
  color: var(--accent);
}
.sw-value-saved {
  color: #22c55e;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}
.sw-arrow {
  font-size: 1.5rem;
  color: var(--muted);
  font-weight: 700;
}
.sw-saved {
  position: relative;
}
.sw-value-saved.animating {
  transform: scale(1.2);
  transition: transform 0.15s ease;
}
@media (max-width: 600px) {
  .sw-inner {
    flex-direction: column;
    gap: 12px;
  }
  .sw-arrow {
    transform: rotate(90deg);
    font-size: 1.2rem;
  }
  .sw-value {
    font-size: 1.6rem;
  }
}
