/**
 * Design System Variables - Limburg GeoGuessr
 * Modern, vibrant color palette inspired by Limburg's landscapes
 * Includes responsive typography, spacing system, and design tokens
 */

:root {
   /* ========================================
     COLOR PALETTE
     ======================================== */

   /* Primary Colors - Deep Limburg Blue/Teal */
   --color-primary-50: hsl(200, 80%, 97%);
   --color-primary-100: hsl(200, 80%, 90%);
   --color-primary-200: hsl(200, 75%, 80%);
   --color-primary-300: hsl(200, 70%, 65%);
   --color-primary-400: hsl(200, 65%, 50%);
   --color-primary-500: hsl(200, 75%, 40%);
   /* Main Brand Color */
   --color-primary-600: hsl(200, 80%, 30%);
   --color-primary-700: hsl(200, 85%, 20%);
   --color-primary-800: hsl(200, 90%, 15%);
   --color-primary-900: hsl(200, 95%, 10%);

   /* Secondary Colors - Limburg Gold/Amber */
   --color-secondary-50: hsl(45, 90%, 96%);
   --color-secondary-100: hsl(45, 90%, 88%);
   --color-secondary-200: hsl(45, 90%, 75%);
   --color-secondary-300: hsl(45, 90%, 60%);
   --color-secondary-400: hsl(45, 95%, 50%);
   --color-secondary-500: hsl(45, 100%, 45%);
   /* Accent Color */
   --color-secondary-600: hsl(45, 100%, 35%);
   --color-secondary-700: hsl(45, 100%, 25%);
   --color-secondary-800: hsl(45, 100%, 18%);
   --color-secondary-900: hsl(45, 100%, 10%);

   /* Neutrals - Slate Grays for modern feel */
   --color-neutral-50: hsl(215, 25%, 98%);
   --color-neutral-100: hsl(215, 20%, 94%);
   --color-neutral-200: hsl(215, 18%, 86%);
   --color-neutral-300: hsl(215, 15%, 75%);
   --color-neutral-400: hsl(215, 12%, 55%);
   --color-neutral-500: hsl(215, 15%, 40%);
   --color-neutral-600: hsl(215, 20%, 30%);
   --color-neutral-700: hsl(215, 25%, 20%);
   --color-neutral-800: hsl(215, 30%, 15%);
   --color-neutral-900: hsl(215, 35%, 10%);

   /* Semantic Colors */
   --color-success: hsl(150, 80%, 40%);
   --color-success-light: hsl(150, 80%, 92%);
   --color-error: hsl(350, 85%, 55%);
   --color-error-light: hsl(350, 85%, 95%);
   --color-warning: hsl(40, 95%, 50%);
   --color-warning-light: hsl(40, 95%, 92%);
   --color-info: hsl(210, 90%, 55%);
   --color-info-light: hsl(210, 90%, 94%);

   /* Surface Colors */
   --color-bg-primary: var(--color-neutral-50);
   --color-bg-secondary: #ffffff;
   --color-bg-tertiary: var(--color-neutral-100);
   --color-bg-overlay: hsla(215, 35%, 10%, 0.8);

   /* Text Colors */
   --color-text-primary: var(--color-neutral-900);
   --color-text-secondary: var(--color-neutral-600);
   --color-text-tertiary: var(--color-neutral-400);
   --color-text-inverse: #ffffff;
   --color-text-link: var(--color-primary-600);

   /* ========================================
     TYPOGRAPHY
     ======================================== */

   /* Font Families */
   --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
   --font-display: 'Outfit', var(--font-primary);
   --font-mono: 'Fira Code', monospace;

   /* Font Sizes - Fluid Typography */
   --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
   --font-size-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
   --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
   --font-size-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.375rem);
   --font-size-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.625rem);
   --font-size-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
   --font-size-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.625rem);
   --font-size-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3.375rem);

   /* Font Weights */
   --font-weight-light: 300;
   --font-weight-regular: 400;
   --font-weight-medium: 500;
   --font-weight-semibold: 600;
   --font-weight-bold: 700;
   --font-weight-extrabold: 800;

   /* Line Heights */
   --line-height-tight: 1.1;
   --line-height-normal: 1.6;
   --line-height-relaxed: 1.8;

   /* Letter Spacing */
   --letter-spacing-tight: -0.02em;
   --letter-spacing-normal: 0;
   --letter-spacing-wide: 0.03em;

   /* ========================================
     SPACING SYSTEM (8px base)
     ======================================== */

   --space-1: 0.25rem;
   /* 4px */
   --space-2: 0.5rem;
   /* 8px */
   --space-3: 0.75rem;
   /* 12px */
   --space-4: 1rem;
   /* 16px */
   --space-5: 1.25rem;
   /* 20px */
   --space-6: 1.5rem;
   /* 24px */
   --space-8: 2rem;
   /* 32px */
   --space-10: 2.5rem;
   /* 40px */
   --space-12: 3rem;
   /* 48px */
   --space-16: 4rem;
   /* 64px */
   --space-20: 5rem;
   /* 80px */
   --space-24: 6rem;
   /* 96px */

   /* ========================================
     BORDER RADIUS
     ======================================== */

   --radius-sm: 0.375rem;
   /* 6px */
   --radius-md: 0.5rem;
   /* 8px */
   --radius-lg: 0.75rem;
   /* 12px */
   --radius-xl: 1rem;
   /* 16px */
   --radius-2xl: 1.5rem;
   /* 24px */
   --radius-full: 9999px;

   /* ========================================
     SHADOWS (Smooth, layered)
     ======================================== */

   --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
   --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
   --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
   --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
   --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
   --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
   --shadow-glow: 0 0 15px rgba(var(--color-primary-500), 0.3);

   /* ========================================
     Z-INDEX SYSTEM
     ======================================== */

   --z-base: 0;
   --z-dropdown: 100;
   --z-sticky: 200;
   --z-fixed: 300;
   --z-modal-backdrop: 400;
   --z-modal: 500;
   --z-popover: 600;
   --z-tooltip: 700;

   /* ========================================
     TRANSITIONS
     ======================================== */

   --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
   --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
   --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
   --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

   /* ========================================
     BREAKPOINTS
     ======================================== */

   --breakpoint-sm: 640px;
   --breakpoint-md: 768px;
   --breakpoint-lg: 1024px;
   --breakpoint-xl: 1280px;
   --breakpoint-2xl: 1536px;

   /* ========================================
     COMPONENT TOKENS
     ======================================== */

   /* Buttons */
   --btn-height-sm: 2.25rem;
   --btn-height-md: 2.75rem;
   --btn-height-lg: 3.25rem;
   --btn-padding-x: var(--space-6);
   --btn-padding-y: var(--space-3);

   /* Inputs */
   --input-height: 3rem;
   --input-padding-x: var(--space-4);
   --input-border: 1px solid var(--color-neutral-300);
   --input-border-focus: 2px solid var(--color-primary-500);

   /* Cards */
   --card-padding: var(--space-6);
   --card-bg: var(--color-bg-secondary);
   --card-border: 1px solid var(--color-neutral-200);

   /* Glassmorphism */
   --glass-bg: rgba(255, 255, 255, 0.85);
   --glass-border: rgba(255, 255, 255, 0.5);
   --glass-blur: blur(12px);
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

[data-theme="dark"] {
   /* Backgrounds */
   --color-bg-primary: hsl(215, 30%, 12%);
   --color-bg-secondary: hsl(215, 25%, 18%);
   --color-bg-tertiary: hsl(215, 25%, 22%);
   --color-bg-overlay: hsla(215, 35%, 5%, 0.9);

   /* Text - Using explicit light colors */
   --color-text-primary: hsl(215, 25%, 98%);
   --color-text-secondary: hsl(215, 15%, 75%);
   --color-text-tertiary: hsl(215, 12%, 55%);
   --color-text-inverse: hsl(215, 35%, 10%);

   /* Borders and UI elements */
   --color-neutral-100: hsl(215, 25%, 18%);
   --color-neutral-200: hsl(215, 20%, 25%);
   --color-neutral-300: hsl(215, 15%, 35%);

   /* Shadows - Darker for dark mode */
   --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
   --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
   --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
   --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
   --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

   /* Glassmorphism - Dark glass effect */
   --glass-bg: rgba(30, 41, 59, 0.7);
   --glass-border: rgba(255, 255, 255, 0.1);
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
   :root {
      --transition-fast: 0s;
      --transition-base: 0s;
      --transition-slow: 0s;
      --transition-bounce: 0s;
   }
}