/**
 * Design System Variables
 * Centralized design tokens for consistent styling across the application
 */

:root {
  /* ============================================
     COLOR PALETTE - ACCG Brand Colors
     ============================================ */

  /* Primary Colors */
  --color-primary: #1a2b4a;        /* Navy blue - main brand color */
  --color-primary-light: #2a3b5a;
  --color-primary-dark: #0a1b3a;

  /* Accent Colors */
  --color-accent-red: #c41e3a;     /* Brand red */
  --color-accent-red-light: #d42e4a;
  --color-accent-red-dark: #a40e2a;

  --color-accent-gold: #f7c608;    /* Brand gold */
  --color-accent-gold-light: #ffd028;
  --color-accent-gold-dark: #d7a600;

  --color-accent-green: #006233;   /* Success green */
  --color-accent-green-light: #007d42;
  --color-accent-green-dark: #004d26;

  /* Neutral Colors */
  --color-text-primary: #1a2b4a;   /* Dark text */
  --color-text-secondary: #5a6c7d; /* Light text */
  --color-text-muted: #8b9aa8;     /* Muted text */
  --color-text-inverse: #ffffff;   /* White text */

  /* Background Colors */
  --color-bg-primary: #ffffff;     /* White background */
  --color-bg-secondary: #f8f9fa;   /* Light gray background */
  --color-bg-tertiary: #f5f5f5;    /* Slightly darker gray */
  --color-bg-overlay: rgba(0, 0, 0, 0.5); /* Modal overlay */

  /* Border Colors */
  --color-border-light: #e1e4e8;
  --color-border-medium: #d1d5db;
  --color-border-dark: #9ca3af;

  /* State Colors */
  --color-success: #006233;
  --color-success-light: #d4f4dd;
  --color-warning: #f7c608;
  --color-warning-light: #fff8e1;
  --color-error: #c41e3a;
  --color-error-light: #ffe5e9;
  --color-info: #1a2b4a;
  --color-info-light: #e3f2fd;


  /* ============================================
     SPACING SCALE
     ============================================ */

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Component-specific spacing */
  --space-input-padding: 12px 16px;
  --space-button-padding: 12px 24px;
  --space-card-padding: 24px;
  --space-section-padding: 40px 20px;


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

  /* Font Family */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-family-mono: 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  /* Font Sizes */
  --font-xs: 0.75rem;      /* 12px */
  --font-sm: 0.875rem;     /* 14px */
  --font-base: 1rem;       /* 16px */
  --font-lg: 1.125rem;     /* 18px */
  --font-xl: 1.25rem;      /* 20px */
  --font-2xl: 1.5rem;      /* 24px */
  --font-3xl: 2rem;        /* 32px */

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

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;


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

  --border-width-thin: 1px;
  --border-width-medium: 2px;
  --border-width-thick: 4px;

  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-full: 9999px;


  /* ============================================
     SHADOWS
     ============================================ */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.2);

  /* Interactive shadows */
  --shadow-hover: 0 4px 16px rgba(196, 30, 58, 0.2);
  --shadow-focus: 0 0 0 3px rgba(196, 30, 58, 0.2);


  /* ============================================
     TRANSITIONS & ANIMATIONS
     ============================================ */

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --easing-accelerate: cubic-bezier(0.4, 0, 1, 1);

  --transition-standard: all var(--duration-normal) var(--easing-standard);
  --transition-fast: all var(--duration-fast) var(--easing-standard);
  --transition-slow: all var(--duration-slow) var(--easing-standard);


  /* ============================================
     Z-INDEX LAYERS
     ============================================ */

  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-popover: 1100;
  --z-tooltip: 1200;
  --z-toast: 2000;


  /* ============================================
     BREAKPOINTS (for reference in media queries)
     ============================================ */

  --breakpoint-xs: 360px;
  --breakpoint-sm: 480px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;


  /* ============================================
     COMPONENT-SPECIFIC TOKENS
     ============================================ */

  /* Buttons */
  --button-height: 44px;
  --button-height-sm: 36px;
  --button-height-lg: 52px;

  /* Inputs */
  --input-height: 44px;
  --input-height-sm: 36px;
  --input-height-lg: 52px;
  --input-border-focus: var(--color-accent-red);

  /* Cards */
  --card-bg: var(--color-bg-primary);
  --card-border: var(--color-border-light);
  --card-shadow: var(--shadow-md);
  --card-shadow-hover: var(--shadow-lg);

  /* Modal */
  --modal-max-width: 600px;
  --modal-padding: var(--space-2xl);

  /* Table */
  --table-row-hover: #f8f9fa;
  --table-border: var(--color-border-light);

  /* Icons */
  --icon-size-sm: 16px;
  --icon-size-md: 20px;
  --icon-size-lg: 24px;
  --icon-size-xl: 32px;
}

/* ============================================
   DARK MODE SUPPORT (Future Enhancement)
   ============================================ */

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode colors would go here */
    /* Not implementing yet, but structure is ready */
  }
}
