/**
 * Slideshow Clean - CSS Moderno e Minimalista
 * Design limpo com transições suaves e efeitos elegantes
 */

/* Container principal */
.slideshow-clean-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Wrapper com proporção 16:9 */
.slideshow-clean-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* Slides */
.slideshow-clean-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.slideshow-clean-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Imagens */
.slideshow-clean-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s ease;
}

.slideshow-clean-slide img:hover {
    transform: scale(1.02);
}

/* Setas de navegação - Design minimalista */
.slideshow-clean-wrapper .slideshow-clean-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    opacity: 0 !important;
}

.slideshow-clean-wrapper:hover .slideshow-clean-nav {
    opacity: 1 !important;
}

.slideshow-clean-wrapper .slideshow-clean-nav:hover {
    background: #fff !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

.slideshow-clean-wrapper .slideshow-clean-nav:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.slideshow-clean-wrapper .slideshow-clean-prev {
    left: 1.5rem !important;
}

.slideshow-clean-wrapper .slideshow-clean-next {
    right: 1.5rem !important;
}

.slideshow-clean-wrapper .slideshow-clean-nav svg {
    width: 26px !important;
    height: 26px !important;
    display: block !important;
    stroke-width: 2.5 !important;
}

/* Indicadores de pontos - Design minimalista moderno */
.slideshow-clean-wrapper .slideshow-clean-dots {
    position: absolute !important;
    bottom: 2rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 24px !important;
    z-index: 10 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.slideshow-clean-wrapper .slideshow-clean-dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.slideshow-clean-wrapper .slideshow-clean-dot:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.3) !important;
}

.slideshow-clean-wrapper .slideshow-clean-dot.active {
    width: 24px !important;
    background: #fff !important;
    border-radius: 12px !important;
}

/* Contador de slides - Elemento moderno adicional */
.slideshow-clean-wrapper .slideshow-clean-counter {
    position: absolute !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    padding: 8px 16px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 20px !important;
    z-index: 10 !important;
    letter-spacing: 0.5px !important;
}

/* Modal de zoom - Design moderno */
.slideshow-clean-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.slideshow-clean-zoom-modal.active {
    display: flex;
}

.slideshow-clean-zoom-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.slideshow-clean-zoom-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsividade para tablets */
@media (max-width: 768px) {
    .slideshow-clean-wrapper {
        border-radius: 8px;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-nav {
        width: 40px !important;
        height: 40px !important;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-nav svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-prev {
        left: 1rem !important;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-next {
        right: 1rem !important;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-dots {
        bottom: 1.5rem !important;
        gap: 6px !important;
        padding: 8px 12px !important;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-dot {
        width: 6px !important;
        height: 6px !important;
        min-width: 6px !important;
        min-height: 6px !important;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-dot.active {
        width: 20px !important;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-counter {
        top: 1rem !important;
        right: 1rem !important;
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
}

/* Responsividade para mobile */
@media (max-width: 480px) {
    .slideshow-clean-wrapper {
        border-radius: 6px;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-nav {
        width: 36px !important;
        height: 36px !important;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-nav svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-prev {
        left: 0.5rem !important;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-next {
        right: 0.5rem !important;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-dots {
        bottom: 1rem !important;
        gap: 5px !important;
        padding: 6px 10px !important;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-dot {
        width: 5px !important;
        height: 5px !important;
        min-width: 5px !important;
        min-height: 5px !important;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-dot.active {
        width: 16px !important;
    }
    
    .slideshow-clean-wrapper .slideshow-clean-counter {
        top: 0.75rem !important;
        right: 0.75rem !important;
        font-size: 11px !important;
        padding: 5px 10px !important;
    }
    
    .slideshow-clean-zoom-content {
        max-width: 95%;
        max-height: 95%;
    }
}

/* Acessibilidade */
.slideshow-clean-container:focus {
    outline: 2px solid #667eea;
    outline-offset: 4px;
}

.slideshow-clean-wrapper .slideshow-clean-nav:focus,
.slideshow-clean-wrapper .slideshow-clean-dot:focus {
    outline: 2px solid #667eea !important;
    outline-offset: 2px !important;
}

/* Prevenção de seleção */
.slideshow-clean-container * {
    -webkit-tap-highlight-color: transparent;
}
