/* ============================================
   SuperDesk — Global Styles
   ============================================ */

:root {
  --bg-main:   #0a111a;
  --bg-panel:  #0d1117;
  --bg-card:   #15202b;
  --border:    #1e2d3d;
  --primary:   #13ec5b;
  --accent:    #00e5ff;
  --up:        #3fb950;
  --down:      #f85149;
  --muted:     #8899a6;
  --sidebar-w: 220px;
}

* { box-sizing: border-box; }

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Material Icons ────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  vertical-align: middle;
  display: inline-block;
}
.icon-filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Sidebar ───────────────────────────────── */
#sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
}

/* ── Hero Background ───────────────────────── */
.hero-bg {
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(19,236,91,.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 70% 40%, rgba(0,229,255,.06) 0%, transparent 70%),
    var(--bg-main);
}

/* ── Grid Pattern ──────────────────────────── */
.grid-pattern {
  background-image:
    linear-gradient(rgba(30,45,61,.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,45,61,.6) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Landing Stat Badge ────────────────────── */
.stat-badge {
  background: rgba(21,32,43,.85);
  border: 1px solid rgba(19,236,91,.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ── Feature Card ──────────────────────────── */
.feature-card {
  background: linear-gradient(135deg, rgba(21,32,43,.95), rgba(13,17,23,1));
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: rgba(19,236,91,.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

/* ── Primary Button ────────────────────────── */
.btn-primary {
  transition: opacity .15s, transform .15s, box-shadow .15s;
}
.btn-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(19,236,91,.3);
}
.btn-primary:active { transform: scale(.97); }

/* ── Prediction Card ───────────────────────── */
.prediction-card {
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.prediction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  border-color: rgba(19,236,91,.25);
}

/* ── Confidence Bar ────────────────────────── */
.confidence-bar {
  transition: width 1s cubic-bezier(.4,0,.2,1);
}

/* ── Sidebar Nav Item ──────────────────────── */
.nav-item {
  text-align: left;
  color: var(--muted);
  border-right: 2px solid transparent;
  border-radius: .5rem;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-bottom: none;
}
.nav-item:hover:not(.active) {
  background: rgba(255,255,255,.04);
  color: #fff;
}
.nav-item.active {
  background: rgba(19,236,91,.08);
  color: var(--primary);
  border-right: 2px solid var(--primary);
}

/* ── Tab Button ────────────────────────────── */
.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 9999px;
  padding: 5px 16px;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.tab-btn.active {
  background: var(--primary);
  color: var(--bg-main);
  border-color: var(--primary);
  font-weight: 700;
}
.tab-btn:not(.active):hover {
  color: #fff;
  background: rgba(255,255,255,.05);
}

/* ── Premium Card Glow ─────────────────────── */
.premium-card {
  box-shadow: 0 0 40px rgba(0,229,255,.12), inset 0 0 20px rgba(0,229,255,.03);
}

/* ── Alert Badge Pulse ─────────────────────── */
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .5; }
}
.alert-badge { animation: pulse 2s ease-in-out infinite; }

/* ── Page Fade-in ──────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .25s ease-out forwards; }

/* ── Odds table row hover ──────────────────── */
.odds-row { transition: background .1s; }
.odds-row:hover { background: rgba(255,255,255,.03); }
