/* ============================================================
   DESIGN TOKENS
   Sve boje, spacing, radius, shadows — na jednom mjestu.
   Mijenjaj samo ove varijable da promijeniš cijeli izgled.
   ============================================================ */

:root {
  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 280ms var(--ease);
}

/* --- DARK THEME (default) --- */
[data-theme="dark"] {
  --bg: #0a0b0d;
  --bg-subtle: #111315;
  --surface: #17191c;
  --surface-elev: #1e2126;
  --surface-hover: #24272d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-muted: #a1a1aa;
  --text-subtle: #6b7280;
  --accent: #4a90ff;
  --accent-soft: rgba(74, 144, 255, 0.12);
  --accent-text: #7dabff;
  --success: #30d158;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --glow: radial-gradient(circle at 20% 0%, rgba(74, 144, 255, 0.08), transparent 50%),
          radial-gradient(circle at 80% 100%, rgba(74, 144, 255, 0.04), transparent 40%);
}

/* --- LIGHT THEME --- */
[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-subtle: #eeeef0;
  --surface: #ffffff;
  --surface-elev: #ffffff;
  --surface-hover: #f9f9fb;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  --text: #1d1d1f;
  --text-muted: #52525b;
  --text-subtle: #86868b;
  --accent: #0051d5;
  --accent-soft: rgba(0, 81, 213, 0.08);
  --accent-text: #0051d5;
  --success: #1e8e3e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --glow: radial-gradient(circle at 20% 0%, rgba(0, 81, 213, 0.04), transparent 50%),
          radial-gradient(circle at 80% 100%, rgba(0, 81, 213, 0.02), transparent 40%);
}
