/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
    /* Primary Colors */
    --color-primary: #1e293b;
    --color-primary-light: #334155;
    --color-primary-dark: #0f172a;
    
    /* Secondary Colors */
    --color-secondary: #475569;
    --color-secondary-light: #64748b;
    --color-secondary-dark: #334155;
    
    /* Accent Colors */
    --color-accent: #3b82f6;
    --color-accent-light: #60a5fa;
    --color-accent-dark: #2563eb;
    
    /* Surface Colors */
    --color-surface: #f8fafc;
    --color-card: #ffffff;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    
    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    /* Language Colors */
    --color-c: #a8b9cc;
    --color-cpp: #f34b7d;
    --color-java: #ed8b00;
    --color-python: #3776ab;
    --color-javascript: #f7df1e;
    
    /* Spacing System (8px base) */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */
    
    /* Border Radius */
    --radius-sm: 0.375rem;  /* 6px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px */
    --radius-2xl: 1.5rem;   /* 24px */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 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);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    --gradient-surface: linear-gradient(135deg, var(--color-card) 0%, var(--color-surface) 100%);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-border: #000;
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    }
}