/**
 * Stylesheet para o Slider de Banners
 * File: assets/css/slider-banners.css
 */

:root {
    --bs-primary: var(--e-global-color-primary, #007cba);
    --bs-accent: var(--e-global-color-secondary, #ff6b35);
    --bs-radius: 12px;
    --bs-arrow-bg: rgba(255, 255, 255, 0.9);
    --bs-arrow-color: #1e293b;
    --bs-arrow-hover-bg: #ffffff;
    --bs-arrow-hover-color: #000000;
    --bs-arrow-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --bs-dot-color: rgba(255, 255, 255, 0.55);
    --bs-dot-active-color: #ffffff;
    --bs-dot-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    --bs-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------
   WRAPPER PRINCIPAL
------------------------------------------------------- */
.banner-slider-wrapper {
    position: relative;
    width: 100%;
    /*margin: 15px 0;*/
    box-sizing: border-box;
    display: block;
    user-select: none;
    -webkit-user-select: none;
}

.banner-slider-wrapper[hidden] {
    display: none !important;
}

/* -------------------------------------------------------
   CONTAINER & TRACK
------------------------------------------------------- */
.banner-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--bs-radius);
    touch-action: pan-y;
    background-color: #f1f5f9;
}

.banner-slider-track {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.banner-slider-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    padding: 0;
}

/* -------------------------------------------------------
   ITEM DO BANNER / LINK / IMAGEM
------------------------------------------------------- */
.banner-item {
    display: block;
    position: relative;
    width: 100%;
    text-decoration: none;
    outline: none;
    overflow: hidden;
}

.banner-item picture,
.banner-picture {
    display: block;
    width: 100%;
    height: auto;
}

.banner-item img,
.banner-img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    border-radius: var(--bs-radius);
    pointer-events: none;
}

/* Efeito sutil ao passar o mouse em banner clicável */
a.banner-item {
    cursor: pointer;
}

a.banner-item:hover img {
    opacity: 0.96;
}

/* -------------------------------------------------------
   BOTÕES DE NAVEGAÇÃO (SETAS)
------------------------------------------------------- */
.banner-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--bs-arrow-bg);
    color: var(--bs-arrow-color);
    box-shadow: var(--bs-arrow-shadow);
    cursor: pointer;
    transition: var(--bs-transition);
    opacity: 0.85;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.banner-slider-btn:hover {
    background: var(--bs-arrow-hover-bg);
    color: var(--bs-arrow-hover-color);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

.banner-slider-btn:active {
    transform: translateY(-50%) scale(0.96);
}

.banner-slider-btn:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.banner-slider-prev {
    left: 14px;
}

.banner-slider-next {
    right: 14px;
}

.banner-slider-btn svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

/* Se só houver 1 banner visível, setas e pontos somem */
.banner-slider-wrapper.is-single .banner-slider-btn,
.banner-slider-wrapper.is-single .banner-slider-dots {
    display: none !important;
}

/* -------------------------------------------------------
   PAGINAÇÃO / PONTOS INDICADORES (DOTS)
------------------------------------------------------- */
.banner-slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.banner-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: var(--bs-dot-color);
    cursor: pointer;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.banner-slider-dot:hover {
    background: #ffffff;
}

.banner-slider-dot.active {
    width: 26px;
    background: var(--bs-dot-active-color);
}

.banner-slider-dot:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* -------------------------------------------------------
   RESPONSIVIDADE
------------------------------------------------------- */
@media (max-width: 768px) {
    .banner-slider-btn {
        width: 36px;
        height: 36px;
        opacity: 0.9;
    }

    .banner-slider-prev {
        left: 8px;
    }

    .banner-slider-next {
        right: 8px;
    }

    .banner-slider-btn svg {
        width: 18px;
        height: 18px;
    }

    .banner-slider-dots {
        bottom: 10px;
        gap: 6px;
        padding: 4px 8px;
    }

    .banner-slider-dot {
        width: 8px;
        height: 8px;
    }

    .banner-slider-dot.active {
        width: 18px;
    }
}
