/* MW4.GG — Modern Warfare 4 Dark Theme */

:root {
    /* Primary Accent — MW4 Yellow */
    --accent-yellow: #F5C000;
    --accent-yellow-dim: #C49A00;
    --accent-yellow-glow: rgba(245, 192, 0, 0.15);
    --accent-yellow-glow-strong: rgba(245, 192, 0, 0.4);

    /* Dark Palette */
    --bg-black: #000000;
    --bg-darker: #050505;
    --bg-dark: #0a0a0a;
    --bg-card: #0d0d0d;
    --bg-elevated: #111111;

    /* Borders */
    --border: #1a1a1a;
    --border-light: #252525;
    --border-accent: rgba(245, 192, 0, 0.2);

    /* Text */
    --text-white: #ffffff;
    --text-primary: #e0e0e0;
    --text-secondary: #999999;
    --text-dim: #666666;

    /* Layout */
    --nav-height: 56px;
    --container-max: 1200px;
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-black);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.navbar--scrolled {
    height: 44px;
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: rgba(245, 192, 0, 0.08);
}

.nav-inner--edge {
    padding: 0 clamp(24px, 3vw, 48px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* Absolutely centred so logo width doesn't offset it */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    pointer-events: none;
}

.nav-center > * {
    pointer-events: auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1.5px;
    color: var(--text-white);
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
    transition: font-size 0.3s ease, gap 0.3s ease;
}

.navbar--scrolled .nav-logo {
    font-size: 0.88rem;
    gap: 8px;
}

/* Yellow underline on active logo (home page) */
.nav-logo--active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 60%;
    height: 2px;
    background: var(--accent-yellow);
    box-shadow: 0 0 8px var(--accent-yellow-glow), 0 0 16px var(--accent-yellow-glow);
    transform: translateX(-50%);
}

.logo-icon {
    height: 28px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    transition: height 0.3s ease;
}

.navbar--scrolled .logo-icon {
    height: 22px;
}

.logo-accent {
    color: var(--accent-yellow);
}

/* ===== NAV LINKS ===== */
.nav-link {
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.25s ease, padding 0.3s ease, font-size 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
}

.navbar--scrolled .nav-link {
    padding: 5px 10px;
    font-size: 0.76rem;
}

/* Yellow underline on hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    box-shadow: 0 0 8px var(--accent-yellow-glow), 0 0 16px var(--accent-yellow-glow);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--accent-yellow);
    background: rgba(245, 192, 0, 0.06);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link.active {
    color: var(--accent-yellow);
    background: rgba(245, 192, 0, 0.1);
}

.nav-link.active::after {
    width: 60%;
}

/* ===== NAV DIVIDER ===== */
.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--border-light);
    margin: 0 4px;
    flex-shrink: 0;
    transition: height 0.3s ease;
}

.navbar--scrolled .nav-divider {
    height: 14px;
}

/* ===== MOBILE MENU BUTTON (stub) ===== */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    color: var(--accent-yellow);
    background: rgba(245, 192, 0, 0.06);
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

/* ===== MAIN ===== */
main {
    flex: 1;
}

main.container {
    padding-top: calc(var(--nav-height) + 12px);
    padding-bottom: 80px;
}

/* ===== HERO CINEMATIC ===== */
.hero-cinematic {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: calc(var(--nav-height) + 20px) 24px 24px;
    background: var(--bg-black);
}

/* Subtle yellow ambient glow in centre */
.hero-cinematic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 60% at 50% 50%,
        rgba(245, 192, 0, 0.04) 0%,
        transparent 65%
    );
    pointer-events: none;
    z-index: 0;
}

/* Bottom fade-out to black */
.hero-cinematic::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, var(--bg-black));
    pointer-events: none;
    z-index: 0;
}

.hero-cinematic-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-game-logo {
    height: clamp(80px, 14vw, 150px);
    width: auto;
    max-width: 520px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 40px rgba(245, 192, 0, 0.1));
}

