/* tokens.css — 3D Viral Prompt design tokens (Phase A, Foundation).
 * Locked palette and typography from the approved Final Design
 * Reference Sheet. Dark theme is the default; light theme overrides
 * live under [data-theme="light"]. Do not change values without
 * owner approval — the design is DESIGN LOCKED.
 */

:root {
  /* Locked brand palette */
  --bg: #061b13;
  --surface: #0b241b;
  --surface-raised: #123528;
  --green: #22c55e;
  --green-accent: #16a34a;
  /* Text green: same as --green in dark, darker (#166534, 6.51:1 on
     #F1F5F9 / 7.13:1 on white) in light for WCAG AA text contrast. */
  --green-text: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --light-bg: #f1f5f9;

  /* Dark theme surfaces and text */
  --bg-elevated: #0e2c20;
  --text: #eef6f1;
  --text-muted: #9db8ab;
  --text-on-green: #061b13;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(6, 27, 19, 0.88);

  /* Typography — Inter (body) / Poppins (display) */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", Menlo, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.5rem;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;

  /* Radii, layout, motion */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --container: 1180px;
  --header-height: 64px;
  --bottom-nav-height: 60px;
  --transition: 160ms ease;

  /* Status / badge accents (restrained; per-category badge tints
     are set in Phase B from the reference sheet) */
  --danger: #f87171;
  --focus-ring: 0 0 0 3px rgba(34, 197, 94, 0.45);
}

[data-theme="light"] {
  --bg: var(--light-bg);
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --bg-elevated: #ffffff;
  --text: #0b241b;
  --text-muted: #51655c;
  /* #061b13 on #22c55e = 7.85:1 (was white on green = 2.28:1). */
  --text-on-green: #061b13;
  --green-text: #166534;
  --border: rgba(6, 27, 19, 0.12);
  --border-strong: rgba(6, 27, 19, 0.22);
  --shadow: 0 12px 28px rgba(6, 27, 19, 0.12);
  --header-bg: rgba(241, 245, 249, 0.9);
}
