/* Video Slider Styles - Figma Design Implementation */

.video-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header Section */
.slider-header {
    text-align: center;
    margin-bottom: 40px;
}

.slider-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.slider-subtitle {
    font-size: 1.1rem;
    color: #718096;
    font-weight: 400;
    margin: 0;
}

/* Main Video Container */
.main-video-container {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    aspect-ratio: 16/9;
    max-height: 500px;
}

#mainVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

/* Play Button Overlay - Matching Figma Design */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3748;
    gap: 5px;
}

.video-play-button.show {
    opacity: 1;
    visibility: visible;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

.video-play-button .play-icon-triangle {
    width: 0;
    height: 0;
    border-left: 8px solid #2d3748;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left: 2px;
}

/* Video Info Section */
.video-info {
    padding: 25px 30px;
    background: white;
    margin-top: -20px;
    border-radius: 0 0 20px 20px;
    position: relative;
    z-index: 5;
}

.video-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.3;
}

.video-info #videoDescription {
    color: #718096;
    line-height: 1.6;
    font-size: 1rem;
}

/* Video Slider Wrapper */
.video-slider-wrapper {
    position: relative;
}

.videoSlider {
    padding: 0;
    overflow: visible;
}

/* Navigation Section - 20% width */
.slider-navigation {
    flex: 0 0 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    height: fit-content;
    align-self: flex-end;
}

.nav-button {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.nav-button:hover:not(:disabled) {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    transform: scale(1.1);
}

.nav-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.video-counter {
    text-align: center;
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

.video-counter .separator {
    margin: 0 2px;
    opacity: 0.5;
}

.autoplay-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.autoplay-toggle.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.autoplay-toggle:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.autoplay-toggle.active:hover {
    background: #2563eb;
}

.videoSlider .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.video-slide {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
    transform: scale(0.95);
    flex-shrink: 0;
}

.video-slide:hover,
.video-slide.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.video-slide.swiper-slide-active {
    z-index: 2;
}

/* Slide Content */
.slide-content {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    aspect-ratio: 16/9;
    width: 100%; /* Ensure slides don't exceed container */
    max-width: 100%; /* Strict width limit */
    box-sizing: border-box; /* Include borders in width */
}

.slide-content:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

.video-slide.swiper-slide-active .slide-content {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
    border: 2px solid #3b82f6;
}

.slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block; /* Remove any inline spacing */
}

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

/* Video Placeholder */
.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Play Button on Thumbnails - Matching Figma */
.slide-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 30px;
    background: white;
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2d3748;
    gap: 3px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 3;
}

.slide-play-button .play-icon-triangle {
    width: 0;
    height: 0;
    border-left: 6px solid #2d3748;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    margin-left: 1px;
}

.slide-content:hover .slide-play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Slide Title */
.slide-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 15px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-content:hover .slide-title {
    opacity: 1;
}

/* Remove old navigation arrows */
.swiper-button-next,
.swiper-button-prev {
    display: none;
}

/* Loading State */
.video-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f7fafc;
    border-radius: 20px;
    color: #718096;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .slider-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .video-slider-wrapper {
        flex: none;
        width: 100%;
    }
    
    .slider-navigation {
        flex: none;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        align-self: center;
        padding: 15px;
    }
    
    .nav-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .video-slider-container {
        padding: 30px 15px;
    }
    
    .slider-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .slider-subtitle {
        font-size: 1rem;
    }
    
    .main-video-container {
        margin-bottom: 25px;
        border-radius: 16px;
    }
    
    #mainVideoPlayer,
    #mainVideoPlayer iframe {
        border-radius: 16px;
    }
    
    .video-info {
        padding: 20px;
        border-radius: 0 0 16px 16px;
    }
    
    .video-info h3 {
        font-size: 1.3rem;
    }
    
    .video-play-button {
        width: 60px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .slide-play-button {
        width: 45px;
        height: 25px;
        font-size: 0.7rem;
    }
    
    .slider-navigation {
        padding: 15px;
        gap: 10px;
    }
    
    .nav-button {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .videoSlider {
        padding: 0 20px;
    }
    
    .slider-title {
        font-size: 1.8rem;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-info h3 {
        font-size: 1.2rem;
    }
    
    .main-video-container {
        border-radius: 12px;
    }
    
    #mainVideo {
        border-radius: 12px;
    }
    
    .video-info {
        border-radius: 0 0 12px 12px;
    }
    
    .slide-content {
        border-radius: 12px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
        margin-top: -17px;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 12px;
    }
}