/* ============================================
   Design Tokens — 파크골프 타운 코스
   라이트/다크 모드 CSS 변수 정의
   ============================================ */

:root {
  /* Brand */
  --color-primary: #2d5a3d;
  --color-primary-hover: #234a31;
  --color-primary-light: #4a8a5f;
  --color-primary-soft: rgba(45, 90, 61, 0.08);
  --color-accent: #d4a017;
  --color-accent-hover: #b88a14;

  /* Neutrals (Light) */
  --color-bg: #ffffff;
  --color-surface: #f5f7f3;
  --color-surface-2: #eaefe5;
  --color-text: #1a1a1a;
  --color-text-muted: #5a6b5a;
  --color-border: #d4ddd4;
  --color-divider: #e8ede5;

  /* Semantic */
  --color-success: #15803d;
  --color-warning: #c2410c;
  --color-danger: #b91c1c;
  --color-info: #1d4ed8;
  --color-success-soft: rgba(21, 128, 61, 0.08);
  --color-warning-soft: rgba(194, 65, 12, 0.08);
  --color-danger-soft: rgba(185, 28, 28, 0.08);
  --color-info-soft: rgba(29, 78, 216, 0.08);

  /* Typography */
  --font-body: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 17px;
  --fs-md: 18px;
  --fs-lg: 20px;
  --fs-xl: 24px;
  --fs-2xl: 32px;
  --fs-3xl: 44px;

  /* Spacing (8pt scale) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Layout */
  --container-tool: 760px;
  --container-wide: 1200px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Motion */
  --tr-fast: 150ms ease;
  --tr-base: 250ms ease;
}

/* ===== Dark mode ===== */
[data-theme="dark"] {
  --color-bg: #0f1713;
  --color-surface: #1a2420;
  --color-surface-2: #243028;
  --color-text: #e8ede5;
  --color-text-muted: #95a396;
  --color-border: #2d3c35;
  --color-divider: #243028;

  --color-primary: #5fa577;
  --color-primary-hover: #70b587;
  --color-primary-light: #8ccba1;
  --color-primary-soft: rgba(95, 165, 119, 0.12);
  --color-accent: #e8bd3d;
  --color-accent-hover: #f0c956;

  --color-success: #4ade80;
  --color-warning: #fb923c;
  --color-danger: #f87171;
  --color-info: #60a5fa;
  --color-success-soft: rgba(74, 222, 128, 0.10);
  --color-warning-soft: rgba(251, 146, 60, 0.10);
  --color-danger-soft: rgba(248, 113, 113, 0.10);
  --color-info-soft: rgba(96, 165, 250, 0.10);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
}
