/* public/css/tokens.css — single source of color (+ radius/shadow) tokens for
   the static pages (public/*.html). UX-08 Faza 1 (2026-11-01).

   Mirrors the React app's palette (src/styles/tokens.css) — keep the two in sync.
   Light is the default; auto-dark via @media(prefers-color-scheme); manual theme
   via [data-theme] (theme-bootstrap.js sets it from localStorage, default 'dark').

   Provides EVERY token name the static pages use so each page can drop its own
   :root block and still resolve:
     - landing / vca-basis / vca-vol use  --text-muted
     - dla-firm uses  --muted / --accent / --primary-dark
   The dla-firm aliases point to the canonical value (so migrating dla-firm in
   Faza 2 also fixes its --muted #8B929A, a WCAG-contrast bug).

   MIGRATED (local token block removed, inherits this file): landing, dla-firm,
   privacy, vca-basis, vca-vol.
   - vca-basis/vol: forced-light (data-theme="light" na <html>) + trzymają
     własne --warning-bg/--warning-border/--info-bg/--info-border lokalnie (light-only).
   - dla-firm: trzyma własne --shadow-* (inne rozmycie) lokalnie; --muted #8B929A→#5A6169 (WCAG-fix).
   POZA ZAKRESEM: slowniczek + podziel-sie-opinia (dark-first design, bg #0b0d10),
   admin (osobny hacker theme). */

:root {
  --primary: #0F6E56;
  --primary-light: #1D9E75;
  --primary-bg: #E1F5EE;
  --primary-dark: #0D5E49;        /* dla-firm alias (primary-hover) */
  --success: #639922;
  --warning: #BA7517;
  --accent: #BA7517;              /* dla-firm alias (= --warning) */
  --bg: #F6F8FA;
  --surface: #FFFFFF;
  --text: #1A1D21;
  --text-secondary: #5A6169;
  --text-muted: #5A6169;
  --muted: #5A6169;               /* dla-firm alias (= --text-muted; było #8B929A = WCAG fail) */
  --border: #E2E6EA;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #1D9E75;
    --primary-light: #2AB88A;
    --primary-bg: #0D2E24;
    --bg: #111318;
    --surface: #1A1D23;
    --text: #E8EAED;
    --text-secondary: #9AA0A8;
    --text-muted: #9AA0A8;
    --muted: #9AA0A8;
    --border: #2A2E35;
  }
}

/* Explicit data-theme overrides — win over @media (theme-bootstrap.js sets
   data-theme from localStorage, default 'dark'). */
[data-theme="dark"] {
  --primary: #1D9E75;
  --primary-light: #2AB88A;
  --primary-bg: #0D2E24;
  --bg: #111318;
  --surface: #1A1D23;
  --text: #E8EAED;
  --text-secondary: #9AA0A8;
  --text-muted: #9AA0A8;
  --muted: #9AA0A8;
  --border: #2A2E35;
}

[data-theme="light"] {
  --primary: #0F6E56;
  --primary-light: #1D9E75;
  --primary-bg: #E1F5EE;
  --bg: #F6F8FA;
  --surface: #FFFFFF;
  --text: #1A1D21;
  --text-secondary: #5A6169;
  --text-muted: #5A6169;
  --muted: #5A6169;
  --border: #E2E6EA;
}
