/* Video Gallery Styles */

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 193, 7, 0.1));
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.gallery-header h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.video-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 250px);
    overflow: hidden;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 16px;
    padding: 20px;
}

.video-carousel {
    display: flex;
    gap: 30px;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    scroll-behavior: smooth;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
}

/* Hide scrollbar but keep functionality */
.video-carousel::-webkit-scrollbar {
    display: none;
}

.video-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.video-item {
    flex: 0 0 calc(100% - 40px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.video-info {
    flex-shrink: 0;
    text-align: center;
    padding: 15px;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.video-info h3 {
    color: #ff6b6b;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.video-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.4;
}

.video-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.play-overlay.hidden {
    display: none;
}

.play-icon {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
}

.play-overlay:hover .play-icon {
    transform: scale(1.1);
    color: #ff6b6b;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #fff;
}

.nav-arrow:hover {
    background: rgba(255, 107, 107, 0.4);
    border-color: rgba(255, 107, 107, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow-left {
    left: 20px;
}

.nav-arrow-right {
    right: 20px;
}

.nav-arrow svg {
    width: 24px;
    height: 24px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.indicator-dot.active {
    background: #ff6b6b;
    width: 30px;
    border-radius: 5px;
}

/* Menu Item Active State */
.menu-item.active {
    background: rgba(255, 107, 107, 0.2);
    border-left: 3px solid #ff6b6b;
}

/* Thumbnail Styles */
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-wrapper.playing .video-thumbnail {
    display: none;
}

.video-wrapper.playing .play-overlay {
    display: none;
}

/* Loading State */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff6b6b;
    font-size: 1.2rem;
    display: none;
}

.video-wrapper.loading .video-loading {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-container {
        height: calc(100vh - 200px);
        padding: 10px;
    }

    .video-carousel {
        gap: 15px;
    }

    .video-info h3 {
        font-size: 1.2rem;
    }

    .video-info p {
        font-size: 0.9rem;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
    }

    .nav-arrow-left {
        left: 10px;
    }

    .nav-arrow-right {
        right: 10px;
    }

    .play-icon {
        width: 60px;
        height: 60px;
    }
}

/* Smooth Scrolling */
@supports (scroll-snap-type: x mandatory) {
    .video-carousel {
        scroll-snap-type: x mandatory;
        scroll-padding: 20px;
    }

    .video-item {
        scroll-snap-align: center;
    }
}