/**
 * IPDSA Banner Slider - Estilos
 * Cores: Azul #005d86 | Laranja #f89b1e
 * Fonte: Montserrat
 */

/* ============================================
   WRAPPER & CONTAINER
   ============================================ */

.ipdsa-banner-slider-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0 80px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ipdsa-banner-container {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    overflow: visible;
}

/* ============================================
   SLIDER
   ============================================ */

.ipdsa-banner-slider {
    position: relative !important;
    width: 100% !important;
    height: 500px !important;
    overflow: hidden !important;
    background: #e8e8e8 !important;
}

.ipdsa-banner-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.6s ease-in-out, visibility 0s linear 0.6s !important;
    z-index: 1 !important;
}

.ipdsa-banner-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.6s ease-in-out, visibility 0s linear 0s !important;
    z-index: 2 !important;
}

/* Picture element for responsive images */
.ipdsa-banner-picture {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.ipdsa-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    min-height: 100%;
    min-width: 100%;
    /* Garante que a imagem sempre preencha todo o espaço */
    flex-shrink: 0;
}

.ipdsa-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

/* ============================================
   NAVIGATION ARROWS
   ============================================ */

.ipdsa-banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: opacity 0.3s ease;
    z-index: 10;
    opacity: 0.7;
}

.ipdsa-banner-nav:hover {
    opacity: 1;
}

.ipdsa-banner-nav:active {
    opacity: 0.5;
}

.ipdsa-banner-nav.prev {
    left: -65px;
}

.ipdsa-banner-nav.next {
    right: -65px;
}

.ipdsa-banner-nav svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ============================================
   INDICATORS (Barra Laranja com Dots Retangulares)
   ============================================ */

.ipdsa-banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 25px;
    align-items: center;
    padding: 10px 20px;
    background: transparent;
    border-radius: 0px;
    z-index: 10;
    box-shadow: none;
}

.ipdsa-banner-dot {
    width: 100px;
    height: 8px;
    border-radius: 0px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ipdsa-banner-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.ipdsa-banner-dot.active {
    background: #f89b1e;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.ipdsa-banners-empty {
    text-align: center;
    padding: 100px 20px;
    background: #f5f5f5;
    color: #666;
    font-size: 16px;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.ipdsa-banner-nav:focus {
    outline: 2px solid white;
    outline-offset: 2px;
    opacity: 1;
}

.ipdsa-banner-dot:focus {
    background: #f89b1e;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Desktop Grande (1600px+) - Banner em boxed */
@media (min-width: 1600px) {
    .ipdsa-banner-slider {
        height: 740px;
        border-radius: 8px;
    }
}

/* Desktop (1200px - 1599px) */
@media (max-width: 1599px) {
    .ipdsa-banner-slider {
        height: 450px;
    }
}

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
    .ipdsa-banner-slider-wrapper {
        padding: 0 70px;
    }

    .ipdsa-banner-slider {
        height: 400px;
    }

    .ipdsa-banner-nav {
        width: 45px;
        height: 45px;
    }

    .ipdsa-banner-nav.prev {
        left: -55px;
    }

    .ipdsa-banner-nav.next {
        right: -55px;
    }

    .ipdsa-banner-nav svg {
        width: 28px;
        height: 28px;
    }

    .ipdsa-banner-indicators {
        bottom: 20px;
        padding: 8px 16px;
        gap: 6px;
    }

    .ipdsa-banner-dot {
        width: 35px;
        height: 7px;
    }
}

/* Tablet Portrait (768px - 991px) - Full Width */
@media (max-width: 991px) {
    .ipdsa-banner-slider-wrapper {
        padding: 0;
    }

    .ipdsa-banner-container {
        overflow: hidden;
    }

    .ipdsa-banner-slider {
        height: 350px;
        min-height: 250px;
    }

    .ipdsa-banner-picture {
        overflow: hidden;
    }

    .ipdsa-banner-image {
        object-fit: cover;
        object-position: center center;
    }

    .ipdsa-banner-nav {
        width: 40px;
        height: 40px;
    }

    .ipdsa-banner-nav.prev {
        left: 10px;
    }

    .ipdsa-banner-nav.next {
        right: 10px;
    }

    .ipdsa-banner-nav svg {
        width: 24px;
        height: 24px;
    }
}

/* Mobile (até 767px) - Full Width */
@media (max-width: 767px) {
    .ipdsa-banner-slider-wrapper {
        margin: 0;
    }

    .ipdsa-banner-slider {
        height: 280px;
        min-height: 200px;
        border-radius: 0;
    }

    .ipdsa-banner-picture {
        overflow: hidden;
    }

    .ipdsa-banner-image {
        object-fit: cover;
        object-position: center center;
    }

    .ipdsa-banner-nav {
        width: 35px;
        height: 35px;
    }

    .ipdsa-banner-nav.prev {
        left: 8px;
    }

    .ipdsa-banner-nav.next {
        right: 8px;
    }

    .ipdsa-banner-nav svg {
        width: 22px;
        height: 22px;
    }

    .ipdsa-banner-indicators {
        bottom: 15px;
        padding: 7px 14px;
        gap: 5px;
    }

    .ipdsa-banner-dot {
        width: 30px;
        height: 6px;
    }
}

/* Mobile Pequeno (até 480px) */
@media (max-width: 480px) {
    .ipdsa-banner-slider {
        height: 220px;
        min-height: 180px;
    }

    .ipdsa-banner-image {
        object-fit: cover;
    }

    .ipdsa-banner-nav {
        width: 30px;
        height: 30px;
    }

    .ipdsa-banner-nav.prev {
        left: 5px;
    }

    .ipdsa-banner-nav.next {
        right: 5px;
    }

    .ipdsa-banner-nav svg {
        width: 20px;
        height: 20px;
    }
}

/* Mobile Extra Pequeno (até 360px) */
@media (max-width: 360px) {
    .ipdsa-banner-slider {
        height: 200px;
    }

    .ipdsa-banner-indicators {
        padding: 6px 12px;
        gap: 4px;
    }

    .ipdsa-banner-dot {
        width: 25px;
        height: 5px;
    }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ipdsa-banner-slide.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.ipdsa-banner-slide.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .ipdsa-banner-slide,
    .ipdsa-banner-nav,
    .ipdsa-banner-dot {
        transition: none;
        animation: none;
    }

    .ipdsa-banner-slide.active {
        opacity: 1;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */

.ipdsa-banner-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #e8e8e8 25%, #f0f0f0 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    z-index: 0;
}

.ipdsa-banner-slider.loaded::before {
    display: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

.ipdsa-banner-slide {
    position: relative;
}

.ipdsa-banner-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.ipdsa-banner-slide:hover::after {
    background: rgba(0, 0, 0, 0.1);
}
