/* === Design system on web ============================
   Palette = iOS-native dark mode: pure black canvas, true-elevation
   surfaces, SF Pro typography. Accent is iOS dark-mode systemBlue
   (#0A84FF) used sparingly for primary actions. Tier semantics use
   iOS system colors (green/yellow/red). Soft 0.15-opacity fills. */
:root {
  --bg: #000000;
  --surface: #1C1C1E;
  --surface-2: #2C2C2E;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);
  --text: #FFFFFF;
  --text-dim: #98989F;
  --text-mute: #6E6E73;
  /* iOS dark-mode systemBlue — sharp, restrained, doesn't compete with
     warm-toned tier colors. Hover state ~20% darker. */
  --accent: #0A84FF;
  --accent-strong: #0066CC;
  --accent-soft: rgba(10,132,255,0.15);
  --accent-soft-border: rgba(10,132,255,0.32);
  /* iOS system semantic colors */
  --pos: #34C759;
  --neg: #FF3B30;
  --warn: #FFCC00;
  --info: #007AFF;
  /* Tier colors (BET/CONSIDER/SKIP) — iOS dark-mode system values
     so they stay vivid against true black. */
  --tier-bet: #34C759;
  --tier-consider: #FFD60A;
  --tier-skip: #FF3B30;
  /* Spacing scale (Thoosie's ThoosiePadding) */
  --sp-xs: 6px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 20px;
  /* Card radius */
  --r-pill: 999px;
  --r-card: 12px;
  --r-hero: 16px;
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  min-height: 100vh;
  letter-spacing: -0.01em;
}

.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* Flat iOS-style cards: no gradient, subtle shadow, soft border */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: 0 2px 6px rgba(0,0,0,0.20);
}

.card-hover { transition: transform .12s ease, border-color .12s ease; }
.card-hover:hover { transform: translateY(-1px); border-color: var(--border-strong); }

/* Thoosie-style capsule pills: soft fill (0.15 opacity) + matching border + bold caption */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; line-height: 1.4;
}
.pill-mlb     { background: rgba(255,204,0,0.15);   color: var(--warn);  border: 1px solid rgba(255,204,0,0.30); }
.pill-nba     { background: rgba(10,132,255,0.15);   color: var(--accent); border: 1px solid rgba(10,132,255,0.28); }
.pill-nfl     { background: rgba(52,199,89,0.15);   color: var(--pos);   border: 1px solid rgba(52,199,89,0.30); }
.pill-promo   { background: rgba(175,82,222,0.15);  color: #AF52DE;       border: 1px solid rgba(175,82,222,0.30); }
.pill-stale   { background: rgba(0,122,255,0.15);   color: var(--info);  border: 1px solid rgba(0,122,255,0.30); }
.pill-neutral { background: rgba(152,152,159,0.15); color: var(--text-dim); border: 1px solid rgba(152,152,159,0.25); }
/* Tier pills — replace the emoji indicators */
.pill-bet      { background: rgba(52,199,89,0.15); color: var(--tier-bet);      border: 1px solid rgba(52,199,89,0.30); }
.pill-consider { background: rgba(255,214,10,0.15); color: var(--tier-consider); border: 1px solid rgba(255,214,10,0.32); }
.pill-skip     { background: rgba(255,59,48,0.15); color: var(--tier-skip);     border: 1px solid rgba(255,59,48,0.30); }

.edge-pos { color: var(--pos); }
.edge-neg { color: var(--neg); }
.edge-warn { color: var(--warn); }

.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.dot.live { background: var(--pos); box-shadow: 0 0 0 0 rgba(52,199,89,0.6); animation: pulse 2s infinite; }
.dot.idle { background: var(--text-mute); }
.dot.warn { background: var(--warn); }
.dot.err  { background: var(--neg); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,199,89,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(52,199,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); }
}

a.navlink {
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: color .12s, background .12s;
  text-decoration: none;
}
a.navlink:hover { color: var(--text); background: rgba(255,255,255,0.06); }
a.navlink.active { color: var(--accent); background: rgba(10,132,255,0.15); }

/* Primary CTA: blue capsule, white text. */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  padding: 9px 16px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform .08s, background .12s, opacity .12s;
}
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text-dim); padding: 8px 14px; }
.btn.ghost:hover { color: var(--text); border-color: var(--accent); background: rgba(10,132,255,0.08); }

input[type="number"], input[type="text"], select {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; font-size: 14px; outline: none;
  transition: border-color .12s, background .12s;
}
input[type="number"]:focus, input[type="text"]:focus, select:focus { border-color: var(--accent); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; background: var(--surface-2);
  border-radius: 999px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  background: var(--accent); border-radius: 999px; cursor: pointer;
  border: 3px solid var(--bg);
}

label.chk {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  font-size: 13px; cursor: pointer; user-select: none;
  transition: background .12s, border-color .12s, color .12s;
}
label.chk input { display: none; }
label.chk.on { background: rgba(10,132,255,0.15); border-color: var(--accent); color: var(--text); }

.divider { height: 1px; background: var(--border); }

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.toast {
  position: fixed; right: 20px; bottom: 20px;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 12px 16px; border-radius: 12px; font-size: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .15s, transform .15s;
}
.toast.show { opacity: 1; transform: translateY(0); }

.reason-bullet {
  position: relative; padding-left: 16px;
  font-size: 13px; color: var(--text-dim);
}
.reason-bullet::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}

/* Horizontal-scroll tab bar — added 2026-06-06 per Jeff feedback (ID 8). */
.tab-nav::-webkit-scrollbar { display: none; }
