/**
 * AJTheDev Design System - CSS Variables
 * Urban gritty aesthetic with comic book influences
 */

:root {
    /* ==========================================================================
       COLOR PALETTE
       ========================================================================== */
    
    /* Base Colors - Concrete & Brick */
    /* Adjusted for WCAG AA contrast (4.5:1 minimum for normal text) */
    --color-black: #0a0a0a;
    --color-charcoal: #161616;
    --color-concrete: #1e1e1e;
    --color-brick-dark: #2a2a2a;
    --color-brick: #3d3d3d;
    --color-brick-light: #555555;
    --color-stone: #888888;       /* Increased from #6b6b6b for better contrast */
    --color-cement: #a0a0a0;      /* Increased from #8a8a8a for better contrast */
    --color-chalk: #c8c8c8;       /* Increased from #b5b5b5 for better contrast */
    --color-white: #f5f5f5;
    
    /* Accent Colors - Per Sub-site */
    /* AI Solutions - Street Sign Lime */
    --color-ai-primary: #b6ff4d;
    --color-ai-secondary: #8cd42a;
    --color-ai-dark: #5a8a1a;
    
    /* FiveM Scripts - Traffic Cone Orange */
    --color-fivem-primary: #ff6b35;
    --color-fivem-secondary: #e85a2a;
    --color-fivem-dark: #c44a20;
    
    /* API & Web - Bold Cobalt (lightened for accessibility) */
    --color-api-primary: #6b8cff;  /* Increased from #3a61ff for better contrast */
    --color-api-secondary: #5a7aef;
    --color-api-dark: #4a6adf;
    
    /* Utility Colors */
    --color-success: #4ade80;
    --color-warning: #fbbf24;
    --color-error: #f87171;
    --color-info: #60a5fa;
    
    /* ==========================================================================
       TYPOGRAPHY
       ========================================================================== */
    
    /* Font Families - Fallbacks tuned to minimize layout shift */
    --font-heading: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --font-accent: 'Permanent Marker', cursive;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 4.5rem);
    --text-6xl: clamp(3.75rem, 2.5rem + 6.25vw, 6rem);
    
    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-black: 900;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.15;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    
    /* ==========================================================================
       SPACING
       ========================================================================== */
    
    --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 */
    
    /* ==========================================================================
       LAYOUT
       ========================================================================== */
    
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
    
    /* ==========================================================================
       BORDERS & RADIUS
       ========================================================================== */
    
    --radius-none: 0;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-full: 9999px;
    
    --border-thin: 1px;
    --border-medium: 2px;
    --border-thick: 4px;
    --border-heavy: 6px;
    
    /* ==========================================================================
       SHADOWS
       ========================================================================== */
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.5);
    
    /* Gritty shadows with color */
    --shadow-gritty: 4px 4px 0 var(--color-black);
    --shadow-gritty-lg: 6px 6px 0 var(--color-black);
    
    /* ==========================================================================
       TRANSITIONS
       ========================================================================== */
    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-slower: 500ms ease;
    
    --ease-in-out-back: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    
    /* ==========================================================================
       Z-INDEX SCALE
       ========================================================================== */
    
    --z-below: -1;
    --z-base: 0;
    --z-above: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-max: 9999;
    
    /* ==========================================================================
       BACKGROUND IMAGES (Unsplash - Free Commercial Use)
       Optimized: Reduced width to 1600, quality to 60, added auto=format for WebP
       ========================================================================== */
    
    /* Hero Backgrounds - Optimized for performance */
    --img-hero-home: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=60&auto=format');
    --img-hero-ai: url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?w=1600&q=60&auto=format');
    --img-hero-fivem: url('https://images.unsplash.com/photo-1538481199705-c710c4e965fc?w=1600&q=60&auto=format');
    --img-hero-web: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?w=1600&q=60&auto=format');
    
    /* Texture Backgrounds - Optimized (reduced quality for performance) */
    --img-brick-graffiti: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1400&q=40&auto=format');
    --img-concrete: url('https://images.unsplash.com/photo-1545987796-200677ee1011?w=1400&q=40&auto=format');
    --img-london-street: url('https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?w=1400&q=40&auto=format');
    
    /* Overlay Gradients */
    --overlay-dark: linear-gradient(180deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0.95) 100%);
    --overlay-dark-left: linear-gradient(90deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0.4) 100%);
    --overlay-gritty: linear-gradient(180deg, rgba(22,22,22,0.85) 0%, rgba(30,30,30,0.7) 100%);
}

