/* ============================================
   CSS Custom Properties (Design Tokens)
   KinesysHub - Modern Dark Blue + Electric Palette
   ============================================ */

:root {
    /* ============================================
       COLOR PALETTE
       ============================================ */

    /* Primary Colors - Deep Blue */
    --color-primary: #3B82F6;
    --color-primary-light: #60A5FA;
    --color-primary-dark: #0F172A;
    --color-primary-rgb: 59, 130, 246;

    /* Secondary Colors - Electric Blue */
    --color-secondary: #06B6D4;
    --color-secondary-light: #22D3EE;
    --color-secondary-dark: #0891B2;

    /* Accent Colors - Green */
    --color-accent: #10B981;
    --color-accent-light: #34D399;
    --color-accent-dark: #059669;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #10B981 100%);
    --gradient-hero: linear-gradient(180deg, #162544 0%, #1e3a5f 60%, #162544 100%);
    --gradient-accent: linear-gradient(135deg, #06B6D4 0%, #3B82F6 50%, #10B981 100%);
    --gradient-text: linear-gradient(135deg, #3B82F6 0%, #10B981 50%, #06B6D4 100%);
    --gradient-glow: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);

    /* Neutral Colors */
    --color-background: #FFFFFF;
    --color-surface: #F1F5F9;
    --color-surface-dark: #E2E8F0;
    --color-surface-darker: #CBD5E0;

    /* Dark Surface Colors */
    --color-dark-bg: #0F172A;
    --color-dark-surface: #1E293B;
    --color-dark-surface-light: #334155;

    /* Text Colors */
    --color-text-primary: #0F172A;
    --color-text-secondary: #475569;
    --color-text-light: #94A3B8;
    --color-text-on-primary: #FFFFFF;
    --color-text-on-dark: #E2E8F0;

    /* Border Colors */
    --color-border: #E2E8F0;
    --color-border-light: #F1F5F9;

    /* Semantic Colors */
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;
    --color-info: #06B6D4;

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

    /* Font Families */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-headings: 'Poppins', var(--font-primary);
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;

    /* Font Sizes */
    --font-size-base: 16px;
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-md: 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 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;
    --line-height-loose: 2;

    /* ============================================
       SPACING (8px base grid)
       ============================================ */

    --spacing-0: 0;
    --spacing-xs: 0.5rem;      /* 8px */
    --spacing-sm: 1rem;        /* 16px */
    --spacing-md: 1.5rem;      /* 24px */
    --spacing-lg: 2rem;        /* 32px */
    --spacing-xl: 3rem;        /* 48px */
    --spacing-2xl: 4rem;       /* 64px */
    --spacing-3xl: 6rem;       /* 96px */
    --spacing-4xl: 8rem;       /* 128px */

    /* ============================================
       LAYOUT
       ============================================ */

    --container-max-width: 1200px;
    --container-padding: var(--spacing-lg);
    --container-padding-mobile: var(--spacing-sm);

    --header-height: 80px;
    --header-height-mobile: 64px;

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

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

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

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 36px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.18);

    /* Colored Shadows */
    --shadow-primary: 0 4px 20px rgba(59, 130, 246, 0.25);
    --shadow-accent: 0 4px 20px rgba(139, 92, 246, 0.25);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);

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

    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    --easing-default: cubic-bezier(0.4, 0, 0.2, 1);
    --easing-in: cubic-bezier(0.4, 0, 1, 1);
    --easing-out: cubic-bezier(0, 0, 0.2, 1);
    --easing-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* ============================================
       Z-INDEX SYSTEM
       ============================================ */

    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* ============================================
       BREAKPOINTS (for reference in JS)
       ============================================ */

    --breakpoint-xs: 320px;
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* ============================================
   REDUCED MOTION SUPPORT (Accessibility)
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
