/* ==============================================
   Design Tokens - Light & Dark Theme
   ============================================== */

:root {
  /* --- Colors (Light Theme) --- */
  --color-primary: #6c5ce7;
  --color-primary-light: #a29bfe;
  --color-primary-dark: #4a3fb5;
  --color-secondary: #00b894;
  --color-secondary-light: #55efc4;
  --color-accent: #fd79a8;

  --color-bg: #f8f9fa;
  --color-bg-secondary: #ffffff;
  --color-bg-tertiary: #eef0f2;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f3f5;

  --color-text: #2d3436;
  --color-text-secondary: #636e72;
  --color-text-tertiary: #b2bec3;
  --color-text-inverse: #ffffff;

  --color-border: #dfe6e9;
  --color-border-light: #eef0f2;

  /* --- Glass --- */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --glass-blur: 16px;

  /* --- Gradients --- */
  --gradient-hero: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #fd79a8 100%);
  --gradient-hero-alt: linear-gradient(135deg, #a29bfe 0%, #fd79a8 50%, #6c5ce7 100%);
  --gradient-card: linear-gradient(145deg, var(--color-surface), var(--color-bg-tertiary));
  --gradient-text: linear-gradient(135deg, #6c5ce7, #fd79a8);

  /* --- Typography --- */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Noto Sans KR', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.875rem + 0.3vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --text-3xl: clamp(1.875rem, 1.4rem + 2.4vw, 3rem);
  --text-4xl: clamp(2.25rem, 1.5rem + 3.75vw, 4rem);

  --leading-tight: 1.2;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* --- Spacing --- */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* --- Border Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Z-Index --- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;

  /* --- Container --- */
  --container-max: 1200px;
  --container-padding: clamp(1rem, 3vw, 2rem);
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --color-primary: #a29bfe;
  --color-primary-light: #6c5ce7;
  --color-primary-dark: #c5bfff;
  --color-secondary: #55efc4;
  --color-secondary-light: #00b894;
  --color-accent: #fd79a8;

  --color-bg: #0f0f1a;
  --color-bg-secondary: #1a1a2e;
  --color-bg-tertiary: #222240;
  --color-surface: #1a1a2e;
  --color-surface-hover: #222240;

  --color-text: #e8e8f0;
  --color-text-secondary: #a0a0b8;
  --color-text-tertiary: #6c6c82;
  --color-text-inverse: #0f0f1a;

  --color-border: #2a2a44;
  --color-border-light: #222240;

  --glass-bg: rgba(26, 26, 46, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #6c5ce7 50%, #fd79a8 100%);
  --gradient-hero-alt: linear-gradient(135deg, #fd79a8 0%, #6c5ce7 50%, #1a1a2e 100%);
  --gradient-card: linear-gradient(145deg, var(--color-surface), var(--color-bg-tertiary));

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.4);
}
