/* =========================================
   BuddyPlanner v2 — Design Tokens
   Premium Dark Golf Theme
   ========================================= */

:root {
  /* ── Core Palette ── */
  --emerald-950: #021a0f;
  --emerald-900: #04261a;
  --emerald-800: #073d2a;
  --emerald-700: #0c5c3f;
  --emerald-600: #0f7b54;
  --emerald-500: #14a36e;
  --emerald-400: #22c987;
  --emerald-300: #5ddba6;
  --emerald-200: #9aebc8;
  --emerald-100: #d1f5e4;

  --gold-600: #9a7b2e;
  --gold-500: #c8a951;
  --gold-400: #d4bc6e;
  --gold-300: #e2d08e;
  --gold-200: #eee2b6;
  --gold-100: #f7f0d9;

  --slate-950: #06090a;
  --slate-900: #0c1114;
  --slate-800: #131b20;
  --slate-700: #1c2930;
  --slate-600: #2a3d46;
  --slate-500: #3d5a66;
  --slate-400: #5a8090;
  --slate-300: #8aacb8;
  --slate-200: #b8d0d8;
  --slate-100: #e0ecf0;

  /* ── Semantic Colors (Light Theme) ── */
  --bg-app: #ffffff;
  --bg-surface: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f1f5f9;
  --bg-input-hover: #e2e8f0;
  --bg-input-focus: #cbd5e1;

  --text-100: #0f172a;
  --text-200: #1e293b;
  --text-300: #334155;
  --text-400: #475569;
  --text-500: #64748b;

  --accent: #10b981;
  --accent-dim: rgba(16, 185, 129, 0.1);
  --accent-glow: rgba(16, 185, 129, 0.2);
  --gold: #d97706;
  --gold-dim: rgba(217, 119, 6, 0.1);
  --danger: #ef4444;

  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-default: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --border-accent: rgba(16, 185, 129, 0.3);

  /* ── Shadows & Glows ── */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
  --glow-accent: 0 0 20px rgba(16, 185, 129, 0.15);
  --glow-gold: 0 0 20px rgba(217, 119, 6, 0.15);
  --glow-accent-strong: 0 0 30px rgba(16, 185, 129, 0.25);

  /* ── Gradients ── */
  --grad-accent: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --grad-accent-v: linear-gradient(180deg, #10b981, #34d399);
  --grad-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  --grad-card: #ffffff;
  --grad-card-gold: #fffbeb;
  --grad-hero: linear-gradient(180deg, rgba(241, 245, 249, 1) 0%, rgba(255, 255, 255, 0) 100%);
  --grad-bg-radial: radial-gradient(ellipse at 30% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  --grad-bg-radial-gold: radial-gradient(ellipse at 70% 80%, rgba(217, 119, 6, 0.04) 0%, transparent 50%);
  --grad-timeline: linear-gradient(180deg, var(--accent), var(--gold));
  --grad-glass-border: linear-gradient(160deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.01) 100%);

  /* ── Typography ── */
  --font-sans: 'Pretendard Variable', 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', monospace;

  --fs-2xs: 0.625rem;   /* 10px */
  --fs-xs: 0.6875rem;   /* 11px */
  --fs-sm: 0.8125rem;   /* 13px */
  --fs-base: 0.9375rem; /* 15px */
  --fs-md: 1rem;        /* 16px */
  --fs-lg: 1.125rem;    /* 18px */
  --fs-xl: 1.375rem;    /* 22px */
  --fs-2xl: 1.625rem;   /* 26px */
  --fs-3xl: 2rem;       /* 32px */
  --fs-4xl: 2.5rem;     /* 40px */

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  --ls-tight: -0.03em;
  --ls-normal: -0.01em;
  --ls-wide: 0.04em;

  /* ── Spacing ── */
  --sp-0: 0;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* ── Radius ── */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-3xl: 28px;
  --r-full: 9999px;

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-normal: 220ms;
  --dur-slow: 380ms;
  --dur-slower: 500ms;

  /* ── Z-index ── */
  --z-base: 1;
  --z-sticky: 50;
  --z-dropdown: 100;
  --z-modal: 500;
  --z-toast: 900;

  /* ── Layout ── */
  --app-w: 430px;
  --header-h: 56px;
  --nav-h: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
