/* Academic Job Hunter - CSS Custom Properties */
/* Design System: Purple/Indigo Theme with Mobile-First Support */
/* Version: 4.6.0 - Mobile Responsive */

:root {
    /* ========================================
       COLORS - PRIMARY
    ======================================== */
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #e0e7ff;
    --color-primary-rgb: 99, 102, 241;

    /* Secondary */
    --color-secondary: #8b5cf6;
    --color-secondary-dark: #7c3aed;
    --color-secondary-light: #ddd6fe;

    /* ========================================
       COLORS - SEMANTIC
    ======================================== */
    --color-success: #10b981;
    --color-success-dark: #059669;
    --color-success-light: #d1fae5;
    --color-warning: #f59e0b;
    --color-warning-dark: #d97706;
    --color-warning-light: #fef3c7;
    --color-error: #f43f5e;
    --color-error-dark: #e11d48;
    --color-error-light: #ffe4e6;
    --color-info: #0ea5e9;
    --color-info-dark: #0284c7;
    --color-info-light: #e0f2fe;

    /* ========================================
       COLORS - BACKGROUND & TEXT
    ======================================== */
    --color-bg-default: #f8fafc;
    --color-bg-paper: #ffffff;
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-border: #e2e8f0;

    /* ========================================
       SCORE ZONES
    ======================================== */
    --score-perfect-bg: #dcfce7;
    --score-perfect-text: #166534;
    --score-good-bg: #e0e7ff;
    --score-good-text: #3730a3;
    --score-moderate-bg: #fef3c7;
    --score-moderate-text: #92400e;
    --score-weak-bg: #fef3c7;
    --score-weak-text: #92400e;
    --score-poor-bg: #ffe4e6;
    --score-poor-text: #9f1239;

    /* ========================================
       SHADOWS
    ======================================== */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* ========================================
       BORDER RADIUS
    ======================================== */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* ========================================
       TYPOGRAPHY
    ======================================== */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Font sizes - Mobile base (16px prevents iOS zoom) */
    --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-size-4xl: 2.25rem;   /* 36px */

    /* Line heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;

    /* ========================================
       SPACING - Mobile First
    ======================================== */
    --space-0: 0;
    --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 */

    /* ========================================
       TOUCH TARGETS (iOS/Android Guidelines)
    ======================================== */
    --touch-target-min: 44px;        /* Apple minimum */
    --touch-target-comfortable: 48px; /* Google Material */
    --touch-target-large: 56px;

    /* ========================================
       NAVIGATION - SIDEBAR (Desktop)
    ======================================== */
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 60px;
    --sidebar-bg: #0f172a;
    --sidebar-hover: rgba(99, 102, 241, 0.2);
    --sidebar-active: #4f46e5;
    --sidebar-text: #cbd5e1;

    /* ========================================
       NAVIGATION - BOTTOM NAV (Mobile)
    ======================================== */
    --bottom-nav-height: 64px;
    --bottom-nav-bg: #ffffff;
    --bottom-nav-border: #e2e8f0;
    --bottom-nav-text: #64748b;
    --bottom-nav-active: #6366f1;
    --bottom-nav-icon-size: 24px;
    --bottom-nav-label-size: 0.625rem;  /* 10px */

    /* ========================================
       SAFE AREAS (Notched Phones)
    ======================================== */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);

    /* ========================================
       TRANSITIONS
    ======================================== */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-speed: 0.3s;

    /* ========================================
       Z-INDEX SCALE
    ======================================== */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-sidebar: 1000;
    --z-bottom-nav: 1000;

    /* ========================================
       BREAKPOINTS (for reference in JS)
    ======================================== */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;

    /* iPhone 16 Pro specific */
    --breakpoint-iphone-pro: 390px;
}

/* ========================================
   DARK MODE (Future Support)
======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        /* Uncomment when implementing dark mode
        --color-bg-default: #0f172a;
        --color-bg-paper: #1e293b;
        --color-text-primary: #f1f5f9;
        --color-text-secondary: #94a3b8;
        --color-border: #334155;
        */
    }
}

/* ========================================
   REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0ms;
        --transition-base: 0ms;
        --transition-slow: 0ms;
        --transition-speed: 0ms;
    }
}
