/* Playoff Pathways — design tokens
   Dark is the default. Set data-theme="light" on <html> for light mode.
   Fonts: load from Google Fonts —
   https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600&display=swap */

:root,
[data-theme="dark"] {
  color-scheme: dark;

  /* Surfaces */
  --pp-bg: #0A101C;               /* page ("Night") */
  --pp-bg-clear: rgba(10, 16, 28, 0);
  --pp-surface: rgba(17, 26, 43, 0.92); /* cards, inputs, outline buttons */
  --pp-header-bg: rgba(10, 16, 28, 0.55);
  --pp-border: #23304A;

  /* Text */
  --pp-text: #EEF2F8;
  --pp-muted: #9AA6BC;

  /* Accents */
  --pp-gold: #F2B544;             /* the prize: trophy, Share button, eyebrow text */
  --pp-gold-text: #F2B544;        /* gold used AS TEXT (passes contrast on this bg) */
  --pp-on-gold: #1A1204;          /* text on a gold button */
  --pp-route: #4C8DFF;            /* routes, current week, path markers */
  --pp-route-strong: #2F6FE0;     /* filled blue buttons (white text) */

  /* Logo */
  --pp-logo-tile: #111A2B;
  --pp-logo-stroke: #EEF2F8;

  /* Background art */
  --pp-bg-line: rgba(130, 160, 215, 0.22);
  --pp-bg-node: rgba(170, 195, 240, 0.55);
  --pp-glow-strength: 0.32;
}

[data-theme="light"] {
  color-scheme: light;

  --pp-bg: #F4F6FA;               /* "Daylight" */
  --pp-bg-clear: rgba(244, 246, 250, 0);
  --pp-surface: rgba(255, 255, 255, 0.94);
  --pp-header-bg: rgba(255, 255, 255, 0.6);
  --pp-border: #DCE2EC;

  --pp-text: #0E1628;
  --pp-muted: #556074;

  --pp-gold: #F2B544;             /* fills only — too light for text on white */
  --pp-gold-text: #9A6A08;
  --pp-on-gold: #1A1204;
  --pp-route: #1F5FE0;
  --pp-route-strong: #1F5FE0;

  --pp-logo-tile: #0A101C;        /* logo tile stays dark in light mode */
  --pp-logo-stroke: #EEF2F8;

  --pp-bg-line: rgba(20, 45, 95, 0.13);
  --pp-bg-node: rgba(20, 45, 95, 0.35);
  --pp-glow-strength: 0.28;
}

:root {
  /* Type */
  --pp-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --pp-font-ui: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & spacing */
  --pp-radius-sm: 8px;    /* week pills, team badges */
  --pp-radius-md: 10px;   /* buttons, inputs, tabs */
  --pp-radius-lg: 16px;   /* cards */
  --pp-content-max: 1240px;
  --pp-gutter: 24px;
  --pp-touch: 44px;       /* minimum height/width of anything clickable */
}

/* ---------- Background art placement ---------- */
.pp-page { position: relative; min-height: 100vh; overflow-x: hidden;
  background: var(--pp-bg); color: var(--pp-text); font-family: var(--pp-font-ui); }
.pp-bg { position: absolute; inset: 0 0 auto 0; height: 720px; pointer-events: none; z-index: 0; }
.pp-bg-art { width: 100%; height: 100%; display: block; }
.pp-bg::after { /* fade the art out before the content gets busy */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 360px;
  background: linear-gradient(to bottom, var(--pp-bg-clear), var(--pp-bg)); }
.pp-page > :not(.pp-bg) { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.pp-header { border-bottom: 1px solid var(--pp-border); background: var(--pp-header-bg);
  backdrop-filter: blur(6px); }
.pp-header__inner { max-width: var(--pp-content-max); margin: 0 auto; padding: 18px var(--pp-gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pp-brand { display: flex; align-items: center; gap: 12px; margin-right: auto;
  color: var(--pp-text); text-decoration: none; }
.pp-brand__tile { width: 44px; height: 44px; border-radius: 12px; background: var(--pp-logo-tile);
  border: 1px solid var(--pp-border); display: grid; place-items: center; color: var(--pp-logo-stroke); }
.pp-brand__tile svg { width: 34px; height: 34px; }
.pp-brand__text { display: flex; flex-direction: column; gap: 3px; }
.pp-wordmark { font-family: var(--pp-font-display); font-size: 24px; line-height: 1; letter-spacing: 0.04em; }
.pp-wordmark b { font-weight: 700; }
.pp-wordmark span { font-weight: 500; color: var(--pp-gold-text); }
.pp-tagline { font-size: 12.5px; color: var(--pp-muted); }
.pp-meta { font-size: 13px; color: var(--pp-muted); }

/* ---------- Buttons ---------- */
.pp-btn { min-height: var(--pp-touch); min-width: var(--pp-touch); padding: 0 16px;
  border-radius: var(--pp-radius-md); font: 600 14px/1 var(--pp-font-ui); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pp-btn--outline { border: 1px solid var(--pp-border); background: var(--pp-surface); color: var(--pp-text); }
.pp-btn--icon { padding: 0; width: var(--pp-touch); }
.pp-btn--gold { border: 0; background: var(--pp-gold); color: var(--pp-on-gold); padding: 0 20px; }
.pp-btn--route { border: 0; background: var(--pp-route-strong); color: #fff; }
.pp-btn:focus-visible { outline: 2px solid var(--pp-route); outline-offset: 2px; }

.pp-select { min-height: 40px; padding: 8px 12px; font: 600 14px var(--pp-font-ui); color: var(--pp-text);
  background: var(--pp-surface); border: 1px solid var(--pp-border); border-radius: var(--pp-radius-md); }

/* ---------- Hero line ---------- */
.pp-hero { max-width: var(--pp-content-max); margin: 0 auto; padding: 40px var(--pp-gutter) 8px; }
.pp-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--pp-gold-text); }
.pp-hero h1 { margin: 0; font-family: var(--pp-font-display); font-weight: 700;
  font-size: clamp(34px, 5vw, 52px); line-height: 1; }

/* ---------- Tabs ---------- */
.pp-tabs { max-width: var(--pp-content-max); margin: 0 auto; padding: 24px var(--pp-gutter) 0;
  display: flex; flex-wrap: wrap; gap: 6px; }
.pp-tab { padding: 10px 16px; border-radius: var(--pp-radius-md); text-decoration: none;
  font-weight: 500; font-size: 15px; color: var(--pp-muted); border: 1px solid transparent; }
.pp-tab[aria-current="page"] { color: var(--pp-text); font-weight: 600;
  background: var(--pp-surface); border-color: var(--pp-border); }

/* ---------- Cards ---------- */
.pp-card { background: var(--pp-surface); border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-lg); padding: 18px 20px; }
.pp-stat { font-family: var(--pp-font-display); font-weight: 700; font-size: 40px; line-height: 1; }
