/**
 * Suraj Transport - Theme Variables
 * Global CSS custom properties for light/dark theming
 * Module: UI Theme & Components
 */

:root {
  /* Brand Colors - Suraj Red */
  --st-brand-primary: #e31837;
  --st-brand-primary-dark: #c0142f;
  --st-brand-primary-light: #FEE2E2;
  --st-brand-coral: #F87171;
  --st-brand-orange: #FB923C;

  /* Semantic Colors */
  --st-success: #16A34A;
  --st-success-light: #DCFCE7;
  --st-warning: #F59E0B;
  --st-warning-light: #FEF3C7;
  --st-info: #3B82F6;
  --st-info-light: #DBEAFE;
  --st-danger: #DC2626;
  --st-danger-light: #FEE2E2;

  /* Light Mode (Default) */
  --st-bg-primary: #FFFFFF;
  --st-bg-secondary: #F9FAFB;
  --st-bg-tertiary: #F3F4F6;
  --st-bg-elevated: #FFFFFF;
  --st-bg-glass: rgba(255, 255, 255, 0.85);

  --st-text-primary: #111827;
  --st-text-secondary: #4B5563;
  --st-text-tertiary: #9CA3AF;
  --st-text-inverse: #FFFFFF;

  --st-border-light: #E5E7EB;
  --st-border-medium: #D1D5DB;
  --st-border-strong: #9CA3AF;

  /* Shadows - Light Mode */
  --st-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --st-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --st-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --st-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --st-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --st-shadow-3d: 0 10px 20px rgba(0, 0, 0, 0.1),
    0 20px 40px rgba(220, 38, 38, 0.1);
  --st-shadow-glow: 0 0 20px rgba(220, 38, 38, 0.3);

  /* 3D Effects */
  --st-perspective: 1200px;
  --st-3d-depth: 30px;
  --st-card-tilt-x: 5deg;
  --st-card-tilt-y: -5deg;

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

  /* Typography */
  --st-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --st-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --st-spacing-xs: 0.25rem;
  --st-spacing-sm: 0.5rem;
  --st-spacing-md: 1rem;
  --st-spacing-lg: 1.5rem;
  --st-spacing-xl: 2rem;
  --st-spacing-2xl: 3rem;

  /* Border Radius */
  --st-radius-sm: 0.375rem;
  --st-radius-md: 0.5rem;
  --st-radius-lg: 0.75rem;
  --st-radius-xl: 1rem;
  --st-radius-2xl: 1.5rem;
  --st-radius-3xl: 2rem;

  /* Transitions */
  --st-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --st-transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --st-transition-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);
  --st-transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-Index Scale */
  --st-z-base: 0;
  --st-z-dropdown: 100;
  --st-z-sticky: 200;
  --st-z-fixed: 300;
  --st-z-modal-backdrop: 400;
  --st-z-modal: 500;
  --st-z-popover: 600;
  --st-z-tooltip: 700;
}

/* Dark Mode */
[data-theme="dark"] {
  --st-bg-primary: #0F0F0F;
  --st-bg-secondary: #1A1A1A;
  --st-bg-tertiary: #262626;
  --st-bg-elevated: #1F1F1F;
  --st-bg-glass: rgba(31, 31, 31, 0.9);

  --st-text-primary: #F9FAFB;
  --st-text-secondary: #D1D5DB;
  --st-text-tertiary: #6B7280;
  --st-text-inverse: #111827;

  --st-border-light: #374151;
  --st-border-medium: #4B5563;
  --st-border-strong: #6B7280;

  /* Shadows - Dark Mode */
  --st-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --st-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --st-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --st-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --st-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
  --st-shadow-3d: 0 10px 20px rgba(0, 0, 0, 0.4),
    0 20px 40px rgba(220, 38, 38, 0.15);
  --st-shadow-glow: 0 0 30px rgba(220, 38, 38, 0.4);

  /* Glassmorphism - Dark */
  --st-glass-border: rgba(255, 255, 255, 0.1);
  --st-glass-bg: rgba(31, 31, 31, 0.9);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --st-glass-bg: var(--st-bg-primary);
    --st-glass-border: var(--st-border-strong);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  :root {
    --st-transition-fast: 0.01ms;
    --st-transition-normal: 0.01ms;
    --st-transition-slow: 0.01ms;
    --st-transition-bounce: 0.01ms;
  }
}