/* Vaal River Video Gallery - Frontend Styles */

.vaal-video-gallery {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* Carousel Styles */
.video-carousel {
    margin: 0 auto;
}

.video-item {
    padding: 15px;
    outline: none;
}

.video-thumbnail-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-thumbnail-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.video-thumbnail-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.video-thumbnail-placeholder .dashicons {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.8);
    width: 80px;
    height: 80px;
}

/* Play Button Overlay */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.video-thumbnail-wrapper:hover .play-button-overlay {
    background: rgba(0, 0, 0, 0.85);
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.play-icon {
    color: white;
    font-size: 32px;
    margin-left: 5px;
}

/* Video Description */
.video-description {
    margin-top: 15px;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    min-height: 50px;
}

/* Slick Carousel Customization */
.video-carousel .slick-prev,
.video-carousel .slick-next {
    width: 50px;
    height: 50px;
    z-index: 10;
}

.video-carousel .slick-prev {
    left: -60px;
}

.video-carousel .slick-next {
    right: -60px;
}

.video-carousel .slick-prev:before,
.video-carousel .slick-next:before {
    font-size: 50px;
    opacity: 0.75;
    color: #667eea;
}

.video-carousel .slick-prev:hover:before,
.video-carousel .slick-next:hover:before {
    opacity: 1;
}

.video-carousel .slick-dots {
    bottom: -45px;
}

.video-carousel .slick-dots li button:before {
    font-size: 12px;
    color: #667eea;
}

.video-carousel .slick-dots li.slick-active button:before {
    color: #764ba2;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 1000px;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.video-modal-close:hover,
.video-modal-close:focus {
    color: #bbb;
}

.video-modal-body {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

#vaalVideoPlayer {
    width: 100%;
    height: auto;
    display: block;
    outline: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .vaal-video-gallery {
        padding: 10px;
    }
    
    .video-carousel .slick-prev {
        left: 10px;
    }
    
    .video-carousel .slick-next {
        right: 10px;
    }
    
    .video-carousel .slick-prev,
    .video-carousel .slick-next {
        width: 40px;
        height: 40px;
    }
    
    .video-carousel .slick-prev:before,
    .video-carousel .slick-next:before {
        font-size: 40px;
    }
    
    .play-button-overlay {
        width: 60px;
        height: 60px;
    }
    
    .play-icon {
        font-size: 24px;
    }
    
    .video-modal-content {
        margin: 15% auto;
        width: 95%;
    }
    
    .video-modal-close {
        font-size: 30px;
        top: -35px;
    }
}

@media screen and (max-width: 480px) {
    .video-description {
        font-size: 13px;
        min-height: 40px;
    }
    
    .video-item {
        padding: 10px;
    }
}
