@import url('https://fonts.googleapis.com/css2?family=Gasoek+One&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #000000;
  --bg-elevated: #0B0B0B;
  --bg-card: #0F0F0F;
  --bg-hover: #161616;
  --border: #1F1F1F;
  --border-strong: #2E2E2E;

  /* Signature brand — Yuzu Marmalade */
  --yuzu: #FED766;
  --yuzu-bright: #FFE48A;
  --yuzu-dim: #C9A94D;
  --yuzu-soft: rgba(254, 215, 102, 0.14);

  /* Aliases so existing .*-kick classes light up yuzu */
  --accent: var(--yuzu);
  --accent-bright: var(--yuzu-bright);
  --accent-dim: var(--yuzu-dim);
  --accent-glow: rgba(254, 215, 102, 0.35);

  --live: #FF3B3B;
  --pending: #FFB800;
  --info: #7FB3FF;

  --text: #FFFFFF;
  --text-muted: #9A9A9A;
  --text-dim: #5A5A5A;

  --font-display: 'Gasoek One', 'Impact', 'Arial Black', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Inter', system-ui, sans-serif;

  --shadow-offset: 6px 6px 0 #000;
  --shadow-offset-sm: 3px 3px 0 #000;
  --shadow-offset-lg: 10px 10px 0 #000;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-weight: 400;
}

/* Typography ———————————————————————————————————————— */
.font-display {
  font-family: var(--font-display);
  font-weight: 400;    /* Gasoek One only ships one weight */
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 0.88;
}
.font-mono { font-family: var(--font-body); font-weight: 500; }
.tracking-brand { letter-spacing: 0; }

h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; line-height: 0.9; }

/* Signature offset-shadow — the BAD STREAMS motif */
.offset-shadow {
  color: var(--yuzu);
  text-shadow: var(--shadow-offset);
}
.offset-shadow-sm { color: var(--yuzu); text-shadow: var(--shadow-offset-sm); }
.offset-shadow-lg { color: var(--yuzu); text-shadow: var(--shadow-offset-lg); }
.offset-shadow-white { color: #fff; text-shadow: var(--shadow-offset); }
.offset-shadow-black { color: #000; text-shadow: 4px 4px 0 var(--yuzu); }

/* Signature offset-shadow for block elements (cards, badges, logo marks) */
.box-offset {
  box-shadow: var(--shadow-offset);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.box-offset-sm { box-shadow: var(--shadow-offset-sm); transition: box-shadow 0.18s ease, transform 0.18s ease; }
.box-offset-hover:hover { box-shadow: var(--shadow-offset-lg); transform: translate(-2px, -2px); }

/* Backwards-compatible no-op hooks (old templates still reference these) */
.brackets { position: relative; }
.scanline { /* no-op — brand aesthetic drops the broadcast chrome */ }
body::before { content: none; }

/* Grid backgrounds (kept, recoloured) */
.bg-grid {
  background-image:
    linear-gradient(rgba(254,215,102,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(254,215,102,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}
.bg-grid-sm {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bg-mesh {
  background:
    radial-gradient(at 10% 10%, rgba(254,215,102,0.10) 0, transparent 50%),
    radial-gradient(at 90% 20%, rgba(254,215,102,0.05) 0, transparent 40%);
}

/* Live pulse (kept for active stream indicators) */
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(255,59,59,0); }
}
.pulse-live { animation: pulse-live 1.6s ease-out infinite; }

/* Yuzu pulse (keeps .pulse-kick working) */
@keyframes pulse-yuzu {
  0%, 100% { box-shadow: 0 0 0 0 rgba(254,215,102,0.55); }
  50% { box-shadow: 0 0 0 10px rgba(254,215,102,0); }
}
.pulse-kick, .pulse-yuzu { animation: pulse-yuzu 2s ease-out infinite; }

/* Ticker */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track { animation: ticker 40s linear infinite; }

/* Fade up stagger */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.55s cubic-bezier(0.16,1,0.3,1) both; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--yuzu-dim); }

/* Buttons ————————————————————————————————————————— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn-kick, .btn-yuzu {
  background: var(--yuzu);
  color: #000;
  border-color: #000;
  box-shadow: var(--shadow-offset-sm);
}
.btn-kick:hover, .btn-yuzu:hover {
  background: var(--yuzu-bright);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}
.btn-kick:active, .btn-yuzu:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 #000;
}
.btn-ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-ghost:hover {
  background: #fff;
  color: #000;
}
.btn-dark {
  background: #000;
  border-color: #000;
  color: var(--yuzu);
  box-shadow: var(--shadow-offset-sm);
}
.btn-dark:hover {
  background: #111;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--yuzu);
}
.btn-danger {
  background: transparent;
  border-color: var(--live);
  color: var(--live);
}
.btn-danger:hover { background: var(--live); color: #fff; }

/* Badges ———————————————————————————————————————————— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  line-height: 1;
  border-radius: 0;
}
.badge-live { color: var(--live); background: rgba(255,59,59,0.1); }
.badge-kick, .badge-yuzu { color: #000; background: var(--yuzu); border-color: #000; }
.badge-pending { color: #000; background: var(--pending); border-color: #000; }
.badge-dim { color: var(--text-muted); background: var(--bg-elevated); border-color: var(--border-strong); }
.badge-info { color: var(--info); background: rgba(127,179,255,0.1); }
.badge-outline { color: var(--yuzu); background: transparent; border-color: var(--yuzu); }

/* Dot indicator */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; }

/* Nav ———————————————————————————————————————————————— */
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.12s ease;
  text-transform: none;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.02); }
