/* Video Tabs Container */
.video-tabs-container {
    margin-top: 2rem;
}

/* Mobile Video Grid */
.mobile-video-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-video-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.mobile-video-item.active {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary);
}

/* Mobile video thumbnail styling */
.mobile-video-item .video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.mobile-video-item .video-thumbnail img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mobile-video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.mobile-video-item .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-video-item:hover .play-overlay {
    opacity: 1;
}

.mobile-video-item .play-overlay i {
    font-size: 1rem;
    margin-left: 2px; /* Slight offset for play icon */
}

/* Video Embed Responsive */
.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Desktop Tabs */
.tabs-content {
    margin-bottom: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.main-video-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Video Tabs Menu */
.tabs-menu {
    margin-top: 2rem;
}

.video-tabs-row {
    gap: 1rem;
    justify-content: center;
}

.tab-link {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.tab-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.video-thumbnail img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tab-link:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-link:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 1rem;
    margin-left: 2px; /* Slight offset for play icon */
}

/* Video Info */
.video-info h6 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.video-duration {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Video Slider - Desktop */
.video-slider-container {
    position: relative;
    margin-top: 2rem;
    padding: 0 50px;
}

.video-slider-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.video-slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: max-content;
    padding: 10px 0;
    will-change: transform;
}

.video-slide {
    flex: 0 0 auto;
    width: clamp(250px, 25vw, 320px);
    min-width: 250px;
}

.video-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.video-slider-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.video-slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.video-slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.video-slider-btn:disabled:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    transform: translateY(-50%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.video-slider-prev {
    left: 0;
}

.video-slider-next {
    right: 0;
}

.video-slider-btn i {
    font-size: 16px;
    margin-left: 1px;
}

.video-slider-next i {
    margin-left: 2px;
}

/* Indicateurs de position */
.video-slider-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    padding: 10px 0;
}

.video-slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.video-slider-indicator.active {
    background: var(--primary);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary-rgba-50);
}

.video-slider-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Amélioration des cartes vidéo dans le slider */
.video-slide .video-card {
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.video-slide .video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-slide .video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-slide .video-card:hover::before {
    opacity: 1;
}

/* Animation d'entrée */
.video-slide {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive amélioré */
@media (max-width: 1200px) {
    .video-slider-container {
        padding: 0 40px;
    }
    
    .video-slide {
        width: clamp(220px, 30vw, 280px);
    }
}

@media (max-width: 768px) {
    .video-slider-container {
        padding: 0 30px;
    }
    
    .video-slide {
        width: clamp(200px, 40vw, 250px);
    }
    
    .video-slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .video-slider-btn i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .video-slider-container {
        padding: 0 20px;
    }
    
    .video-slide {
        width: clamp(180px, 50vw, 220px);
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .video-tabs-row .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767px) {
    .video-tabs-row .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
