/* ================================================================
   global.css — CyanideNw BoxPvP | Global Stylesheet
   Version : 3.0.0
   Design  : Dark Cyberpunk · Neon Blue · Glassmorphism
   ================================================================ */

/* ---- Local Fonts ---- */
@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/orbitron.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/jetbrains-mono.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* ================================================================
   ROOT VARIABLES — Central Design System
   All colours, spacing, radii, shadows and transitions
   are defined here for single-point maintenance.
================================================================ */
:root {
    /* ---- Backgrounds ---- */
    --darker-bg  : #050709;
    --dark-bg    : #0a0d1a;
    --card-bg    : #0f1626;
    --card-bg-2  : #111c2e;
    --overlay    : rgba(5, 7, 9, 0.85);

    /* ---- Brand Blues ---- */
    --blue-primary   : #0088ff;
    --blue-light     : #00d4ff;
    --blue-dark      : #004699;
    --blue-xdark     : #002a5e;
    --blue-glow      : rgba(0, 136, 255, 0.35);
    --blue-glow-soft : rgba(0, 136, 255, 0.15);

    /* ---- Accent / Status ---- */
    --success-color : #00ff88;
    --success       : #00ff88;
    --gold          : #ffd700;
    --gold-dark     : #b8960c;
    --danger        : #ff3344;
    --danger-dark   : #cc1122;
    --purple        : #8b5cf6;
    --discord       : #5865f2;

    /* ---- Text ---- */
    --text-main    : #e0e8ff;
    --text-dim     : #8fa3c8;
    --text-muted   : #556280;
    --text-inverse : #050709;

    /* ---- Borders ---- */
    --border-color  : rgba(0, 136, 255, 0.18);
    --border-strong : rgba(0, 136, 255, 0.4);
    --border-glow   : rgba(0, 212, 255, 0.3);

    /* ---- Spacing Scale ---- */
    --space-xs  : 0.25rem;
    --space-sm  : 0.5rem;
    --space-md  : 1rem;
    --space-lg  : 1.5rem;
    --space-xl  : 2.5rem;
    --space-2xl : 4rem;

    /* ---- Border Radii ---- */
    --radius-sm  : 6px;
    --radius-md  : 10px;
    --radius-lg  : 16px;
    --radius-xl  : 24px;
    --radius-full: 9999px;

    /* ---- Shadows ---- */
    --shadow-blue  : 0 8px 32px rgba(0, 136, 255, 0.25);
    --shadow-card  : 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-neon  : 0 0 20px rgba(0, 136, 255, 0.5), 0 0 60px rgba(0, 136, 255, 0.15);

    /* ---- Transitions ---- */
    --transition-fast   : 0.18s ease;
    --transition-normal : 0.3s ease;
    --transition-slow   : 0.55s cubic-bezier(0.4, 0, 0.2, 1);

    /* ---- Glassmorphism ---- */
    --glass-bg     : rgba(15, 22, 38, 0.65);
    --glass-blur   : blur(16px);
    --glass-border : 1px solid rgba(0, 136, 255, 0.2);
}

/* ================================================================
   RESET & BASE
================================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,136,255,0.12) 0%, transparent 60%),
        linear-gradient(160deg, var(--darker-bg) 0%, #0d1b35 50%, var(--dark-bg) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Orbitron', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ================================================================
   TYPOGRAPHY
================================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    line-height: 1.2;
    color: var(--text-main);
}

p, li, span, label, input, textarea, select {
    font-family: 'Inter', 'Orbitron', sans-serif;
}

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

code, pre, kbd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: var(--blue-light);
}

/* ================================================================
   SELECTION
================================================================ */
::selection {
    background: rgba(0, 136, 255, 0.35);
    color: var(--text-main);
}

/* ================================================================
   SCROLLBAR
================================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--darker-bg); }
::-webkit-scrollbar-thumb {
    background: var(--blue-dark);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--blue-primary); }

/* ================================================================
   PAGE HEADER (shared across pages)
================================================================ */
.page-header {
    position: relative;
    background: linear-gradient(135deg,
        rgba(0,136,255,0.12) 0%,
        rgba(0,212,255,0.05) 100%);
    border-bottom: 2px solid var(--border-color);
    padding: 5rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0,136,255,0.1), transparent 70%);
    pointer-events: none;
}
.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--blue-light);
    text-shadow: var(--shadow-neon);
    margin-bottom: 0.6rem;
    letter-spacing: 2px;
}
.page-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ================================================================
   MAIN CONTENT WRAPPER
================================================================ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
}

/* ================================================================
   SECTION TITLE (shared)
================================================================ */
.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--blue-light);
    margin: var(--space-xl) 0 var(--space-lg);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 2px solid var(--blue-primary);
    padding-bottom: 1rem;
}

/* ================================================================
   GLASSMORPHISM CARD
================================================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ================================================================
   BUTTON SYSTEM — Shared primary/secondary
================================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
    color: var(--text-inverse);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,136,255,0.4);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), filter var(--transition-normal);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0,136,255,0.55);
    filter: brightness(1.1);
    color: var(--text-inverse);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    background: transparent;
    color: var(--blue-light);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid var(--blue-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    letter-spacing: 1px;
}
.btn-secondary:hover {
    background: rgba(0,136,255,0.12);
    border-color: var(--blue-light);
    color: var(--blue-light);
    box-shadow: 0 0 20px rgba(0,136,255,0.3);
    transform: translateY(-2px);
}

/* ================================================================
   SCROLL REVEAL (global — used by main.js)
================================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   FOOTER
================================================================ */
footer {
    background: rgba(5, 7, 9, 0.98);
    border-top: 2px solid var(--border-color);
    padding: 3rem 2rem 2rem;
    text-align: center;
    color: var(--text-dim);
    margin-top: var(--space-2xl);
    font-family: 'Inter', sans-serif;
}
footer p      { margin: 0.4rem 0; font-size: 0.9rem; }
footer a      { color: var(--blue-light); }
footer a:hover{ color: var(--blue-primary); }
footer code   { color: var(--blue-light); }

/* ================================================================
   NEON TEXT UTILITY
================================================================ */
.neon-text {
    color: var(--blue-light);
    text-shadow: 0 0 10px var(--blue-primary), 0 0 30px rgba(0,136,255,0.4);
}
.neon-gold {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold), 0 0 30px rgba(255,215,0,0.3);
}

/* ================================================================
   RESPONSIVE BREAKPOINTS
================================================================ */
@media (max-width: 1024px) {
    .main-content { padding: 3rem 1.5rem; }
}
@media (max-width: 768px) {
    .page-header   { padding: 3.5rem 1.5rem 3rem; }
    .page-header h1{ font-size: 2rem; }
    .section-title { font-size: 1.4rem; }
    .main-content  { padding: 2rem 1rem; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .page-header h1 { font-size: 1.7rem; letter-spacing: 1px; }
}

/* ================================================================
   ACCESSIBILITY — Reduced Motion
================================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .animate-on-scroll { opacity: 1; transform: none; }
}