.nav-item.active {
  color: #000;
  background: var(--yuzu);
  border-left-color: #000;
  font-weight: 700;
}
.nav-item .ico { width: 18px; height: 18px; stroke-width: 2; }

/* Cards ——————————————————————————————————————————————— */
.card {
  background: var(--bg-card);
  border: 2px solid #fff;
  border-radius: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card-lift:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--yuzu);
}
.card-kick-hover:hover,
.card-yuzu-hover:hover {
  border-color: var(--yuzu);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--yuzu);
}
.card-flat { background: var(--bg-card); border: 1px solid var(--border); }
.card-yuzu { background: var(--yuzu); color: #000; border: 2px solid #000; box-shadow: var(--shadow-offset); }

/* Stat values */
.stat-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* Dividers */
.divider-v { width: 1px; background: var(--border); }
.divider-dashed { border-top: 1px dashed var(--border-strong); }

/* Inputs ——————————————————————————————————————————————— */
.input {
  width: 100%;
  background: #000;
  border: 2px solid #fff;
  color: #fff;
  padding: 13px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  border-radius: 0;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.input::placeholder { color: var(--text-dim); }
.input:focus {
  outline: none;
  border-color: var(--yuzu);
  box-shadow: 4px 4px 0 var(--yuzu);
}
.input-mono { font-family: var(--font-body); font-size: 14px; }

/* Label */
.label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}

/* Tabs ———————————————————————————————————————————————— */
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  margin-right: 28px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: all 0.12s ease;
  cursor: pointer;
}
.tab:hover { color: #fff; }
.tab.active { color: var(--yuzu); border-bottom-color: var(--yuzu); }
.tab .count {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  background: var(--bg-elevated);
  padding: 3px 7px;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}
.tab.active .count { color: #000; background: var(--yuzu); border-color: var(--yuzu); }

/* Table ——————————————————————————————————————————————— */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--yuzu);
  background: var(--bg);
}
.tbl td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.tbl tr:hover td { background: rgba(254,215,102,0.04); }

/* Progress */
.progress { height: 6px; background: var(--bg-elevated); border: 1px solid var(--border); overflow: hidden; }
.progress-fill { height: 100%; background: var(--yuzu); transition: width 0.5s ease; }

/* Avatar ring */
.avatar-ring { position: relative; display: inline-block; }
.avatar-ring.live::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid var(--live);
  border-radius: 999px;
}

/* Kbd */
.kbd {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: #000;
  border: 1px solid #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  color: #fff;
}

/* Selection */
::selection { background: var(--yuzu); color: #000; }

/* ——— BRAND WORDMARK (for logo use) ——— */
.bs-wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.82;
  color: var(--yuzu);
  text-shadow: var(--shadow-offset);
  display: inline-block;
}
.bs-wordmark-sm { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0; line-height: 0.85; color: var(--yuzu); text-shadow: 3px 3px 0 #000; display: inline-block; }

.bs-mark {
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  background: var(--yuzu);
  color: #000;
  border: 2px solid #000;
  box-shadow: var(--shadow-offset-sm);
}

/* ——— UTILITIES ——— */
.text-kick, .text-yuzu { color: var(--yuzu); }
.text-live { color: var(--live); }
.text-pending { color: var(--pending); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.bg-kick, .bg-yuzu { background: var(--yuzu); }
.bg-elevated { background: var(--bg-elevated); }
.bg-card { background: var(--bg-card); }
.border-default { border-color: var(--border); }
.border-strong { border-color: var(--border-strong); }
.border-kick, .border-yuzu { border-color: var(--yuzu); }
.border-white { border-color: #fff; }
