/**
 * CSS Custom Properties (Variables)
 * Design system tokens for the UAB Campus Map
 */

:root {
    /* UAB Brand Colors - Official */
    --color-uab-green: #1a5632;
    --color-uab-green-dark: #165240;
    --color-uab-green-light: #2a8066;
    --color-uab-gold: #fdb913;
    --color-dragon-lair-green: #033319;
    --color-campus-green: #90d408;
    --color-ever-loyal-evergreen: #17b045;
    --color-bham-sky-blue: #0891b2;
    --color-parking-public: #0891b2;
    --color-parking-student: #0a6e2f;
    --color-parking-employee: #8b5b0a;
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-gray-50: #fafafa;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #eeeeee;
    --color-gray-300: #e0e0e0;
    --color-gray-400: #bdbdbd;
    --color-gray-500: #9e9e9e;
    --color-gray-600: #757575;
    --color-gray-700: #616161;
    --color-gray-800: #424242;
    --color-gray-900: #212121;
    --color-black: #000000;
    
    /* Semantic Colors */
    --color-primary: var(--color-uab-green);
    --color-primary-hover: var(--color-ever-loyal-evergreen);
    --color-accent: var(--color-uab-gold);
    --color-text: var(--color-gray-900);
    --color-text-muted: var(--color-gray-600);
    --color-background: var(--color-white);
    --color-surface: var(--color-gray-50);
    --color-border: var(--color-gray-300);
    
    /* Interactive States */
    --color-link: var(--color-uab-green);
    /* WCAG 1.4.3: #17b045 (ever-loyal-evergreen) is only ~3.5:1 on white — fails as
       foreground text. #138a37 is ~4.8:1 on white and still reads as UAB green.
       --color-primary-hover is kept as #17b045 for use on colored backgrounds only. */
    --color-link-hover: #138a37;
    --color-focus: var(--color-uab-green);
    --color-error: #d32f2f;
    --color-success: #388e3c;
    --color-warning: #f57c00;
    
    /* Typography */
    --font-family-base: 'proxima-nova', 'Proxima Nova', 'aktiv-grotesk', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'proxima-nova', 'Proxima Nova', 'aktiv-grotesk', 'Helvetica Neue', Arial, sans-serif;
    
    --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-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing Scale */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */
    
    /* Layout */
    --sidebar-width: 320px;
    --sidebar-width-collapsed: 92px;
    --sidebar-width-mobile: 320px;
    --header-height-mobile: 60px;
    --max-content-width: 1400px;
    
    /* Border Radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --panel-slide-duration: 320ms;
    --panel-slide-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    /* 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;
    
    /* Focus Ring */
    --focus-ring-width: 3px;
    --focus-ring-offset: 2px;
    --focus-ring-color: var(--color-focus);
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
    :root {
        --color-border: var(--color-gray-700);
        --color-text-muted: var(--color-gray-700);
        --focus-ring-width: 4px;
    }
}
