/* [directii 63141-A] Directie: fundal neutru fara tenta, dark default + light mode complet, energie retinuta cu un singur accent galben-mustar (~48°), contrast clar, forme moi, compozitie asimetrica dominata de date live.
   Motiv: arena de competitie cu clasamente, poturi si previzualizari 3D cere claritate imediata pe cifre si contrast vizibil in ambele moduri.
   Element propriu: benzi de traseu si jetoane numerotate cu cifre tabulare. */
/* MAP
 * §1 Fonts & Dark Defaults   L13-L58
 * §2 Light Theme Overrides   L60-L84
 * §3 Base Reset & Typography L86-L134
 */
@import "/assets/fonts/bitter.css";
@import "/assets/fonts/chivo.css";
@import "/assets/fonts/ibm-plex-mono.css";

/* §1 Fonts & Dark Defaults */
:root {
  --bg: #151618;
  --surface: #1E2024;
  --surface-2: #272A30;
  --border: #3E434D;
  --border-strong: #59606E;
  --text: #ECEEF2;
  --text-2: #B6BCC8;
  --text-3: #878F9E;
  --accent: #E5B82E;
  --accent-hover: #F2CA4B;
  --on-accent: #18150C;
  --ok: #3CD070;
  --warn: #E8963A;
  --danger: #E0634D;

  --accent-soft: rgba(229, 184, 46, 0.14);
  --ok-soft: rgba(60, 208, 112, 0.14);
  --warn-soft: rgba(232, 150, 58, 0.15);
  --danger-soft: rgba(224, 99, 77, 0.15);
  --backdrop: rgba(14, 15, 18, 0.76);
  --shadow-sm: 0 2px 6px rgba(14, 15, 18, 0.28);
  --shadow-md: 0 10px 28px rgba(14, 15, 18, 0.36);

  --font-display: 'Bitter', Georgia, serif;
  --font-sans: 'Chivo', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-mid: 280ms;
}

/* §2 Light Theme Overrides */
[data-theme="light"] {
  --bg: #F3F2EE;
  --surface: #E9E7E1;
  --surface-2: #DFDCD4;
  --border: #8B8E94;
  --border-strong: #5E626A;
  --text: #1B1D21;
  --text-2: #434750;
  --text-3: #616670;
  --accent: #9C7206;
  --accent-hover: #835E03;
  --on-accent: #FAF8F2;
  --ok: #197A42;
  --warn: #9E5A12;
  --danger: #B83527;

  --accent-soft: rgba(156, 114, 6, 0.12);
  --ok-soft: rgba(25, 122, 66, 0.12);
  --warn-soft: rgba(158, 90, 18, 0.12);
  --danger-soft: rgba(184, 53, 39, 0.12);
  --backdrop: rgba(27, 29, 33, 0.56);
  --shadow-sm: 0 2px 6px rgba(27, 29, 33, 0.08);
  --shadow-md: 0 10px 26px rgba(27, 29, 33, 0.12);
}

/* §3 Base Reset & Typography */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h3 { font-size: 1.08rem; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
