
/* =========================================
   1. CSS Variables & Reset
   ========================================= */
:root {
    /* Color Palette - Dark Gaming Theme */
    --color-bg-body: #0f172a;
    --color-bg-surface: #1e293b;
    --color-bg-surface-hover: #334155;
    
    --color-primary: #8b5cf6;
    --color-primary-dark: #7c3aed;
    --color-secondary: #06b6d4;
    --color-accent: #f43f5e;
    
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: #334155;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-hover: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --gradient-surface: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 1) 100%);

    /* Spacing & Sizing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    
    --container-width: 1200px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(139, 92, 246, 0.5);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   2. Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-top: var(--spacing-lg);
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-sm);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-top: var(--spacing-md);
    color: var(--color-secondary);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

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

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

/* =========================================
   3. Layout & Structure
   ========================================= */
/* Wrapper for content to center it */
section, body > div, body > table, body > h2, body > h3, body > p, body > ul {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

/* Intro specific styles */
section.intro {
    padding: var(--spacing-lg) var(--spacing-sm);
    text-align: center;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

section.intro p {
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    font-size: 1.25rem;
}

/* =========================================
   4. Header & Navigation
   ========================================= */
header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

header ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: var(--container-width);
}

header ul li a {
    color: var(--color-text-main);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

header ul li a:hover,
header ul li a:focus {
    background: var(--color-bg-surface-hover);
    color: var(--color-secondary);
    transform: translateY(-2px);
}

/* Logo placeholder styling */
header span {
    display: none; /* Empty in HTML, hiding to preserve layout */
}

/* =========================================
   5. Interactive Elements (Buttons & Links)
   ========================================= */
/* Main CTA Button */
a[href="/go/"] {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

a[href="/go/"]:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.7);
    background: var(--gradient-hover);
    color: white;
}

a[href="/go/"]:active {
    transform: translateY(-1px);
}

/* =========================================
   6. Data Tables
   ========================================= */
/* Wrap tables in a div with overflow-x via JS usually, 
   but since we only have CSS, we apply overflow to the table's container if possible 
   or styling the table itself to handle width */

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--spacing-md) 0;
    background-color: var(--color-bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
}

thead {
    background-color: var(--color-bg-surface-hover);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background-color var(--transition-fast);
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Specific styling for the first table which might not have thead in provided HTML */
.content table tr:first-child td,
.content table tr:first-child th {
    font-weight: bold;
    background-color: var(--color-bg-surface-hover);
}

/* =========================================
   7. Lists & Content Elements
   ========================================= */
.content ul, body > ul {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.content ul li, body > ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}

.content ul li::before, body > ul li:not(:first-child)::before {
    /* Exclude header/footer navs from this bullet style via generic selector if needed, 
       but here we target content lists specifically */
    content: "➜";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

/* Fix for header/footer navs caught by generic selector */
header ul li, footer ul li {
    padding-left: 0;
    margin-bottom: 0;
}
header ul li::before, footer ul li::before {
    content: none;
}

/* Images (if added later) */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* =========================================
   8. Footer
   ========================================= */
footer {
    margin-top: auto;
    padding: var(--spacing-lg) 0;
    background-color: var(--color-bg-surface);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    list-style: none;
    padding: 0;
}

footer a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--color-accent);
}

/* =========================================
   9. Animations
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section.intro {
    animation: fadeIn 0.8s ease-out;
}

/* =========================================
   10. Form Elements (Generic/Future proof)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--color-bg-body);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-family: inherit;
    transition: all var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* =========================================
   11. Responsive Design
   ========================================= */
@media (max-width: 768px) {
    /* Header */
    header ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    header ul li {
        width: 100%;
        text-align: center;
    }
    
    header ul li a {
        display: block;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.05);
    }

    /* Tables - Scrollable wrapper simulation */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Typography */
    h1 {
        margin-bottom: var(--spacing-sm);
    }
    
    /* Layout */
    section.intro {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    a[href="/go/"] {
        width: 100%;
        text-align: center;
    }

    footer ul {
        flex-direction: column;
        gap: 1rem;
    }
}