.hero-release-date {
    font-size: clamp(0.65rem, 1.8vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--accent-yellow);
    margin-bottom: 36px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: var(--accent-yellow);
    color: #000;
    border: 2px solid var(--accent-yellow);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--accent-yellow-dim);
    border-color: var(--accent-yellow-dim);
    box-shadow: 0 0 24px var(--accent-yellow-glow);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-ghost:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

/* ===== LAUNCH NOTICE ===== */
.launch-notice-wrap {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 16px clamp(24px, 3vw, 48px);
}

.launch-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: var(--container-max);
    margin: 0 auto;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.launch-notice[hidden] {
    display: none;
}

.launch-notice svg {
    flex-shrink: 0;
    color: var(--accent-yellow);
    margin-top: 1px;
    width: 16px;
    height: 16px;
}

.launch-notice strong {
    color: var(--text-white);
}

.launch-notice__dismiss {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0 0 12px;
    flex-shrink: 0;
    transition: color 0.15s;
}

.launch-notice__dismiss:hover {
    color: var(--text-white);
}

/* ===== QUICK LINKS GRID ===== */
.quick-links-section {
    background: var(--bg-black);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.ql-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
    gap: 14px;
}

.ql-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-yellow);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ql-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-elevated);
    transform: translateY(-2px);
}

.ql-card:hover::before {
    opacity: 1;
}

.ql-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-yellow);
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.ql-card:hover .ql-icon {
    opacity: 1;
}

.ql-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.ql-card-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-white);
    transition: color 0.2s ease;
}

.ql-card:hover .ql-card-title {
    color: var(--accent-yellow);
}

.ql-card-desc {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

.ql-card-arrow {
    width: 14px;
    height: 14px;
    color: var(--text-dim);
    transition: transform 0.2s ease, color 0.2s ease;
    align-self: flex-end;
    margin-top: auto;
    flex-shrink: 0;
}

.ql-card:hover .ql-card-arrow {
    color: var(--accent-yellow);
    transform: translateX(3px);
}

/* ===== COUNTDOWN ===== */
.countdown-wrap {
    margin: 10px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.countdown-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent-yellow);
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 6px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
}

.countdown-value {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-white);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-unit-label {
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 5px;
}

.countdown-sep {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-yellow);
    line-height: 1;
    margin-bottom: 16px;
    animation: blink-colon 1s step-end infinite;
}

@keyframes blink-colon {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.15; }
}

.countdown-launched .countdown-label {
    color: var(--accent-yellow);
    letter-spacing: 6px;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 24px 0 20px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.footer-logo {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 1.5px;
}

.footer-logo-accent {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-yellow);
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-link {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--accent-yellow);
}

.footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    background: rgba(245, 192, 0, 0.08);
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-disclaimer {
    font-size: 0.7rem;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
}

.footer-links {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin: 0;
    white-space: nowrap;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-platform {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin: 0;
    white-space: nowrap;
}

.footer-platform a {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: opacity 0.15s;
}

.footer-platform a:hover {
    opacity: 0.8;
}

/* ===== PULSE ANIMATION ===== */
@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-center {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-game-logo {
        max-width: 280px;
    }

    .footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }

    .footer-links {
        white-space: normal;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-links-grid .ql-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 300px;
    }

    .btn-primary,
    .btn-ghost {
        justify-content: center;
    }
}

/* ─── Site notification banner ────────────────────────────────────────────── */
.site-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 192, 0, 0.07);
    border-bottom: 1px solid rgba(245, 192, 0, 0.2);
    padding: 0.55rem 3rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.site-banner--hiding {
    opacity: 0;
}

.site-banner__msg {
    text-align: center;
}

.site-banner__dismiss {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    border-radius: 3px;
    transition: color 0.15s;
}

.site-banner__dismiss:hover {
    color: var(--text-white);
}
