/**
 * Video Carousel Pro - Estilos
 * @version 1.0.9
 */

/* ==========================================================================
   Prevenir rolagem horizontal
   ========================================================================== */

/* Garantir que o wrapper não cause rolagem horizontal */
.video-carousel-pro-wrapper * {
    box-sizing: border-box;
}

/* ==========================================================================
   Wrapper do Carrossel
   ========================================================================== */

.video-carousel-pro-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

.video-carousel-pro-wrapper .swiper {
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-carousel-pro-wrapper .swiper-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.video-carousel-pro-wrapper .swiper-slide {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   Item de Vídeo
   ========================================================================== */

.vcp-video-item {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.vcp-video-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.vcp-video-item:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* ==========================================================================
   Thumbnail
   ========================================================================== */

.vcp-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* ==========================================================================
   Overlay
   ========================================================================== */

.vcp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.vcp-video-item:hover .vcp-overlay {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* ==========================================================================
   Botão de Play
   ========================================================================== */

.vcp-play-button {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
    pointer-events: none;
}

.vcp-video-item:hover .vcp-play-button {
    transform: scale(1.2);
    opacity: 1;
}

.vcp-play-button svg {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ==========================================================================
   Navegação do Carrossel
   ========================================================================== */

.video-carousel-pro-wrapper .swiper-button-next,
.video-carousel-pro-wrapper .swiper-button-prev {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.video-carousel-pro-wrapper .swiper-button-next.vcp-visible,
.video-carousel-pro-wrapper .swiper-button-prev.vcp-visible {
    opacity: 1;
    pointer-events: auto;
}

.video-carousel-pro-wrapper .swiper-button-next:after,
.video-carousel-pro-wrapper .swiper-button-prev:after {
    font-size: 20px;
}

.video-carousel-pro-wrapper .swiper-button-next.vcp-visible:hover,
.video-carousel-pro-wrapper .swiper-button-prev.vcp-visible:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-carousel-pro-wrapper .swiper-button-next:focus,
.video-carousel-pro-wrapper .swiper-button-prev:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* ==========================================================================
   Responsividade - Tablet
   ========================================================================== */

@media (max-width: 1024px) {
    .video-carousel-pro-wrapper {
        margin: 15px 0;
    }
    
    .video-carousel-pro-wrapper .swiper-button-next,
    .video-carousel-pro-wrapper .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    
    .vcp-play-button svg {
        width: 70px;
        height: 70px;
    }
}

/* ==========================================================================
   Responsividade - Mobile
   ========================================================================== */

@media (max-width: 768px) {
    .video-carousel-pro-wrapper {
        margin: 10px 0;
    }
    
    .video-carousel-pro-wrapper .swiper-button-next,
    .video-carousel-pro-wrapper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .video-carousel-pro-wrapper .swiper-button-next:after,
    .video-carousel-pro-wrapper .swiper-button-prev:after {
        font-size: 18px;
    }
    
    .vcp-play-button svg {
        width: 60px;
        height: 60px;
    }
    
    .vcp-video-item:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 480px) {
    .video-carousel-pro-wrapper .swiper-button-next,
    .video-carousel-pro-wrapper .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .video-carousel-pro-wrapper .swiper-button-next:after,
    .video-carousel-pro-wrapper .swiper-button-prev:after {
        font-size: 16px;
    }
    
    .vcp-play-button svg {
        width: 50px;
        height: 50px;
    }
}

/* ==========================================================================
   Estado Pronto
   ========================================================================== */

.video-carousel-pro-wrapper.vcp-ready .swiper-slide {
    opacity: 1;
}

