/* ─────────────────────────────────────────
   BetNote — style.css
   Bloomberg Terminal × modern SaaS
   ───────────────────────────────────────── */

:root {
  --bg-base:       #080a0d;
  --bg-surface:    #0d1117;
  --bg-raised:     #111720;
  --bg-hover:      #151d27;

  --border:        #1c2530;
  --border-subtle: #141b24;

  --text-primary:  #e8edf2;
  --text-secondary:#7d8fa3;
  --text-muted:    #3d4f61;

  --accent:        #c8f0a0;
  --accent-dim:    rgba(200, 240, 160, 0.08);
  --accent-border: rgba(200, 240, 160, 0.18);

  --win:           #4ade80;
  --win-bg:        rgba(74, 222, 128, 0.09);
  --win-border:    rgba(74, 222, 128, 0.2);

  --loss:          #f87171;
  --loss-bg:       rgba(248, 113, 113, 0.09);
  --loss-border:   rgba(248, 113, 113, 0.2);

  --push:          #64748b;
  --push-bg:       rgba(100, 116, 139, 0.12);
  --push-border:   rgba(100, 116, 139, 0.2);

  --pending:       #fbbf24;
  --pending-bg:    rgba(251, 191, 36, 0.09);
  --pending-border:rgba(251, 191, 36, 0.2);

  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;

  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Grid overlay ── */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  width: min(1200px, 94%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--bg-base);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  border-radius: 5px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.meta-sep {
  color: var(--text-muted);
}

.meta-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--win);
  font-weight: 500;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--win);
  animation: pulse-anim 2s ease-in-out infinite;
}

@keyframes pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* ── Layout ── */
.container {
  position: relative;
  z-index: 1;
  width: min(1200px, 94%);
  margin: auto;
  padding: 64px 0 80px;
}

/* ── Hero ── */
.hero {
  margin-bottom: 56px;
  max-width: 760px;
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--text-muted);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ── Stats ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition), background var(--transition);
}

.stat-card:hover {
  border-color: #2a3645;
  background: var(--bg-raised);
}

.stat-card--accent {
  border-color: var(--accent-border);
  background: linear-gradient(135deg, var(--bg-surface), rgba(200, 240, 160, 0.03));
}

.stat-card--accent:hover {
  border-color: rgba(200, 240, 160, 0.28);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.stat-icon {
  font-size: 14px;
  color: var(--text-muted);
}

.live-dot {
  color: var(--win);
  animation: pulse-anim 2s ease-in-out infinite;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card--accent .stat-value {
  color: var(--accent);
}

.stat-delta {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.stat-delta.positive { color: var(--win); }
.stat-delta.neutral  { color: var(--text-muted); }

/* ── Filter bar ── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  animation: fadeUp 0.6s 0.15s ease both;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--text-secondary);
  border-color: var(--border);
}

.filter-btn.active {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.filter-right {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ── Table ── */
.table-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: fadeUp 0.6s 0.2s ease both;
}

.table-header {
  display: grid;
  grid-template-columns: 90px 1fr 110px 100px 110px;
  padding: 14px 24px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.row {
  display: grid;
  grid-template-columns: 90px 1fr 110px 100px 110px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  transition: background var(--transition);
  opacity: 0;
  transform: translateY(6px);
  animation: rowIn 0.35s ease forwards;
}

.row:last-child {
  border-bottom: none;
}

.row:hover {
  background: var(--bg-hover);
}

@keyframes rowIn {
  to { opacity: 1; transform: translateY(0); }
}

.col-sport-badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: inline-block;
}

.col-match-text {
  color: var(--text-primary);
  font-size: 13px;
}

.col-match-league {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.col-round-text {
  font-size: 12px;
  color: var(--text-secondary);
}

.col-odds-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
}

.status-pill.win {
  background: var(--win-bg);
  color: var(--win);
  border-color: var(--win-border);
}

.status-pill.loss {
  background: var(--loss-bg);
  color: var(--loss);
  border-color: var(--loss-border);
}

.status-pill.push {
  background: var(--push-bg);
  color: var(--push);
  border-color: var(--push-border);
}

.status-pill.pending {
  background: var(--pending-bg);
  color: var(--pending);
  border-color: var(--pending-border);
}

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.pending .pill-dot {
  animation: pulse-anim 1.5s ease-in-out infinite;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-note {
  color: var(--text-muted);
  opacity: 0.6;
}

/* ── Site footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  width: min(1200px, 94%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── No results ── */
.no-results {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card:last-child {
    grid-column: 1 / -1;
  }

  .table-header {
    grid-template-columns: 70px 1fr 80px 80px 90px;
    font-size: 9px;
  }

  .row {
    grid-template-columns: 70px 1fr 80px 80px 90px;
    padding: 14px 16px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 40px 0 60px;
  }

  .hero-headline {
    font-size: clamp(44px, 14vw, 64px);
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat-card:last-child {
    grid-column: auto;
  }

  .stat-value {
    font-size: 40px;
  }

  .filter-group {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .table-header,
  .row {
    grid-template-columns: 60px 1fr 70px 70px 80px;
    font-size: 9px;
    padding: 12px 14px;
  }

  .col-match-league {
    display: none;
  }

  .topbar-meta .meta-item:first-child,
  .meta-sep {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
