/* =========================================
   BuddyPlanner v2 — Design Tokens
   Minical Style (Light, Clean, Minimal)
   ========================================= */

:root {
  /* ── Core Palette (Monochrome & Grayscale) ── */
  --gray-900: #1c1c1e;
  --gray-800: #2c2c2e;
  --gray-700: #3a3a3c;
  --gray-600: #8e8e93;
  --gray-500: #aeaeb2;
  --gray-400: #c7c7cc;
  --gray-300: #d1d1d6;
  --gray-200: #E6E7EB;
  --gray-100: #F6F7F9;

  --ios-blue: #007aff;
  --ios-red: #ff3b30;
  --ios-orange: #ff9500;
  --ios-green: #34c759;
  
  /* ── Semantic Colors ── */
  --bg-app: #F6F7F9; /* 화면 바탕 (시안 공통 규칙) */
  --bg-surface: #F6F7F9;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f9f9f9;
  --bg-input: #efeff4;
  --bg-input-hover: #E6E7EB;
  --bg-input-focus: #ffffff;

  --text-100: #14161A;
  --text-200: #1E2128;
  --text-300: #4A4F5A;
  --text-400: #6B7180;
  --text-500: #9AA0AC;

  --accent: #3B45C4; /* 로드플래너 대표색(남색) — 강조색은 이것 하나 */
  --accent-ink: #2B338F;
  --warn: #9A4A06;      /* 지연·빠듯함 (주황) */
  --warn-bg: #FDF1E3;
  --ok: #1F7A4C;
  --ok-bg: #E8F4EC;
  --line: #E6E7EB;
  --accent-dim: rgba(59, 69, 196, 0.1);
  --accent-glow: rgba(59, 69, 196, 0.05);
  --gold: var(--ios-red); /* Map old gold points to iOS red */
  --gold-dim: rgba(255, 59, 48, 0.1);
  --danger: var(--ios-red);

  --border-subtle: #EFF0F3;
  --border-default: #E6E7EB;
  --border-strong: rgba(60, 60, 67, 0.29);
  --border-accent: rgba(59, 69, 196, 0.3);

  /* ── Shadows & Glows ── */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.02);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-xl: 0 12px 32px rgba(0,0,0,0.1);
  
  --glow-accent: none;
  --glow-gold: none;
  --glow-accent-strong: none;

  /* ── Gradients ── */
  --grad-accent: var(--accent);
  --grad-accent-v: var(--accent);
  --grad-gold: var(--ios-red);
  --grad-card: #ffffff;
  --grad-card-gold: #ffffff;
  --grad-hero: #F6F7F9;
  --grad-bg-radial: none;
  --grad-bg-radial-gold: none;
  --grad-timeline: var(--border-subtle);
  --grad-glass-border: none;

  /* ── Typography ── */
  --font-sans: 'IBM Plex Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', ui-monospace, monospace;

  --fs-2xs: 0.75rem;    /* 12px (기존 11px) */
  --fs-xs: 0.8125rem;   /* 13px (기존 12px) */
  --fs-sm: 0.9375rem;   /* 15px (기존 14px) */
  --fs-base: 1rem;      /* 16px */
  --fs-md: 1.125rem;    /* 18px */
  --fs-lg: 1.25rem;     /* 20px */
  --fs-xl: 1.5rem;      /* 24px */
  --fs-2xl: 1.75rem;    /* 28px */
  --fs-3xl: 2.125rem;   /* 34px */
  --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.01em;
  --ls-normal: 0em;
  --ls-wide: 0.02em;

  /* ── 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.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 150ms;
  --dur-normal: 250ms;
  --dur-slow: 400ms;
  --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);
}
