/**
 * ========================================
 * SLIDESHOW CONTROLS - ESTILOS
 * ========================================
 * 
 * Estilos para os controles do slideshow do hero
 * Inclui botões de navegação, indicadores e play/pause
 */

/* ========================================
   CONTROLES DO SLIDESHOW
   ======================================== */

.slideshow-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-section:hover .slideshow-controls {
    opacity: 1;
}

/* ========================================
   BOTÕES DE NAVEGAÇÃO
   ======================================== */

.slideshow-nav {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 18px;
}

.slideshow-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slideshow-nav:active {
    transform: scale(0.95);
}

.slideshow-prev {
    margin-right: 10px;
}

.slideshow-next {
    margin-left: 10px;
}

/* ========================================
   INDICADORES
   ======================================== */

.slideshow-indicators {
    display: flex;
    gap: 12px;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.indicator.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ========================================
   BOTÃO PLAY/PAUSE
   ======================================== */

.slideshow-play-pause {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 16px;
    margin-left: 10px;
}

.slideshow-play-pause:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slideshow-play-pause:active {
    transform: scale(0.95);
}

.slideshow-play-pause.playing i::before {
    content: "\f04c"; /* pause icon */
}

.slideshow-play-pause.paused i::before {
    content: "\f04b"; /* play icon */
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 768px) {
    .slideshow-controls {
        bottom: 20px;
        gap: 15px;
    }
    
    .slideshow-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slideshow-play-pause {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .slideshow-indicators {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .slideshow-controls {
        bottom: 15px;
        gap: 10px;
    }
    
    .slideshow-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .slideshow-play-pause {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .slideshow-indicators {
        gap: 6px;
    }
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

.slideshow-controls {
    animation: fadeInUp 0.6s ease-out 1s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========================================
   ESTADOS ESPECIAIS
   ======================================== */

.hero-section.loading .slideshow-controls {
    opacity: 0.5;
    pointer-events: none;
}

.hero-section.loading .slideshow-nav,
.hero-section.loading .slideshow-play-pause {
    cursor: not-allowed;
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */

.slideshow-nav:focus,
.slideshow-play-pause:focus,
.indicator:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.slideshow-nav:focus-visible,
.slideshow-play-pause:focus-visible,
.indicator:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ========================================
   TEMA ESCURO (se necessário)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .slideshow-nav,
    .slideshow-play-pause {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .slideshow-nav:hover,
    .slideshow-play-pause:hover {
        background: rgba(0, 0, 0, 0.5);
        border-color: rgba(255, 255, 255, 0.6);
    }
}
