/* Carrossel de banners — estilo DonaldBet */

.apex-home-banners {
    --hb-w-m: 85%;
    --hb-w-d: calc(50% - 6px);
    --hb-h-d: auto;
    --hb-ratio-m: 650 / 291;
    --hb-radius-m: 12px;
    --hb-radius-d: 1rem;
    --hb-aspect-d: 650 / 291;
    --hb-maxh-d: 290px;

    width: 100%;
    margin-bottom: 1.5rem;
}

.apex-home-banners-shell {
    position: relative;
}

.apex-home-banners-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-anchor: none;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    scroll-padding-left: 0.75rem;
    user-select: none;
}

.apex-home-banners-track::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) {
    .apex-home-banners-track {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        scroll-padding-left: 0;
        cursor: grab;
    }

    .apex-home-banners-track.is-dragging {
        cursor: grabbing;
        scroll-behavior: auto;
    }
}

.apex-home-banner-slide {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: var(--hb-w-m);
    aspect-ratio: var(--hb-ratio-m);
    border-radius: var(--hb-radius-m);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .apex-home-banner-slide {
        width: var(--hb-w-d);
        height: auto;
        aspect-ratio: var(--hb-aspect-d);
        border-radius: var(--hb-radius-d);
        max-height: var(--hb-maxh-d);
    }
}

.apex-home-banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.apex-home-banner-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    background: transparent;
    transition: filter 0.3s ease;
}

.apex-home-banner-link:hover img {
    filter: brightness(1.1);
}

.apex-home-banners-fade-left,
.apex-home-banners-fade-right {
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 7rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.apex-home-banners-fade-left {
    left: -0.25rem;
    background: linear-gradient(to right, #141414, transparent);
}

.apex-home-banners-fade-right {
    right: -0.25rem;
    background: linear-gradient(to left, #141414, transparent);
}

.apex-home-banners-shell.can-scroll-left .apex-home-banners-fade-left,
.apex-home-banners-shell.can-scroll-right .apex-home-banners-fade-right {
    opacity: 1;
}

.apex-home-banners-nav {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 20;
    width: 3.5rem;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
}

@media (min-width: 640px) {
    .apex-home-banners-nav {
        display: flex;
    }
}

.apex-home-banners-shell:hover .apex-home-banners-nav {
    opacity: 1;
}

.apex-home-banners-nav:hover {
    color: #fff;
}

.apex-home-banners-nav:disabled {
    opacity: 0 !important;
    cursor: default;
}

.apex-home-banners-nav-prev {
    left: 0;
}

.apex-home-banners-nav-next {
    right: 0;
}

.apex-home-banners-nav svg {
    width: 1.75rem;
    height: 1.75rem;
}
