/**
 * Video Slider Frontend Styles
 */

/* Reset */
.wcpe-video-slider,
.wcpe-video-slider * {
    box-sizing: border-box;
}

.wcpe-video-slider h1,
.wcpe-video-slider h2,
.wcpe-video-slider h3,
.wcpe-video-slider p {
    margin: 0;
    padding: 0;
}

/* Main Container */
.wcpe-video-slider {
    width: 100%;
    max-width: 100%;
    margin: -50px 0;
    padding: 0;
    text-align: center;
    overflow: hidden;
    padding-top:30px;
    padding-bottom:30px;
}

/* Shoptimizer theme compatibility */
.theme-flavor-flavor .wcpe-video-slider,
.flavor-flavor .wcpe-video-slider {
    margin: -50px 0;
}

/* Title */
.wcpe-vs-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Subtitle */
.wcpe-vs-subtitle {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 25px !important;
}

/* Slider Container */
.wcpe-vs-slider-container {
    position: relative;
    padding: 0 50px;
}

/* Swiper */
.wcpe-vs-swiper {
    width: 100%;
    overflow: visible;
}

.wcpe-vs-swiper .swiper-wrapper {
    align-items: stretch;
}

/* Slide */
.wcpe-vs-slide {
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

/* Video Wrapper */
.wcpe-vs-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* 9:16 aspect ratio for vertical video */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.wcpe-vs-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Mute Button */
.wcpe-vs-mute-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.wcpe-vs-mute-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.wcpe-vs-mute-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.wcpe-vs-mute-btn svg {
    width: 100%;
    height: 100%;
    color: #fff;
}

.wcpe-vs-icon-unmuted {
    display: none;
}

.wcpe-vs-mute-btn.unmuted .wcpe-vs-icon-muted {
    display: none;
}

.wcpe-vs-mute-btn.unmuted .wcpe-vs-icon-unmuted {
    display: block;
}

/* Navigation Buttons */
.wcpe-vs-nav-prev,
.wcpe-vs-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
}

.wcpe-vs-nav-prev {
    left: 0;
}

.wcpe-vs-nav-next {
    right: 0;
}

.wcpe-vs-nav-prev:hover,
.wcpe-vs-nav-next:hover {
    background: #f5a623;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wcpe-vs-nav-prev:hover svg,
.wcpe-vs-nav-next:hover svg {
    color: #fff;
}

.wcpe-vs-nav-prev svg,
.wcpe-vs-nav-next svg {
    width: 24px;
    height: 24px;
    color: #333;
    transition: color 0.3s ease;
}

.wcpe-vs-nav-prev.swiper-button-disabled,
.wcpe-vs-nav-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.wcpe-vs-nav-prev.swiper-button-disabled:hover,
.wcpe-vs-nav-next.swiper-button-disabled:hover {
    background: #fff;
}

.wcpe-vs-nav-prev.swiper-button-disabled:hover svg,
.wcpe-vs-nav-next.swiper-button-disabled:hover svg {
    color: #333;
}

/* Pagination */
.wcpe-vs-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.wcpe-vs-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ddd;
    opacity: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcpe-vs-pagination .swiper-pagination-bullet-active {
    background: #f5a623;
    transform: scale(1.2);
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .wcpe-vs-slider-container {
        padding: 0 45px;
    }
}

@media screen and (max-width: 768px) {
    .wcpe-video-slider {
        margin: 30px 0;
    }
    
    .wcpe-vs-title {
        font-size: 22px;
    }
    
    .wcpe-vs-subtitle {
        font-size: 14px;
    }
    
    .wcpe-vs-slider-container {
        padding: 0 35px;
    }
    
    .wcpe-vs-nav-prev,
    .wcpe-vs-nav-next {
        width: 35px;
        height: 35px;
    }
    
    .wcpe-vs-nav-prev svg,
    .wcpe-vs-nav-next svg {
        width: 20px;
        height: 20px;
    }
    
    .wcpe-vs-mute-btn {
        width: 38px;
        height: 38px;
        bottom: 10px;
        right: 10px;
    }
}

@media screen and (max-width: 480px) {
    .wcpe-vs-title {
        font-size: 18px;
        letter-spacing: 0.5px;
    }
    
    .wcpe-vs-subtitle {
        font-size: 12px;
    }
    
    .wcpe-vs-slider-container {
        padding: 0 30px;
    }
    
    .wcpe-vs-nav-prev,
    .wcpe-vs-nav-next {
        width: 30px;
        height: 30px;
    }
    
    .wcpe-vs-nav-prev svg,
    .wcpe-vs-nav-next svg {
        width: 18px;
        height: 18px;
    }
}
