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

:root {
  /* Primary Colors */
  --primary-color: #1e3c72;
  --primary-dark: #162d5a;
  --primary-light: #2a5298;
  --secondary-color: #2a5298;
  --secondary-dark: #1f4580;
  --secondary-light: #3d63b3;

  /* Accent Colors */
  --accent-color: #ff6b35;
  --accent-hover: #e55a2e;
  --accent-light: #ff8f65;
  --accent-dark: #cc5429;

  /* Special Colors */
  --gold-color: #ffd700;
  --gold-dark: #ccac00;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;

  /* Text Colors */
  --text-color: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --text-dark: #222222;
  --text-white: #ffffff;
  --text-muted: #6c757d;

  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-lighter: #fefefe;
  --bg-dark: #212529;
  --bg-darker: #1a1a1a;
  --bg-gray: #e9ecef;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  --gradient-gold: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
  --gradient-dark: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
  --gradient-overlay: linear-gradient(135deg, rgba(30, 60, 114, 0.8), rgba(42, 82, 152, 0.8));

  /* Shadows */
  --shadow-xs: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.18);
  --shadow-2xl: 0 32px 64px rgba(0, 0, 0, 0.2);

  /* Special Shadows */
  --shadow-primary: 0 8px 30px rgba(30, 60, 114, 0.3);
  --shadow-accent: 0 8px 30px rgba(255, 107, 53, 0.3);
  --shadow-gold: 0 8px 30px rgba(255, 215, 0, 0.3);

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

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

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Font Sizes */
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */
  --font-size-6xl: 3.75rem;  /* 60px */
  --font-size-7xl: 4.5rem;   /* 72px */

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;

  /* Breakpoints (for use in JS) */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-2xl: 1400px;

  /* Container Sizes */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-2xl: 1320px;

  /* Animation Curves */
  --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
  --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-in-out-quad: cubic-bezier(0.455, 0.03, 0.515, 0.955);
  --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);

  /* Custom Properties for Dark Theme */
  --bg-primary: var(--bg-white);
  --bg-secondary: var(--bg-light);
  --text-primary: var(--text-color);
  --text-secondary: var(--text-light);
  --border-color: var(--bg-gray);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-primary: var(--bg-dark);
  --bg-secondary: var(--bg-darker);
  --text-primary: var(--text-white);
  --text-secondary: var(--text-lighter);
  --border-color: #374151;
  --bg-light: #1f2937;
  --bg-gray: #374151;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0s;
    --transition-normal: 0s;
    --transition-slow: 0s;
    --transition-bounce: 0s;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #000000;
    --accent-color: #ff0000;
    --text-color: #000000;
    --bg-white: #ffffff;
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.5);
  }
}

/* Print Styles */
@media print {
  :root {
    --shadow-xs: none;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
    --shadow-2xl: none;
    --gradient-primary: var(--primary-color);
    --gradient-accent: var(--accent-color);
  }
}