/* ========================================
   CSS Reset & Base Styles
   ======================================== */

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

:root {
    /* Color Palette - Gaming Platform */
    --primary-color: #00d9ff;
    --primary-dark: #00b8d4;
    --primary-light: #4dffff;
    --secondary-color: #ff3d71;
    --accent-purple: #b388ff;
    --accent-green: #69f0ae;
    --background: #0a0e17;
    --background-light: #141824;
    --background-lighter: #1e2430;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-elevated: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: #b4bcd0;
    --text-muted: #7a8499;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --success: #69f0ae;
    --warning: #ffc107;
    --error: #ff3d71;
    --grid-color: rgba(0, 217, 255, 0.1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;

    /* Transitions */
    --transition: all 0.2s ease;
    --transition-fast: all 0.1s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--background) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   Custom Scrollbar
   ======================================== */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 24, 36, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 24, 24, 0.25);
    border-radius: 12px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 24, 24, 0.45);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(255, 24, 24, 0.65);
}

/* Firefox and browsers that support scrollbar-width */
@supports (scrollbar-width: thin) {
    * {
        scrollbar-width: thin;
        scrollbar-color: rgb(25 29 38) rgba(20, 24, 36, 0.3);
    }
}