/**
 * Estilos do Carrossel de Banners
 * Design moderno e responsivo
 */

.banner-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.banner-carousel-container {
    position: relative;
    width: 100%;
    padding-top: 33.33%;
    /* Aspect ratio 3:1 */
    overflow: hidden;
}

.banner-carousel-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.banner-image:hover {
    transform: scale(1.02);
}

/* Navegação */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.banner-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.banner-nav-prev {
    left: 10px;
}

.banner-nav-next {
    right: 10px;
}

/* Indicadores */
.banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.banner-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.banner-indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Responsivo */
@media (max-width: 768px) {
    .banner-carousel-wrapper {
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .banner-nav {
        width: 32px;
        height: 32px;
    }

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

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

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

    .banner-indicators {
        bottom: 10px;
    }

    .banner-indicator {
        width: 6px;
        height: 6px;
    }

    .banner-indicator.active {
        width: 18px;
    }
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* Loading state */
.banner-carousel-loading {
    width: 100%;
    padding-top: 33.33%;
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 16px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}