/* ============================================
   Lightli.uk — Home Carousel Shell Styles
   ============================================ */

/* --- Carousel Shell ------------------------------------- */

/*
   Responsive policy: carousel shell
   - Handles phone portrait, phone landscape, tablet portrait, and tablet landscape.
   - Provides the fake contact/footer and swipe/dot controls while the real footer/nav are hidden.
   - Card internals are column layout in portrait and row layout in landscape.
*/

.full-carousel-container {
    /* Carousel shell frame */
    --carousel-shell-height: 100lvh;
    --carousel-shell-y-padding: 8lvh;
    --carousel-phone-landscape-y-padding: clamp(42px, 12lvh, 60px);

    /* Carousel shell contact/footer */
    --carousel-contact-bottom: 24px;
    --carousel-phone-landscape-contact-bottom: clamp(8px, 2.5lvh, 14px);
    --carousel-contact-gap: 16px;
    --carousel-meta-font-size: clamp(10px, 2.5vw, 13px);

    /* Carousel shell swipe hint */
    --carousel-swipe-hint-top: 24px;
    --carousel-phone-landscape-swipe-hint-top: clamp(8px, 2.5lvh, 14px);
    --carousel-swipe-hint-letter-spacing: 0.1em;

    /* Carousel dots */
    --carousel-dots-margin-top: 10px;
    --carousel-dot-height: 1.5px;
    --carousel-dot-width: 10px;
    --carousel-dot-gap: 3px;
    --carousel-dot-radius: 1px;

    @media (max-width: 1050px) and (orientation: portrait), (max-width: 960px) and (max-height: 500px) and (orientation: landscape), (min-width: 961px) and (max-width: 1366px) and (min-height: 600px) and (orientation: landscape) {
        position: relative;
        height: var(--carousel-shell-height);
        scroll-snap-align: center;
    }

    @media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
        --carousel-shell-y-padding: var(--carousel-phone-landscape-y-padding);
        --carousel-contact-bottom: var(--carousel-phone-landscape-contact-bottom);
        --carousel-swipe-hint-top: var(--carousel-phone-landscape-swipe-hint-top);
    }

    /* Phone landscape uses a taller reserved band so labels never overlap cards. */
    & .mobile-contact {
        display: none;

        @media (max-width: 1050px) and (orientation: portrait), (max-width: 960px) and (max-height: 500px) and (orientation: landscape), (min-width: 961px) and (max-width: 1366px) and (min-height: 600px) and (orientation: landscape) {
            display: flex;
            position: absolute;
            bottom: var(--carousel-contact-bottom);
            left: 0;
            right: 0;
            justify-content: center;
            align-items: center;
            gap: var(--carousel-contact-gap);
            z-index: 1;

            & p {
                margin: 0;
                font-size: var(--carousel-meta-font-size);
                font-weight: 400;
                font-family: "montserrat", sans-serif;
                color: #3a3a3a;
            }

            & a {
                font-size: var(--carousel-meta-font-size);
                font-weight: 400;
                font-family: "montserrat", sans-serif;
                text-decoration: none;
                color: #3a3a3a;
            }
        }
    }

    & .swipe-hint {
        display: none;

        @media (max-width: 1050px) and (orientation: portrait), (max-width: 960px) and (max-height: 500px) and (orientation: landscape), (min-width: 961px) and (max-width: 1366px) and (min-height: 600px) and (orientation: landscape) {
            display: block;
            position: absolute;
            top: var(--carousel-swipe-hint-top);
            left: 0;
            right: 0;
            text-align: center;
            font-weight: 400;
            font-family: "montserrat", sans-serif;
            color: #3a3a3a;
            font-size: var(--carousel-meta-font-size);
            margin: 0;
            letter-spacing: var(--carousel-swipe-hint-letter-spacing);
            z-index: 1;
        }
    }
}

.apps-carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;

    @media (max-width: 1050px) and (orientation: portrait), (max-width: 960px) and (max-height: 500px) and (orientation: landscape), (min-width: 961px) and (max-width: 1366px) and (min-height: 600px) and (orientation: landscape) {
        overflow-x: scroll;
        scroll-snap-type: x proximity;
        display: flex;
        flex-direction: row;
        height: 100%;
        width: 100vw;
        padding: var(--carousel-shell-y-padding) 0;
        box-sizing: border-box;
    }

    &::-webkit-scrollbar {
        visibility: hidden;
    }
}

.carousel-dots-inline {
    display: none;

    @media (max-width: 1050px) and (orientation: portrait), (max-width: 960px) and (max-height: 500px) and (orientation: landscape), (min-width: 961px) and (max-width: 1366px) and (min-height: 600px) and (orientation: landscape) {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: var(--carousel-dots-margin-top);
    }
}

.carousel-dot-houser {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--carousel-dot-height);
    margin: 0 var(--carousel-dot-gap);
}

.carousel-dot {
    pointer-events: none;
    cursor: none;
    background-color: #ffffff;
    border-radius: var(--carousel-dot-radius);
    display: inline-block;
    height: var(--carousel-dot-height);
    width: var(--carousel-dot-width);
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.carousel-dot-active {
    opacity: 1;
}