/**
 * Call of Duty landing page
 * Background: /images/cod/cod-background.jpg
 * Hero image: /images/cod/hero.jpg
 */

.cod-page {
    position: relative;
    min-height: 60vh;
    background-color: #0b0d10;
    background-image: url('/images/cod/cod-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.cod-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.cod-hero-bg {
    position: absolute;
    inset: -4%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    animation: codHeroZoom 22s ease-in-out infinite;
}

/* Slow zoom in → hold ~5s → zoom out → loop */
@keyframes codHeroZoom {
    0%   { transform: scale(1); }
    36%  { transform: scale(1.14); }
    59%  { transform: scale(1.14); } /* ~5s hold on 22s cycle */
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .cod-hero-bg {
        animation: none;
        inset: 0;
        transform: none;
    }
}

.cod-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.62) 45%,
        rgba(0, 0, 0, 0.48) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.cod-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 1.5rem 7.5rem;
}

.cod-hero-copy {
    max-width: 42rem;
    text-align: center;
    margin: 0 auto;
}

.cod-hero-title {
    margin: 0 0 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
    font-size: clamp(1.85rem, 5vw, 3.1rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.cod-hero-title-accent {
    color: #d90429;
    font-size: 0.7em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.cod-hero-title-main {
    color: #fff;
}

.cod-hero-lead {
    margin: 0 0 1.75rem;
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    font-weight: 600;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.cod-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.75rem;
    background: #d90429;
    color: #fff !important;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 0.5rem;
    border: 2px solid #d90429;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.cod-hero-cta:hover,
.cod-hero-cta:focus {
    background: #fff;
    color: #d90429 !important;
    transform: translateY(-2px);
}

.cod-scroll-down {
    position: absolute;
    left: 50%;
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 5;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 1;
    padding: 0.55rem 0.95rem 0.45rem;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    animation: codBounce 1.8s ease-in-out infinite;
}

.cod-scroll-down:hover {
    color: #ffd6dc !important;
    background: rgba(0, 0, 0, 0.72);
}

@keyframes codBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* PC: copy left — 2 lines always, "Call of Duty" stays one line */
@media (min-width: 768px) {
    .cod-hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.58) 38%,
            rgba(0, 0, 0, 0.35) 100%
        );
    }

    .cod-hero-inner {
        padding: 4.5rem 1.25rem 6rem;
    }

    .cod-hero-copy {
        margin: 0;
        text-align: left;
        max-width: none;
    }

    .cod-hero-title {
        align-items: flex-start;
        font-size: clamp(2rem, 3.2vw, 2.85rem);
    }

    .cod-hero-title-main {
        white-space: nowrap;
    }

    .cod-scroll-down {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        opacity: 0.95;
    }
}

.cod-products {
    position: relative;
    padding: 3rem 1rem 4rem;
    background: rgba(11, 13, 16, 0.82);
}

.cod-products-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.cod-products-head {
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
}

.cod-products-head h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
}

.cod-products-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.975rem;
}

.cod-products .gpc-grid {
    padding-left: 0;
    padding-right: 0;
}

/* PC: exactly 2 product cards per row */
@media (min-width: 768px) {
    .cod-products .gpc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: 920px;
        margin-left: auto;
        margin-right: auto;
    }
}

.cod-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 1rem;
}

.cod-empty a {
    color: #ff6b81;
    font-weight: 700;
}

@media (max-width: 767px) {
    .cod-page {
        background-attachment: scroll;
    }

    .cod-hero {
        min-height: 100svh;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 4.5rem;
    }

    .cod-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.68) 55%,
            rgba(0, 0, 0, 0.78) 100%
        );
    }

    .cod-hero-inner {
        padding: 1.25rem 1.25rem 6.5rem;
    }

    .cod-scroll-down {
        bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
        font-size: 0.9rem;
    }
}
