/**
 * SimulatorBooking - Design Tokens & Base Styles
 * Core design system variables and typography
 * @version 2.0.0
 */

:root {
    /* Color Palette - Primary */
    --sb-color-bg-base: #F6F9FF;
    --sb-color-bg-surface: #FFFFFF;
    --sb-color-bg-elevated: #FEFEFF;
    
    /* Color Palette - Brand */
    --sb-color-brand-dark: #0B1020;
    --sb-color-brand-mid: #111A33;
    --sb-color-brand-primary: #1B6BFF;
    --sb-color-brand-primary-hover: #4B8BFF;
    --sb-color-brand-highlight: #9AD7FF;
    --sb-color-brand-cyan: #00D4FF;
    
    /* Color Palette - Text */
    --sb-color-text-strong: #0B1020;
    --sb-color-text-default: #3B4A6B;
    --sb-color-text-muted: #6F7FA6;
    --sb-color-text-inverse: #FFFFFF;
    
    /* Color Palette - Semantic */
    --sb-color-positive: #15B77E;
    --sb-color-caution: #F7B500;
    --sb-color-negative: #FF4D6D;
    
    /* Gradients */
    --sb-gradient-hero: linear-gradient(135deg, #0B1020 0%, #111A33 60%, #0B1020 100%);
    --sb-gradient-accent: linear-gradient(135deg, #1B6BFF 0%, #00D4FF 100%);
    --sb-gradient-button: linear-gradient(135deg, #1B6BFF 0%, #4B8BFF 100%);
    
    /* Shadows */
    --sb-shadow-xs: 0 1px 2px rgba(11, 16, 32, 0.06);
    --sb-shadow-sm: 0 4px 12px rgba(11, 16, 32, 0.08);
    --sb-shadow-md: 0 10px 30px rgba(11, 16, 32, 0.10);
    --sb-shadow-lg: 0 18px 60px rgba(11, 16, 32, 0.14);
    --sb-shadow-xl: 0 30px 90px rgba(11, 16, 32, 0.18);
    
    /* Border Radius */
    --sb-radius-xs: 6px;
    --sb-radius-sm: 10px;
    --sb-radius-md: 14px;
    --sb-radius-lg: 20px;
    --sb-radius-xl: 26px;
    --sb-radius-full: 9999px;
    
    /* Spacing Scale */
    --sb-space-1: 4px;
    --sb-space-2: 8px;
    --sb-space-3: 12px;
    --sb-space-4: 16px;
    --sb-space-5: 20px;
    --sb-space-6: 24px;
    --sb-space-8: 32px;
    --sb-space-10: 40px;
    --sb-space-12: 48px;
    --sb-space-16: 64px;
    --sb-space-20: 80px;
    --sb-space-24: 96px;
    
    /* Typography Scale */
    --sb-font-display: 'Sora', system-ui, sans-serif;
    --sb-font-body: 'Inter', system-ui, sans-serif;
    
    --sb-text-xs: 0.75rem;
    --sb-text-sm: 0.875rem;
    --sb-text-base: 1rem;
    --sb-text-lg: 1.125rem;
    --sb-text-xl: 1.25rem;
    --sb-text-2xl: 1.5rem;
    --sb-text-3xl: 1.875rem;
    --sb-text-4xl: 2.25rem;
    --sb-text-5xl: 3rem;
    --sb-text-6xl: 3.75rem;
    
    /* Line Heights */
    --sb-leading-tight: 1.15;
    --sb-leading-snug: 1.3;
    --sb-leading-normal: 1.6;
    --sb-leading-relaxed: 1.75;
    
    /* Z-Index Scale */
    --sb-z-base: 0;
    --sb-z-dropdown: 100;
    --sb-z-sticky: 200;
    --sb-z-fixed: 500;
    --sb-z-overlay: 900;
    --sb-z-modal: 1000;
    --sb-z-popover: 1100;
    
    /* Transitions */
    --sb-transition-fast: 150ms ease;
    --sb-transition-base: 250ms ease;
    --sb-transition-slow: 400ms ease;
    
    /* Container */
    --sb-container-max: 1280px;
    --sb-container-padding: 24px;
}

/* Base Document Styles */
body {
    font-family: var(--sb-font-body);
    font-size: var(--sb-text-base);
    line-height: var(--sb-leading-normal);
    color: var(--sb-color-text-strong);
    background-color: var(--sb-color-bg-base);
    background-image: 
        radial-gradient(ellipse at 12% 8%, rgba(0, 212, 255, 0.14) 0%, transparent 38%),
        radial-gradient(ellipse at 88% 18%, rgba(27, 107, 255, 0.12) 0%, transparent 42%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sb-font-display);
    font-weight: 700;
    line-height: var(--sb-leading-tight);
    color: var(--sb-color-text-strong);
}

h1 { font-size: clamp(2.25rem, 5vw, var(--sb-text-6xl)); }
h2 { font-size: clamp(1.75rem, 4vw, var(--sb-text-4xl)); }
h3 { font-size: clamp(1.5rem, 3vw, var(--sb-text-2xl)); }
h4 { font-size: var(--sb-text-xl); }
h5 { font-size: var(--sb-text-lg); }
h6 { font-size: var(--sb-text-base); }

p {
    color: var(--sb-color-text-default);
}

strong, b {
    font-weight: 600;
}

/* Selection Styling */
::selection {
    background-color: var(--sb-color-brand-primary);
    color: var(--sb-color-text-inverse);
}

/* Focus Visible */
:focus-visible {
    outline: 3px solid var(--sb-color-brand-primary);
    outline-offset: 3px;
}
