/* GTA67 Hub – design tokens + base
   Direction: the in-game GTA V pause menu / Social Club. Flat black panels, hard edges, condensed caps,
   bone-white selection plates, one restrained pink accent, money always green.
   No glass, no glow, no gradient text. Components live in app.css. */

@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600&display=swap");

:root {
  /* surfaces */
  --bg: #09090a;
  --bg-deep: #050506;
  --panel: #111113;
  --panel-2: #17171a;
  --panel-3: #1f1f23;
  --plate: #f2f0ea;            /* the white "selected row" of the pause menu */
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-hard: rgba(255, 255, 255, 0.24);
  --depth: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 24px 48px -24px rgba(0, 0, 0, 0.8);

  /* text */
  --text: #f1efea;
  --text-2: #bdbab3;
  --muted: #8c8983;
  --dim: #5d5b57;

  /* colour */
  --accent: #e5396e;           /* GTA67 pink – logo, active marks, one CTA per screen */
  --accent-hover: #ef4c7d;
  --cash: #72c25e;             /* money is always green, like the HUD */
  --cash-hover: #86d272;
  --info: #5fa8e8;             /* police / info blue */
  --warn: #e8b33c;             /* objective yellow */
  --danger: #d9443a;
  --danger-hover: #e8574d;

  /* type */
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, Consolas, monospace;
  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-h4: 1.1rem;
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --fs-h1: clamp(2.8rem, 2rem + 4vw, 5.4rem);
  --fs-display: clamp(3.6rem, 2rem + 9vw, 9rem);
  --track-caps: 0.1em;
  --track-label: 0.16em;

  /* spacing scale (4 px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: clamp(64px, 5vw + 32px, 112px);  /* section rhythm */

  /* shape + motion */
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t: 0.18s var(--ease);
  --t-slow: 0.35s var(--ease);
  --nav-h: 64px;
  --container: 1240px;
  --gutter: var(--s-5);
  --measure: 68ch;

  /* legacy names used by page and admin scripts – keep */
  --space-xs: var(--s-1);
  --space-sm: var(--s-2);
  --space-md: var(--s-4);
  --space-lg: var(--s-5);
  --space-xl: var(--s-6);
  --space-2xl: var(--s-8);
  --neon-pink: var(--accent);
  --neon-green: var(--cash);
  --neon-cyan: var(--info);
  --neon-orange: var(--warn);
  --neon-yellow: var(--warn);
  --neon-red: var(--danger);
  --neon-red-glow: transparent;
  --neon-purple: #9b7fd1;
  --gradient-sunset: var(--accent);
  --text-main: var(--text);
  --text-secondary: var(--text-2);
  --text-muted: var(--muted);
  --text-dim: var(--dim);
  --bg-base: var(--bg);
  --bg-surface: var(--panel);
  --bg-surface-elevated: var(--panel-2);
  --bg-surface-hover: var(--panel-3);
  --border-subtle: var(--line);
  --border-medium: var(--line-strong);
  --border-pink: var(--accent);
  --border-green: var(--cash);
  --border-cyan: var(--info);
  --radius-xs: var(--radius);
  --radius-sm: var(--radius);
  --radius-md: var(--radius);
  --radius-lg: 4px;
  --radius-xl: 4px;
  --radius-full: 999px;
  --font-display: var(--font-head);
  --font-heading: var(--font-head);
  --transition-fast: var(--t);
  --transition-normal: var(--t);
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: radial-gradient(120% 60% at 50% -10%, #141417 0%, var(--bg) 60%) fixed var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--line-strong); }
::-webkit-scrollbar-thumb:hover { background: var(--line-hard); }

/* film grain over the whole page – very light, no colour */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 3000; pointer-events: none;
  opacity: 0.05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- focus ---------- */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--plate); outline-offset: 3px; border-radius: 2px; }
.btn:focus-visible, .tab:focus-visible, .nav-link:focus-visible { outline-offset: 3px; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; }

/* ---------- type ---------- */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.005em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.05; }
h4 { font-size: var(--fs-h4); line-height: 1.1; }
p { max-width: var(--measure); }
.font-heading { font-family: var(--font-head); }
.eyebrow, .label, .stat-label, .caps {
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs);
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted);
}
.eyebrow { letter-spacing: 0.2em; }
.text-gradient-sunset, .text-pink { color: var(--accent); }
.text-gradient-cash, .text-cash { color: var(--cash); }
.text-gradient-cyan, .text-cyan { color: var(--info); }
.text-orange { color: var(--warn); }
.text-danger { color: var(--danger); }
.text-muted, .muted { color: var(--muted); }
.text-dim { color: var(--dim); }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: var(--fs-sm); }
.mono { font-family: var(--font-mono); font-size: var(--fs-sm); }
code { font-family: var(--font-mono); font-size: 0.92em; background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: var(--radius); }

/* ---------- layout utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.flex-center { display: flex; justify-content: center; align-items: center; }
.items-center { align-items: center; }
.gap-xs { gap: var(--s-1); } .gap-sm { gap: var(--s-2); } .gap-md { gap: var(--s-4); } .gap-lg { gap: var(--s-5); }
.stack > * + * { margin-top: var(--s-5); }
.mt-md { margin-top: var(--s-4); }
.mt-lg { margin-top: var(--s-5); }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 900px) {
  :root { --gutter: var(--s-4); }
}
