/* ===================================
   CSS VARIABLES - DESIGN SYSTEM
   =================================== */

:root {
  /* ============ COLORS ============ */
  
  /* Primary Palette - Golden Theme */
  --color-primary: #f0b160;
  --color-primary-dark: #c47d1f;
  --color-primary-light: #f4c784;
  --color-primary-50: #fef9f1;
  --color-primary-100: #fdf2e3;
  --color-primary-200: #fae5c7;
  --color-primary-500: #f0b160;
  --color-primary-600: #c47d1f;
  --color-primary-900: #8b5a15;
  
  /* Secondary Palette */
  --color-secondary: #c47d1f;
  --color-secondary-dark: #8b5a15;
  --color-secondary-light: #d99547;
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Success, Warning, Error */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  
  /* Background Colors */
  --bg-primary: var(--color-black);
  --bg-secondary: var(--color-gray-900);
  --bg-tertiary: var(--color-gray-800);
  --bg-overlay: rgba(0, 0, 0, 0.8);
  
  /* Text Colors */
  --text-primary: var(--color-white);
  --text-secondary: var(--color-gray-300);
  --text-muted: var(--color-gray-400);
  --text-inverse: var(--color-black);
  
  /* ============ GLASSMORPHISM ============ */
  
  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.6);
  
  /* Backdrop Blur */
  --blur-sm: 4px;
  --blur-md: 12px;
  --blur-lg: 16px;
  --blur-xl: 24px;
  --blur-2xl: 40px;
  
  /* ============ GRADIENTS ============ */
  
  /* Primary Gradients - Golden Theme */
  --gradient-primary: linear-gradient(135deg, #f0b160 0%, #c47d1f 100%);
  --gradient-primary-hover: linear-gradient(135deg, #f4c784 0%, #f0b160 100%);
  --gradient-secondary: linear-gradient(135deg, #c47d1f 0%, #8b5a15 100%);
  --gradient-accent: linear-gradient(135deg, #f0b160 0%, #d99547 100%);
  
  /* Background Gradients */
  --gradient-bg-1: linear-gradient(135deg, #f0b160 0%, #c47d1f 100%);
  --gradient-bg-2: linear-gradient(135deg, #f4c784 0%, #d99547 100%);
  --gradient-bg-3: radial-gradient(circle at 30% 70%, rgba(240, 177, 96, 0.1) 0%, transparent 50%);
  
  /* Text Gradients */
  --gradient-text: linear-gradient(135deg, #f0b160 0%, #c47d1f 100%);
  --gradient-text-secondary: linear-gradient(135deg, #f4c784 0%, #d99547 100%);
  
  /* ============ TYPOGRAPHY ============ */
  
  /* Font Families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  
  /* Font Weights */
  --font-thin: 100;
  --font-extralight: 200;
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;
  
  /* 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 */
  --text-8xl: 6rem;       /* 96px */
  --text-9xl: 8rem;       /* 128px */
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* ============ SPACING ============ */
  
  /* Spacing Scale */
  --space-px: 1px;
  --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 */
  --space-40: 10rem;    /* 160px */
  --space-48: 12rem;    /* 192px */
  --space-56: 14rem;    /* 224px */
  --space-64: 16rem;    /* 256px */
  
  /* ============ LAYOUT ============ */
  
  /* Container Widths */
  --container-xs: 20rem;    /* 320px */
  --container-sm: 24rem;    /* 384px */
  --container-md: 28rem;    /* 448px */
  --container-lg: 32rem;    /* 512px */
  --container-xl: 36rem;    /* 576px */
  --container-2xl: 42rem;   /* 672px */
  --container-3xl: 48rem;   /* 768px */
  --container-4xl: 56rem;   /* 896px */
  --container-5xl: 64rem;   /* 1024px */
  --container-6xl: 72rem;   /* 1152px */
  --container-7xl: 80rem;   /* 1280px */
  --container-full: 100%;
  
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  
  /* Z-Index Scale */
  --z-auto: auto;
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-modal: 100;
  --z-dropdown: 200;
  --z-tooltip: 300;
  --z-toast: 400;
  --z-max: 9999;
  
  /* ============ BORDERS ============ */
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;    /* 2px */
  --radius-base: 0.25rem;   /* 4px */
  --radius-md: 0.375rem;    /* 6px */
  --radius-lg: 0.5rem;      /* 8px */
  --radius-xl: 0.75rem;     /* 12px */
  --radius-2xl: 1rem;       /* 16px */
  --radius-3xl: 1.5rem;     /* 24px */
  --radius-full: 9999px;
  
  /* Border Widths */
  --border-0: 0;
  --border: 1px;
  --border-2: 2px;
  --border-4: 4px;
  --border-8: 8px;
  
  /* ============ SHADOWS ============ */
  
  /* Box Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 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);
  --shadow-none: 0 0 #0000;
  
  /* Glow Effects */
  --glow-primary: 0 0 20px rgba(240, 177, 96, 0.5);
  --glow-secondary: 0 0 20px rgba(196, 125, 31, 0.5);
  --glow-success: 0 0 20px rgba(16, 185, 129, 0.5);
  --glow-error: 0 0 20px rgba(239, 68, 68, 0.5);
  
  /* ============ ANIMATIONS ============ */
  
  /* Timing Functions */
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  
  /* Duration */
  --duration-75: 75ms;
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;
  --duration-700: 700ms;
  --duration-1000: 1000ms;
  
  /* ============ COMPONENT SPECIFIC ============ */
  
  /* Navigation */
  --nav-height: 80px;
  --nav-height-mobile: 60px;
  
  /* Hero */
  --hero-height: 100vh;
  --hero-height-mobile: 100vh;
  
  /* Cards */
  --card-padding: var(--space-6);
  --card-radius: var(--radius-xl);
  --card-shadow: var(--shadow-lg);
  
  /* Buttons */
  --btn-height: 48px;
  --btn-height-sm: 36px;
  --btn-height-lg: 56px;
  --btn-padding-x: var(--space-6);
  --btn-padding-x-sm: var(--space-4);
  --btn-padding-x-lg: var(--space-8);
  
  /* Forms */
  --form-input-height: 48px;
  --form-input-padding: var(--space-4);
  --form-input-radius: var(--radius-lg);
  
  /* ============ RESPONSIVE ============ */
  
  /* Mobile First Scaling */
  --scale-mobile: 0.8;
  --scale-tablet: 0.9;
  --scale-desktop: 1;
  
  /* Content Width */
  --content-width: min(90vw, 1200px);
  --content-width-narrow: min(90vw, 800px);
  --content-width-wide: min(95vw, 1400px);
}

/* ============ DARK MODE VARIABLES ============ */
/* Dark mode is default - no need for media query override */

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-75: 0ms;
    --duration-100: 0ms;
    --duration-150: 0ms;
    --duration-200: 0ms;
    --duration-300: 0ms;
    --duration-500: 0ms;
    --duration-700: 0ms;
    --duration-1000: 0ms;
  }
}

/* ============ HIGH CONTRAST ============ */
@media (prefers-contrast: high) {
  :root {
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.2);
    --text-secondary: var(--color-gray-800);
  }
}
