/* ============================================================================
   BASE STYLES
   ============================================================================
   
   Description:
   Foundation stylesheet containing CSS variables, design tokens, reset styles,
   and utility classes. This file should be imported first in all pages.
   
   Contents:
   - CSS Custom Properties (Design Tokens)
   - Color System (Light Theme)
   - Typography Settings
   - Spacing & Sizing
   - Shadows & Effects
   - Base Element Resets
   - Scrollbar Styling
   - Utility Classes
   
   Sections:
   1. CSS Variables - Design Tokens
   2. Reset & Base Styles
   3. Scrollbar Styling
   4. Utility Classes
   
   ============================================================================ */

/* ============================================================================
   1. CSS VARIABLES - DESIGN TOKENS
   ============================================================================ */

:root {
    /* Colors - Light Theme */
    --bg-primary: #F1F5F9;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F8FAFC;
    --bg-card: #FFFFFF;
    
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    
    /* Accent Colors */
    --primary: #3C50E0;
    --primary-hover: #4F60E8;
    --primary-light: rgba(60, 80, 224, 0.1);
    
    --success: #10B981;
    --success-light: rgba(16, 185, 129, 0.1);
    
    --warning: #F59E0B;
    --warning-light: rgba(245, 158, 11, 0.1);
    
    --danger: #EF4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    
    --info: #3B82F6;
    --info-light: rgba(59, 130, 246, 0.1);
    
    /* Match Score Gradient */
    --score-0: #EF4444;   /* Red - 0-25 */
    --score-25: #F97316;  /* Orange - 26-50 */
    --score-50: #EAB308;  /* Yellow - 51-75 */
    --score-75: #22C55E;  /* Green - 76-100 */
    
    /* Sizing */
    --sidebar-width: 280px;
    --header-height: 80px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* 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);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* ============================================================================
   2. RESET & BASE STYLES
   ============================================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    overflow-y: scroll;
}

body {
    font-family: "Google Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "GRAD" 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================================================
   3. SCROLLBAR STYLING
   ============================================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================================================
   4. UTILITY CLASSES
   ============================================================================ */
.hidden {
    display: none !important;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.75rem;
}
