/* =============================================================
   UFCBetting.club — Combat Arena Design System
   Metal + cyan neon, HUD-style, tech-future meets combat sports.
   Reset, design tokens, base typography, utilities, container.
   ============================================================= */

:root {
    /* Core surfaces */
    --bg: #0F1216;                 /* deep near-black */
    --bg-2: #1A1D23;               /* antracite panel */
    --steel: #2C3139;              /* steel panels */
    --steel-light: #3B424C;
    --steel-border: #4A525E;

    /* Neon accents */
    --cyan: #00D9FF;               /* primary accent */
    --cyan-hot: #66E8FF;            /* hover */
    --cyan-dim: rgba(0, 217, 255, 0.25);
    --cyan-glow: 0 0 24px rgba(0, 217, 255, 0.45);

    /* Warning / VIP */
    --amber: #FFD93D;
    --amber-hot: #FFE066;
    --amber-dim: rgba(255, 217, 61, 0.20);

    /* Combat red (for KO, title, BLOOD moments) */
    --red: #FF3355;
    --red-dim: rgba(255, 51, 85, 0.25);

    /* Success (for WIN, green odds) */
    --green: #39FF7A;
    --green-dim: rgba(57, 255, 122, 0.20);

    /* Text */
    --text: #E6EBF2;
    --text-dim: #8A95A5;
    --text-muted: #5A6270;
    --text-bright: #FFFFFF;

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.65);
    --shadow-cyan: 0 0 18px rgba(0, 217, 255, 0.30);
    --shadow-amber: 0 0 18px rgba(255, 217, 61, 0.30);

    /* Layout */
    --header-h: 64px;
    --container-max: 1280px;
    --container-pad: clamp(16px, 2.5vw, 28px);

    /* Radii */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 16px;
    --r-pill: 999px;

    /* Typography */
    --f-display: 'Rajdhani', 'Oswald', system-ui, sans-serif;
    --f-body: 'Inter', system-ui, sans-serif;
    --f-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    /* Transitions */
    --t-fast: 0.15s ease;
    --t-base: 0.25s cubic-bezier(.4,0,.2,1);
    --t-slow: 0.4s cubic-bezier(.4,0,.2,1);

    /* Z-index */
    --z-header: 100;
    --z-dropdown: 500;
    --z-overlay: 1000;
}

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

html {
    font-size: 16px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
    min-height: 100vh;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 1000px 600px at 10% 0%, rgba(0, 217, 255, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 800px 500px at 95% 20%, rgba(255, 51, 85, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse 900px 500px at 50% 95%, rgba(255, 217, 61, 0.03) 0%, transparent 55%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--f-body);
    font-size: 1rem;
    overflow-x: hidden;
    position: relative;
}

/* Subtle scan-line texture (HUD feel) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: repeating-linear-gradient(
        180deg,
        transparent 0,
        transparent 3px,
        rgba(255, 255, 255, 0.012) 3px,
        rgba(255, 255, 255, 0.012) 4px
    );
    pointer-events: none;
    z-index: 1;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button { cursor: pointer; -webkit-appearance: none; }

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color var(--t-base);
}
a:hover { color: var(--cyan-hot); }

ul, ol { list-style: none; }

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

::selection {
    background: var(--cyan-dim);
    color: var(--text-bright);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
    background: var(--steel);
    border-radius: var(--r-pill);
    border: 2px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* Typography — full-width, no max-width on text per site rule */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-display);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-bright);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    width: 100%;
    max-width: none;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}
h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    position: relative;
    padding-left: 1rem;
}
h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 0.8em;
    background: var(--cyan);
    box-shadow: var(--shadow-cyan);
}
h3 {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 600;
}
h4 { font-size: 1.1rem; font-weight: 600; text-transform: none; }

p {
    color: var(--text);
    line-height: 1.7;
    width: 100%;
    max-width: none;
}
p + p { margin-top: 1rem; }

strong, b { color: var(--text-bright); font-weight: 700; }

em, i { color: var(--cyan); font-style: normal; font-weight: 500; }

small { font-size: 0.85rem; color: var(--text-dim); }

code, kbd, samp, pre {
    font-family: var(--f-mono);
    font-size: 0.92em;
}
code {
    padding: 0.1em 0.4em;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid var(--cyan-dim);
    border-radius: var(--r-sm);
    color: var(--cyan-hot);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-inline: var(--container-pad);
    position: relative;
    z-index: 2;
}

/* Section base */
main { display: block; padding-top: var(--header-h); }

section {
    padding-block: 3.5rem;
    position: relative;
    z-index: 2;
}

section + section::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, 90%);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--cyan-dim) 50%, transparent 100%);
}

/* Tables (shared base) */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--bg-2);
    border-radius: var(--r-md);
    overflow: hidden;
}
thead {
    background: linear-gradient(90deg, var(--steel) 0%, var(--bg-2) 100%);
}
th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cyan);
    border-bottom: 1px solid var(--cyan-dim);
}
td {
    padding: 0.75rem 1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--t-base); }
tbody tr:hover { background: rgba(0, 217, 255, 0.04); }

/* Utilities */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.text-bright { color: var(--text-bright); }
.text-cyan { color: var(--cyan); }
.text-amber { color: var(--amber); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.mono { font-family: var(--f-mono); }
.tight { letter-spacing: -0.02em; }

/* Badge */
.badge {
    display: inline-block;
    padding: 0.3em 0.75em;
    font-family: var(--f-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--r-sm);
    line-height: 1.2;
}
.badge--cyan {
    background: var(--cyan-dim);
    color: var(--cyan-hot);
    border: 1px solid var(--cyan);
}
.badge--amber {
    background: var(--amber-dim);
    color: var(--amber);
    border: 1px solid var(--amber);
}
.badge--red {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid var(--red);
}
.badge--green {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid var(--green);
}
.badge--live {
    background: var(--red);
    color: #fff;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,51,85,0.6); }
    50% { box-shadow: 0 0 0 8px rgba(255,51,85,0); }
}
@keyframes pulse-cyan {
    0%,100% { box-shadow: 0 0 0 0 rgba(0,217,255,0.6); }
    50% { box-shadow: 0 0 0 10px rgba(0,217,255,0); }
}
@keyframes scan-line {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Stars (rating) */
.stars { display: inline-flex; gap: 2px; color: var(--amber); font-size: 1rem; }
.star--full { color: var(--amber); }
.star--half { color: var(--amber); opacity: 0.6; }
.star--empty { color: var(--text-muted); }
