/* Explain: Styles for the full-width animated promo carousel banner section. */
/* ===== Full-width continuously rotating promo carousel ===== */
.motion-banner {
    position: relative;
    background: var(--surface-dark);
}

.motion-banner-frame {
    position: relative;
    overflow: hidden;
    background: var(--surface-dark);
    aspect-ratio: 16 / 9;
}
@media (max-width: 640px) {
    .motion-banner-frame {
        aspect-ratio: 4 / 3;
    }
}

.carousel-track {
    position: absolute;
    inset: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.1s ease;
}
.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.carousel-slide:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
}
.carousel-slide.is-active img {
    animation: carouselKen 8s ease-out forwards;
}
@keyframes carouselKen {
    from { transform: scale(1.01); }
    to   { transform: scale(1.08); }
}

.carousel-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .18) 50%, transparent 58%);
    transform: translateX(-140%);
    opacity: 0;
}
.carousel-slide.is-active .carousel-shine {
    opacity: 1;
    animation: carouselShine 6.5s ease-in-out infinite;
}
@keyframes carouselShine {
    0%   { transform: translateX(-140%); }
    60%  { transform: translateX(140%); }
    100% { transform: translateX(140%); }
}

.carousel-dots {
    position: absolute;
    inset-inline: 0;
    bottom: 1rem;
    z-index: 3;
    display: flex;
    gap: .5rem;
    justify-content: center;
}
.carousel-dot {
    width: .6rem;
    height: .6rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .5);
    box-shadow: 0 2px 8px rgba(11, 33, 55, .45);
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
}
.carousel-dot.is-active {
    width: 1.6rem;
    background: var(--accent-color);
}

.motion-banner-bar {
    background: linear-gradient(120deg, var(--surface-dark), var(--primary-color));
    border-top: 2px solid var(--accent-color);
}
.motion-banner-bar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-block: 1.35rem;
    text-align: center;
}
@media (min-width: 768px) {
    .motion-banner-bar-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: start;
    }
}
.motion-banner-note {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-weight: 600;
    line-height: 1.7;
}
.motion-banner-note i {
    color: var(--accent-color);
}
.motion-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
    .carousel-slide {
        transition: none;
    }
    .carousel-slide.is-active img {
        animation: none;
        transform: none;
    }
    .carousel-shine {
        display: none;
    }
}