/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

/* CSS Variables - Modern Color Palette */
:root {
    /* Primary Colors */
    --color-primary: hsl(262, 83%, 58%);
    --color-primary-hover: hsl(262, 83%, 48%);
    --color-primary-light: hsl(262, 83%, 95%);
    
    /* Secondary Colors */
    --color-secondary: hsl(217, 91%, 60%);
    --color-secondary-hover: hsl(217, 91%, 50%);
    --color-secondary-light: hsl(217, 91%, 95%);
    
    /* Neutral Colors */
    --color-background: hsl(0, 0%, 100%);
    --color-surface: hsl(0, 0%, 98%);
    --color-surface-elevated: hsl(0, 0%, 100%);
    --color-surface-hover: hsl(0, 0%, 96%);
    --color-border: hsl(0, 0%, 90%);
    --color-text: hsl(0, 0%, 13%);
    --color-text-muted: hsl(0, 0%, 46%);
    --color-text-muted-light: hsl(0, 0%, 85%);
    --color-text-light: hsl(0, 0%, 60%);
    --color-text-emphasis: hsl(0, 0%, 8%);
    
    /* Semantic Colors */
    --color-success: hsl(142, 76%, 36%);
    --color-success-light: hsl(142, 76%, 95%);
    --color-warning: hsl(38, 92%, 50%);
    --color-warning-light: hsl(38, 92%, 95%);
    --color-error: hsl(0, 84%, 60%);
    --color-error-light: hsl(0, 84%, 95%);
    --color-info: hsl(199, 89%, 48%);
    --color-info-light: hsl(199, 89%, 95%);
    
    /* Spacing */
    --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-base: '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: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    --font-weight-light: 300;
    --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.75;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* 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-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-modal: 2000;
    --z-toast: 3000;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-background: hsl(0, 0%, 10%);
        --color-surface: hsl(0, 0%, 13%);
        --color-surface-elevated: hsl(0, 0%, 16%);
        --color-border: hsl(0, 0%, 25%);
        --color-text: hsl(0, 0%, 95%);
        --color-text-muted: hsl(0, 0%, 70%);
        --color-text-light: hsl(0, 0%, 60%);
    }
}

/* Base Styles */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Lists */
ul, ol {
    list-style-position: inside;
    margin-bottom: var(--space-md);
}

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: white;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
}

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

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

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Disabled Elements */
:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-light {
    color: var(--color-text-light);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}
