/* ================================
   UFC White House - Main CSS
   American palette: blue + red + gold
   ================================ */

:root {
    /* American flag palette */
    --blue: #002868;
    --blue-hot: #0a3a8f;
    --blue-dim: #001a4a;
    --red: #BF0A30;
    --red-hot: #d81e44;
    --red-dim: #8c0620;
    --gold: #FFD700;
    --gold-hot: #ffe14a;
    --gold-dim: #c9a800;

    /* Surface */
    --bg: #0A1628;
    --bg-2: #152238;
    --bg-3: #1c2c47;
    --steel: #2a3b5a;
    --border: #22334d;
    --border-hi: #344a6e;

    /* Text */
    --text: #E8EAED;
    --text-bright: #ffffff;
    --text-dim: #a0aec0;
    --text-muted: #6b7a90;

    /* Fonts */
    --f-display: "Bebas Neue", "Arial Narrow", sans-serif;
    --f-body: "Inter", system-ui, sans-serif;
    --f-mono: "JetBrains Mono", "Consolas", monospace;

    /* Radii */
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;

    /* Transitions */
    --t-fast: 150ms ease;
    --t-base: 250ms ease;
    --t-slow: 400ms ease;

    /* Shadows */
    --shadow-gold: 0 0 24px rgba(255, 215, 0, 0.18);
    --shadow-red: 0 0 24px rgba(191, 10, 48, 0.2);
    --shadow-blue: 0 0 24px rgba(0, 40, 104, 0.4);
    --shadow-deep: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* Layout */
    --container: 1200px;
    --container-wide: 1400px;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.container-wide { max-width: var(--container-wide); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-display);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--text-bright);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

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

.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue-hot); }

strong { font-weight: 700; }

img { max-width: 100%; height: auto; display: block; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    font-family: var(--f-display);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--r-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--t-base);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gold);
    color: var(--blue-dim);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-hot);
    color: var(--blue-dim);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}
.btn-accent {
    background: var(--red);
    color: var(--text-bright);
    border-color: var(--red);
}
.btn-accent:hover {
    background: var(--red-hot);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}
.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--blue-dim);
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-hi);
}
.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ================================
   Cover Hero - Octagon background
   ================================ */

.cover {
    position: relative;
    min-height: 92vh;
    padding: 8rem 0 4rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(0, 40, 104, 0.45) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(191, 10, 48, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, #0a1628 0%, #050b18 100%);
}

/* Star-spangled subtle pattern overlay */
.cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 3%),
        radial-gradient(circle at 80% 15%, rgba(255, 215, 0, 0.05) 0%, transparent 2%),
        radial-gradient(circle at 25% 75%, rgba(255, 215, 0, 0.06) 0%, transparent 2%),
        radial-gradient(circle at 70% 85%, rgba(255, 215, 0, 0.04) 0%, transparent 3%),
        radial-gradient(circle at 45% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 2%);
    pointer-events: none;
    z-index: 1;
}

.cover__inner {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* Octagon shape - SVG positioned absolute, content inside */
.cover__octagon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 1100px);
    aspect-ratio: 1;
    max-height: 85vh;
    z-index: 2;
    pointer-events: none;
}

.cover__octagon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cover__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.4rem 1.25rem;
    font-family: var(--f-display);
    font-size: 0.95rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    border-radius: 100px;
    background: rgba(255, 215, 0, 0.04);
}
.cover__eyebrow-star { color: var(--gold); font-size: 1.1rem; }

.cover__title {
    font-family: var(--f-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.04em;
    line-height: 0.95;
    text-shadow:
        0 0 30px rgba(255, 215, 0, 0.25),
        0 4px 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
}
.cover__title-white { color: var(--text-bright); }
.cover__title-accent { color: var(--gold); }

.cover__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--f-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}
.cover__subtitle-separator { color: var(--gold-dim); }

/* Main event card inside cover */
.cover__main-card {
    position: relative;
    z-index: 3;
    margin: 0 auto 2rem;
    max-width: 760px;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(21, 34, 56, 0.85) 0%, rgba(10, 22, 40, 0.9) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid var(--gold-dim);
    border-radius: var(--r-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 215, 0, 0.1);
}
.cover__main-card-label {
    font-family: var(--f-display);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.25rem;
}
.cover__main-card-title-line {
    font-family: var(--f-display);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.fighter-vs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}
.fighter-vs__side {
    text-align: center;
}
.fighter-vs__name {
    font-family: var(--f-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: var(--text-bright);
    letter-spacing: 0.02em;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}
.fighter-vs__record {
    font-family: var(--f-mono);
    font-size: 0.9rem;
    color: var(--text-dim);
}
.fighter-vs__odds {
    display: inline-block;
    margin-top: 0.65rem;
    padding: 0.35rem 0.9rem;
    font-family: var(--f-mono);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: var(--r-sm);
}
.fighter-vs__odds--favorite {
    background: rgba(0, 40, 104, 0.5);
    border: 1px solid var(--blue-hot);
    color: #7fb0ff;
}
.fighter-vs__odds--underdog {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid var(--gold-dim);
    color: var(--gold);
}
.fighter-vs__vs {
    font-family: var(--f-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--red);
    text-shadow: 0 0 18px rgba(191, 10, 48, 0.6);
}

.cover__cta-row {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Countdown inside cover */
.cover__countdown {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    padding: 0.75rem 0.5rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--gold-dim);
    border-radius: var(--r-sm);
}
.countdown__value {
    font-family: var(--f-display);
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
}
.countdown__label {
    font-family: var(--f-body);
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.3rem;
}

/* Section spacing */
section {
    padding: 3.5rem 0;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.section-header h2 {
    margin: 0;
    position: relative;
}
.section-header__link {
    font-family: var(--f-display);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs-sep { color: var(--text-muted); }

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--r-xs);
    font-weight: 700;
}
.badge--gold {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    border: 1px solid var(--gold-dim);
}
.badge--red {
    background: rgba(191, 10, 48, 0.15);
    color: var(--red-hot);
    border: 1px solid var(--red-dim);
}
.badge--blue {
    background: rgba(0, 40, 104, 0.25);
    color: #7fb0ff;
    border: 1px solid var(--blue-hot);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.site-header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--f-display);
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    color: var(--text-bright);
    text-transform: uppercase;
}
.site-header__logo-icon {
    width: 32px;
    height: 32px;
    color: var(--gold);
}
.site-header__nav {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}
.site-header__nav a {
    padding: 0.5rem 0.9rem;
    font-family: var(--f-display);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    text-transform: uppercase;
    border-radius: var(--r-xs);
    transition: all var(--t-fast);
}
.site-header__nav a:hover, .site-header__nav a.active {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
}
.site-header__cta {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

@media (max-width: 880px) {
    .site-header__nav { display: none; }
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
    background: var(--bg-2);
    border-top: 3px solid var(--red);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.site-footer__col h4 {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.site-footer__col ul { list-style: none; }
.site-footer__col li { margin-bottom: 0.4rem; }
.site-footer__col a {
    color: var(--text-dim);
    font-size: 0.92rem;
    transition: color var(--t-fast);
}
.site-footer__col a:hover { color: var(--gold); }
.site-footer__bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.site-footer__bottom .badge-18 {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: var(--red);
    color: white;
    border-radius: var(--r-xs);
    font-weight: 700;
    font-family: var(--f-display);
    letter-spacing: 0.08em;
}

@media (max-width: 720px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--steel);
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    border-radius: 50%;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all var(--t-base);
}
.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--gold);
    color: var(--blue-dim);
    box-shadow: var(--shadow-gold);
}
