/*
 * Shared full-width fan app promotion.
 * Property-specific content is maintained in WordPress.
 */

.epic-app-promo-banner {
    position: relative;
    isolation: isolate;
    width: 100%;
    margin: 58px auto 0;
    padding: 0;
    color: #fff;
    font-family: Geist, Arial, sans-serif;
}

.epic-app-promo-banner::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: linear-gradient(
        115deg,
        #b5002d 0%,
        #a8002b 55%,
        #890023 100%
    );
}

.epic-app-promo-banner__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(35px, 5vw, 90px);

    width: 100%;
    max-width: 1200px;
    min-height: 480px;
    margin-inline: auto;
    padding: 48px 0;
}

.epic-app-promo-banner__message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.epic-app-promo-banner__eyebrow {
    margin: 0 0 14px !important;
    color: #ffc4d0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.epic-app-promo-banner__headline {
    max-width: 600px;
    margin: 0 0 21px !important;
    color: #fff !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 60px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.epic-app-promo-banner__description {
    max-width: 550px;
    margin: 0 0 29px !important;
    color: #fff;
    font-size: 17px;
    line-height: 1.6;
}

.epic-app-promo-banner__stores {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.epic-app-promo-banner__stores .wp-block-image {
    flex: 0 0 auto;
    width: auto;
    margin: 0 !important;
    padding: 0;
}

.epic-app-promo-banner__stores .wp-block-image a {
    display: block;
    width: auto;
    border-radius: 6px;
}

.epic-app-promo-banner__stores .wp-block-image img {
    display: block;
    width: 170px !important;
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}

.epic-app-promo-banner__artwork {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.epic-app-promo-banner__artwork img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 520px;
    height: auto;
    object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
    .epic-app-promo-banner__stores a:hover {
        opacity: 0.86;
    }
}

@media (max-width: 760px) {
    .epic-app-promo-banner {
        margin-top: 42px;
    }

    .epic-app-promo-banner__inner {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        gap: 28px;
        padding: 43px 8px 47px;
    }

    .epic-app-promo-banner__message {
        align-items: center;
        text-align: center;
    }

    .epic-app-promo-banner__headline {
        font-size: clamp(32px, 8vw, 46px);
    }

    .epic-app-promo-banner__description {
        font-size: 15px;
    }

    .epic-app-promo-banner__stores {
        justify-content: center;
    }

    .epic-app-promo-banner__artwork img {
        max-height: 320px;
    }
}

@media (max-width: 390px) {
    .epic-app-promo-banner__stores {
        gap: 8px;
    }

    .epic-app-promo-banner__stores .wp-block-image img {
        width: 145px !important;
    }
}


/* App promotion: Epic-style heading and eyebrow. */
@media (min-width: 961px) {
    .epic-app-promo-banner__inner {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
        column-gap: 26px;
    }

    .epic-app-promo-banner__eyebrow {
        position: relative;
        margin-bottom: 27px !important;
        color: #FFFFFF;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.12em;
        line-height: 1.2;
    }

    .epic-app-promo-banner__eyebrow::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -10px;
        width: 45px;
        height: 2px;
        background: rgba(255,255,255,0.85);
    }

    .epic-app-promo-banner__headline {
        max-width: none;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(42px, 4vw, 58px);
        font-weight: 700;
        line-height: 1.08;
        letter-spacing: -0.025em;
        white-space: nowrap;
    }
}

@media (max-width: 960px) {
    .epic-app-promo-banner__eyebrow {
        position: relative;
        padding-bottom: 12px;
        color: #FFFFFF;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.12em;
    }

    .epic-app-promo-banner__eyebrow::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 45px;
        height: 2px;
        background: rgba(255,255,255,0.85);
    }

    .epic-app-promo-banner__headline {
        white-space: normal;
    }
}


/* App promotion: exact Epic headline typography. */

/* Wide desktop: match the Epic Fans Media headline. */
@media (min-width: 1500px) {
    .epic-app-promo-banner__headline {
        font-family: Georgia, "Times New Roman", serif;
        font-size: 76px;
        font-weight: 500;
        line-height: 73px;
        letter-spacing: -3.04px;
        white-space: nowrap;
    }
}

/* Smaller desktops: preserve proportions without overlap. */
@media (min-width: 961px) and (max-width: 1499px) {
    .epic-app-promo-banner__headline {
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(40px, 4.1vw, 62px);
        font-weight: 500;
        line-height: 0.96;
        letter-spacing: -0.04em;
        white-space: normal;
    }
}

/* Tablet and mobile: retain the same typeface and weight. */
@media (max-width: 960px) {
    .epic-app-promo-banner__headline {
        font-family: Georgia, "Times New Roman", serif;
        font-weight: 500;
        line-height: 1.02;
        letter-spacing: -0.04em;
        white-space: normal;
    }
}


/* App banner: optional promotional feature list. */
.epic-app-promo-banner .epic-app-promo-banner__features {
    list-style: disc outside;
    padding: 0 0 0 22px;
    margin: 0 0 24px;
    color: #FFFFFF;
    font-family: Geist, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.38;
}

.epic-app-promo-banner .epic-app-promo-banner__features > li {
    display: list-item;
    list-style-type: disc;
    margin: 0 0 3px;
    padding: 0;
    color: #FFFFFF;
    line-height: 1.38;
}

.epic-app-promo-banner .epic-app-promo-banner__features > li::marker {
    color: #FFFFFF;
}

.epic-app-promo-banner .epic-app-promo-banner__features > li:last-child {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .epic-app-promo-banner__features {
        width: fit-content;
        max-width: 100%;
        margin: 0 auto 27px;
        font-size: 15px;
        text-align: left;
    }
}


/* App banner: highlighted headline and store badge lift. */

/* Match the yellow italic emphasis of the homepage hero. */
.epic-app-promo-banner
.epic-app-promo-banner__headline
.epic-app-promo-banner__highlight {
    color: #FCB900;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 500;
    white-space: nowrap;
}

/* Match the existing sidebar store-badge hover behaviour. */
@media (hover: hover) and (pointer: fine) {
    .epic-app-promo-banner
    .epic-app-promo-banner__stores .wp-block-image a {
        transition: transform 0.18s ease;
    }

    .epic-app-promo-banner
    .epic-app-promo-banner__stores .wp-block-image a:hover {
        transform: translateY(-2px);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .epic-app-promo-banner
    .epic-app-promo-banner__stores .wp-block-image a {
        transition: none;
    }
}
