/* ═══════════════════════════════════════════════════════════════════════════
   BASE STYLES - Variables, Resets, Typography
   ═══════════════════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap");

:root {
    /* Brand Colors */
    --color-main: #f0d316;
    --color-main-light: #444444;
    --color-main-dark: #d4b814;
    
    /* Semantic Colors */
    --color-success: #5dd693;
    --color-error: #dc3545;
    --color-warning: #f39c12;
    --color-info: #3498db;
    --color-danger: #dc3545;
    
    /* Background Colors */
    --color-bg: #202020;
    --color-bg-dark: #1a1a1a;
    --color-bg-medium: #252525;
    --color-bg-light: #2a2a2a;
    --color-bg-surface: #333;
    
    /* Text Colors */
    --color-text-primary: #fff;
    --color-text-secondary: #ccc;
    --color-text-muted: #999;
    --color-text-dark: #333;
    
    /* Border Colors */
    --color-border: #444;
    --color-border-light: #333;
    
    /* Accent Colors */
    --color-accent-blue: #3b82f6;
    --color-accent-green: #6ee7b7;
    
    /* 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: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    --text-muted: #999;
        --border: #3a3a3a;
        
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px base for easier rem calculations */
}

body {
    font-family: Roboto, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    background-color: var(--menu-dark-bg);
    min-height: 100vh;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-main);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-primary);
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    font-size: 2.2rem;
    color: var(--color-main);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
    margin-bottom: var(--space-xl);
}

h3 {
    font-size: 1.8rem;
    color: var(--color-main);
    margin-bottom: var(--space-lg);
}

/* Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-medium);
}

::-webkit-scrollbar-thumb {
    background: var(--color-text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-main);
}

/* Responsive base */
@media only screen and (min-width: 1200px) {
    html { font-size: 62.5%; }
}

@media only screen and (min-width: 2100px) {
    html { font-size: 75%; }
}