/**
 * Course Design System - CSS Variables
 * =====================================
 * Base variables shared across all courses
 * Each course overrides --primary, --secondary, --accent in its theme.css
 */

:root {
    /* ═══════════════════════════════════════════════════
       COURSE-SPECIFIC COLORS (Override in theme.css)
       ═══════════════════════════════════════════════════ */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-glow: rgba(37, 99, 235, 0.5);
    
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --secondary-light: #22d3ee;
    
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --accent-light: #a78bfa;

    /* ═══════════════════════════════════════════════════
       SYSTEM COLORS (Do NOT override)
       ═══════════════════════════════════════════════════ */
    --success: #10b981;
    --success-dark: #059669;
    --success-light: #34d399;
    
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --warning-light: #fbbf24;
    
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --danger-light: #f87171;
    
    --info: #06b6d4;
    --info-dark: #0891b2;
    --info-light: #22d3ee;

    /* ═══════════════════════════════════════════════════
       GRAYSCALE PALETTE
       ═══════════════════════════════════════════════════ */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* ═══════════════════════════════════════════════════
       SEMANTIC COLORS (Light Mode)
       ═══════════════════════════════════════════════════ */
    --bg-page: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    
    --border-card: var(--gray-200);
    --border-input: var(--gray-300);
    
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-700);
    --text-muted: var(--gray-600);
    --text-light: var(--gray-500);
    --text-inverse: #ffffff;

    /* ═══════════════════════════════════════════════════
       SPACING SYSTEM
       ═══════════════════════════════════════════════════ */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* ═══════════════════════════════════════════════════
       TYPOGRAPHY
       ═══════════════════════════════════════════════════ */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;

    /* ═══════════════════════════════════════════════════
       BORDERS & SHADOWS
       ═══════════════════════════════════════════════════ */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px var(--primary-glow);

    /* ═══════════════════════════════════════════════════
       TRANSITIONS
       ═══════════════════════════════════════════════════ */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* ═══════════════════════════════════════════════════
       Z-INDEX LAYERS
       ═══════════════════════════════════════════════════ */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 500;
    --z-modal-backdrop: 900;
    --z-modal: 1000;
    --z-popover: 1100;
    --z-tooltip: 1200;
}
