/*
 * Homepage Builder — Upcoming Releases
 *
 * Cinematic single-release carousel.
 * Presentation only; product/release data remains server-owned.
 */


/* ==========================================================
   Widget shell
   ========================================================== */

body.home:not(.wp-admin)
.llhb-upcoming-releases {
    --llhb-upcoming-gold: #e2bd59;
    --llhb-upcoming-green: #72d38c;
    --llhb-upcoming-cream: #f3eee2;
    --llhb-upcoming-muted: rgba(235, 230, 219, .61);

    position: relative;
    width: min(var(--ll-home-width, 1180px), calc(100% - 40px));
    max-width: 100%;
    margin: clamp(64px, 8vw, 116px) auto;
    overflow: hidden;
}


/* ==========================================================
   Heading
   ========================================================== */

body.home:not(.wp-admin)
.llhb-upcoming-releases
.llhb-merch__header {
    position: relative;
    z-index: 4;
    max-width: 760px;
    margin: 0 0 clamp(34px, 4.5vw, 56px);
    padding: 19px 0 0;
    border: 0;
}

body.home:not(.wp-admin)
.llhb-upcoming-releases
.llhb-merch__header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 46px;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(226,189,89,.95),
        rgba(226,189,89,.12)
    );
}

body.home:not(.wp-admin)
.llhb-upcoming-releases
.llhb-content-widget__eyebrow {
    margin: 0 0 12px;
    padding: 0;
    color: var(--ll-home-green, #8cff1a);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .19em;
    text-transform: uppercase;
}

body.home:not(.wp-admin)
.llhb-upcoming-releases
.llhb-merch__title {
    max-width: 11ch;
    margin: 0;
    padding: 0;
    color: var(--llhb-upcoming-cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 5.8vw, 5.7rem);
    font-weight: 600;
    line-height: .91;
    letter-spacing: -.05em;
}

body.home:not(.wp-admin)
.llhb-upcoming-releases
.llhb-content-widget__body {
    max-width: 600px;
    margin: 20px 0 0;
    color: var(--llhb-upcoming-muted);
    font-size: 1rem;
    line-height: 1.7;
}


/* ==========================================================
   Carousel stage
   ========================================================== */

body.home:not(.wp-admin)
.llhb-upcoming-carousel__stage {
    position: relative;
    min-height: clamp(460px, 48vw, 600px);
    overflow: hidden;
    border-top: 1px solid rgba(226,189,89,.17);
    border-bottom: 1px solid rgba(226,189,89,.12);
    background:
        radial-gradient(
            circle at 25% 45%,
            rgba(86,46,126,.19),
            transparent 31%
        ),
        radial-gradient(
            circle at 75% 50%,
            rgba(31,95,68,.07),
            transparent 34%
        ),
        linear-gradient(
            110deg,
            rgba(12,10,18,.62),
            rgba(5,8,12,.22)
        );
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__stage::before {
    content: "COMING SOON";
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(226,189,89,.025);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 700;
    line-height: .8;
    letter-spacing: -.06em;
    white-space: nowrap;
    pointer-events: none;
}


/* ==========================================================
   Slides
   ========================================================== */

body.home:not(.wp-admin)
.llhb-upcoming-carousel__slide {
    position: absolute;
    inset: 0;
    z-index: 1;

    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
    align-items: center;
    gap: clamp(34px, 6vw, 86px);

    padding: clamp(34px, 4vw, 56px) clamp(24px, 4vw, 54px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(44px);

    transition:
        opacity 420ms ease,
        transform 560ms cubic-bezier(.2,.75,.25,1),
        visibility 0s linear 560ms;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);

    transition:
        opacity 440ms ease,
        transform 600ms cubic-bezier(.2,.75,.25,1),
        visibility 0s;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__slide.is-leaving-left {
    opacity: 0;
    transform: translateX(-54px);
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__slide.is-leaving-right {
    opacity: 0;
    transform: translateX(54px);
}


/* ==========================================================
   Product artwork
   ========================================================== */

body.home:not(.wp-admin)
.llhb-upcoming-carousel__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 380px;
    isolation: isolate;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__orb {
    position: absolute;
    z-index: -1;
    width: min(78%, 390px);
    aspect-ratio: 1;
    border: 1px solid rgba(226,189,89,.14);
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 45% 40%,
            rgba(98,60,143,.22),
            rgba(32,19,48,.09) 52%,
            transparent 70%
        );
    box-shadow:
        0 0 80px rgba(80,48,118,.10),
        inset 0 0 50px rgba(226,189,89,.025);
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__orb::before,
body.home:not(.wp-admin)
.llhb-upcoming-carousel__orb::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(226,189,89,.09);
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__orb::before {
    inset: 9%;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__orb::after {
    inset: 20%;
    border-color: rgba(114,211,140,.07);
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__image-link {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 360px;
    text-decoration: none;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(92%, 440px) !important;
    max-height: 430px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    filter:
        drop-shadow(0 28px 28px rgba(0,0,0,.38))
        drop-shadow(0 0 30px rgba(99,62,140,.08));
    transform: translateY(0) scale(.96);
    transition:
        transform 650ms cubic-bezier(.2,.75,.25,1),
        filter 450ms ease;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__slide.is-active
.llhb-upcoming-carousel__image {
    animation: llhbUpcomingReveal 700ms cubic-bezier(.2,.75,.25,1) both;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__image-link:hover
.llhb-upcoming-carousel__image {
    transform: translateY(-7px) scale(1);
    filter:
        drop-shadow(0 34px 32px rgba(0,0,0,.42))
        drop-shadow(0 0 34px rgba(226,189,89,.08));
}

@keyframes llhbUpcomingReveal {
    from {
        opacity: .2;
        transform: translateY(20px) scale(.91);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(.96);
    }
}


/* ==========================================================
   Release content
   ========================================================== */

body.home:not(.wp-admin)
.llhb-upcoming-carousel__content {
    position: relative;
    min-width: 0;
    padding: clamp(14px, 2vw, 28px) 0;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__content::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: clamp(-28px, -2vw, -16px);
    width: 1px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(226,189,89,.3) 20%,
        rgba(226,189,89,.14) 80%,
        transparent
    );
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__release {
    margin: 0 0 22px;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__release span {
    display: block;
    margin: 0 0 7px;
    color: var(--ll-home-green, #8cff1a);
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .19em;
    text-transform: uppercase;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__release strong {
    display: block;
    color: var(--llhb-upcoming-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 2.4vw, 2.25rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.035em;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__status {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 0 0 17px;
    color: rgba(235,230,219,.64);
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .15em;
    text-transform: uppercase;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__status > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--llhb-upcoming-green);
    box-shadow: 0 0 10px rgba(114,211,140,.34);
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__status.is-coming-soon > span {
    background: var(--llhb-upcoming-gold);
    box-shadow: 0 0 10px rgba(226,189,89,.28);
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__product-title {
    max-width: 12ch;
    margin: 0 0 22px;
    padding: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.7vw, 3.9rem);
    font-weight: 600;
    line-height: .96;
    letter-spacing: -.045em;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__product-title a {
    color: var(--llhb-upcoming-cream);
    text-decoration: none;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__price {
    margin: 0 0 28px;
    color: var(--llhb-upcoming-gold);
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.04em;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__price del {
    opacity: .45;
    font-size: .72em;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__price ins {
    text-decoration: none;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    min-width: 190px;
    min-height: 44px;
    padding: 12px 16px;
    border: 1px solid rgba(114,211,140,.31);
    background:
        linear-gradient(
            105deg,
            rgba(10,58,43,.76),
            rgba(28,23,54,.82)
        );
    color: #f0ebdf;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        border-color 180ms ease,
        transform 180ms ease,
        background 180ms ease;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__cta:hover {
    border-color: rgba(226,189,89,.52);
    transform: translateY(-2px);
}


/* ==========================================================
   Navigation
   ========================================================== */

body.home:not(.wp-admin)
.llhb-upcoming-carousel__navigation {
    display: grid;
    grid-template-columns: 46px auto 46px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 24px auto 0;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__arrow {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(226,189,89,.28);
    border-radius: 50%;
    background: rgba(8,10,14,.74);
    color: var(--llhb-upcoming-gold);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__arrow:hover {
    border-color: rgba(226,189,89,.68);
    background: rgba(28,24,37,.94);
    transform: scale(1.06);
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__dot {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__dot > span {
    display: block;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(226,189,89,.48);
    border-radius: 50%;
    background: transparent;
    transition:
        width 220ms ease,
        height 220ms ease,
        background 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__dot.is-active > span {
    width: 10px;
    height: 10px;
    border-color: var(--llhb-upcoming-gold);
    background: var(--llhb-upcoming-gold);
    box-shadow: 0 0 14px rgba(226,189,89,.34);
}


/* ==========================================================
   Focus
   ========================================================== */

body.home:not(.wp-admin)
.llhb-upcoming-carousel__arrow:focus-visible,
body.home:not(.wp-admin)
.llhb-upcoming-carousel__dot:focus-visible,
body.home:not(.wp-admin)
.llhb-upcoming-carousel__cta:focus-visible,
body.home:not(.wp-admin)
.llhb-upcoming-carousel__image-link:focus-visible,
body.home:not(.wp-admin)
.llhb-upcoming-carousel__product-title a:focus-visible {
    outline: 2px solid var(--ll-home-green, #8cff1a);
    outline-offset: 4px;
}


/* ==========================================================
   Narrow Builder slots
   ========================================================== */

@container llhb-slot (max-width: 760px) {

    body.home:not(.wp-admin)
    .llhb-upcoming-releases {
        width: 100%;
        margin: clamp(38px, 7cqi, 68px) 0;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__slide {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px 22px 34px;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__visual {
        min-height: 280px;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__image-link {
        min-height: 270px;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__image {
        max-height: 300px !important;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__content::before {
        display: none;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__product-title {
        max-width: 16ch;
    }
}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 700px) {

    body.home:not(.wp-admin)
    .llhb-upcoming-releases {
        width: calc(100% - 28px);
        margin: 50px auto 72px;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-releases
    .llhb-merch__header {
        margin-bottom: 30px;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-releases
    .llhb-merch__title {
        font-size: clamp(2.8rem, 14vw, 4.5rem);
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__stage {
        min-height: 0;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__slide {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 26px 18px 32px;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__visual {
        min-height: 250px;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__image-link {
        min-height: 240px;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__image {
        max-width: 90% !important;
        max-height: 265px !important;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__content {
        padding: 18px 0 0;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__content::before {
        display: none;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__product-title {
        max-width: 18ch;
        font-size: clamp(2rem, 10vw, 3rem);
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__navigation {
        grid-template-columns: 42px auto 42px;
        gap: 12px;
        margin-top: 18px;
    }

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__arrow {
        width: 42px;
        height: 42px;
    }
}


/* ==========================================================
   Reduced motion
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__slide,
    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__image,
    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__arrow,
    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__dot > span,
    body.home:not(.wp-admin)
    .llhb-upcoming-carousel__cta {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================
   Autoplay progress
   ========================================================== */

body.home:not(.wp-admin)
.llhb-upcoming-carousel__dot.is-active {
    position: relative;
}

body.home:not(.wp-admin)
.llhb-upcoming-carousel__dot.is-active::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(226,189,89,.12);
    border-radius: 50%;
}

body.home:not(.wp-admin)
.llhb-upcoming-releases.is-autoplay-running
.llhb-upcoming-carousel__dot.is-active::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-top-color: rgba(226,189,89,.9);
    border-right-color: rgba(226,189,89,.9);
    border-radius: 50%;
    animation: llhbUpcomingProgress 7s linear forwards;
}

@keyframes llhbUpcomingProgress {
    from {
        transform: rotate(-45deg);
        opacity: .38;
    }

    to {
        transform: rotate(315deg);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home:not(.wp-admin)
    .llhb-upcoming-releases.is-autoplay-running
    .llhb-upcoming-carousel__dot.is-active::after {
        animation: none !important;
        display: none;
    }
}
