/**
 * Helsinki Salsa Academy - CSS Variables & Design Tokens
 */

:root {
   /* ==========================================
       COLORS - Brand Palette
       ========================================== */

   /* Primary Colors */
   --color-primary: #070a64;
   --color-primary-light: #1a1d8f;
   --color-primary-dark: #050745;
   --color-primary-rgb: 7, 10, 100;

   /* Secondary Colors */
   --color-secondary: #ffffff;
   --color-secondary-rgb: 255, 255, 255;

   /* Accent Colors */
   --color-accent: #e63946;
   --color-accent-light: #ff6b6b;
   --color-accent-dark: #c62828;

   /* Vibrant Colors (HSA Brand) */
   --hsa-red: #E63946;
   --hsa-orange: #F4A261;
   --hsa-yellow: #E9C46A;
   --hsa-dark: #1D3557;
   --hsa-black: #1a1a1a;
   --hsa-red-rgb: 230, 57, 70;
   --hsa-orange-rgb: 244, 162, 97;
   --hsa-yellow-rgb: 233, 196, 106;
   --hsa-dark-rgb: 29, 53, 87;

   /* Accent Gold */
   --accent-gold: #C5A059;
   --accent-gold-light: #D4B876;
   --accent-gold-dark: #A88645;

   /* Neutral Colors */
   --color-dark: #1a1a2e;
   --color-gray-900: #16213e;
   --color-gray-800: #2c3e50;
   --color-gray-700: #4a5568;
   --color-gray-600: #718096;
   --color-gray-500: #a0aec0;
   --color-gray-400: #cbd5e0;
   --color-gray-300: #e2e8f0;
   --color-gray-200: #edf2f7;
   --color-gray-100: #f7fafc;
   --color-white: #ffffff;

   /* Semantic Colors */
   --color-success: #10b981;
   --color-warning: #f59e0b;
   --color-error: #ef4444;
   --color-info: #3b82f6;

   /* Gradient */
   --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
   --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
   --gradient-dark: linear-gradient(135deg, var(--color-dark) 0%, var(--color-gray-900) 100%);
   --gradient-glow: linear-gradient(135deg, rgba(7, 10, 100, 0.8) 0%, rgba(26, 29, 143, 0.6) 100%);

   /* Vibrant Gradients */
   --gradient-vibrant: linear-gradient(135deg, var(--hsa-red) 0%, var(--hsa-orange) 100%);
   --gradient-vibrant-text: linear-gradient(to right, var(--hsa-red), var(--hsa-orange));
   --gradient-warm: linear-gradient(135deg, var(--hsa-orange) 0%, var(--hsa-yellow) 100%);

   /* ==========================================
       TYPOGRAPHY
       ========================================== */

   --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
   --font-heading: 'Playfair Display', Georgia, serif;
   --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

   /* Font Sizes */
   --text-xs: 0.75rem;
   /* 12px */
   --text-sm: 0.875rem;
   /* 14px */
   --text-base: 1rem;
   /* 16px */
   --text-lg: 1.125rem;
   /* 18px */
   --text-xl: 1.25rem;
   /* 20px */
   --text-2xl: 1.5rem;
   /* 24px */
   --text-3xl: 1.875rem;
   /* 30px */
   --text-4xl: 2.25rem;
   /* 36px */
   --text-5xl: 3rem;
   /* 48px */
   --text-6xl: 3.75rem;
   /* 60px */
   --text-7xl: 4.5rem;
   /* 72px */

   /* Font Weights */
   --font-light: 300;
   --font-normal: 400;
   --font-medium: 500;
   --font-semibold: 600;
   --font-bold: 700;

   /* Line Heights */
   --leading-none: 1;
   --leading-tight: 1.25;
   --leading-snug: 1.375;
   --leading-normal: 1.5;
   --leading-relaxed: 1.625;
   --leading-loose: 2;

   /* Letter Spacing */
   --tracking-tighter: -0.05em;
   --tracking-tight: -0.025em;
   --tracking-normal: 0;
   --tracking-wide: 0.025em;
   --tracking-wider: 0.05em;
   --tracking-widest: 0.1em;

   /* ==========================================
       SPACING
       ========================================== */

   --space-0: 0;
   --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 */
   --space-32: 8rem;
   /* 128px */

   /* ==========================================
       BORDERS & RADIUS
       ========================================== */

   --radius-none: 0;
   --radius-sm: 0.25rem;
   /* 4px */
   --radius-md: 0.5rem;
   /* 8px */
   --radius-lg: 0.75rem;
   /* 12px */
   --radius-xl: 1rem;
   /* 16px */
   --radius-2xl: 1.5rem;
   /* 24px */
   --radius-3xl: 2rem;
   /* 32px */
   --radius-full: 9999px;

   --border-width: 1px;
   --border-width-2: 2px;
   --border-color: var(--color-gray-300);

   /* ==========================================
       SHADOWS
       ========================================== */

   --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
   --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
   --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
   --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
   --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
   --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
   --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

   /* Glow Effects */
   --glow-primary: 0 0 40px rgba(var(--color-primary-rgb), 0.3);
   --glow-accent: 0 0 40px rgba(230, 57, 70, 0.3);
   --glow-white: 0 0 40px rgba(255, 255, 255, 0.2);

   /* ==========================================
       TRANSITIONS
       ========================================== */

   --transition-fast: 150ms ease-in-out;
   --transition-base: 300ms ease-in-out;
   --transition-slow: 500ms ease-in-out;
   --transition-slower: 700ms ease-in-out;

   --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
   --ease-out: cubic-bezier(0, 0, 0.2, 1);
   --ease-in: cubic-bezier(0.4, 0, 1, 1);
   --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

   /* ==========================================
       Z-INDEX
       ========================================== */

   --z-dropdown: 1000;
   --z-sticky: 1020;
   --z-fixed: 1030;
   --z-modal-backdrop: 1040;
   --z-modal: 1050;
   --z-popover: 1060;
   --z-tooltip: 1070;

   /* ==========================================
       LAYOUT
       ========================================== */

   --container-sm: 640px;
   --container-md: 768px;
   --container-lg: 1024px;
   --container-xl: 1280px;
   --container-2xl: 1536px;

   --header-height: 110px;
   --header-height-scrolled: 110px;

   /* ==========================================
       BREAKPOINTS (for reference in JS)
       ========================================== */

   --breakpoint-sm: 640px;
   --breakpoint-md: 768px;
   --breakpoint-lg: 1024px;
   --breakpoint-xl: 1280px;
   --breakpoint-2xl: 1536px;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
   :root.auto-dark {
      --color-background: var(--color-dark);
      --color-text: var(--color-gray-100);
   }
}