/* Video Gallery Styles - Recontastic Guitar Store Collection */

.video-gallery-section {
    padding: 8rem 0;
    background: var(--dark-bg);
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.video-thumbnail-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--darker-bg);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-gallery-item:hover .play-button {
    transform: scale(1);
}

.play-button i {
    font-size: 2rem;
    color: white;
    margin-left: 4px;
}

.video-duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.9);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Video Modal Player */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.video-modal.show {
    display: flex;
}

.video-modal-container {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    z-index: 10000;
    animation: videoModalZoomIn 0.3s ease;
}

@keyframes videoModalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.video-modal-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--border-color);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.video-modal-close:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: rotate(90deg) scale(1.1);
}

.video-modal-info {
    padding: 2rem;
    background: var(--card-bg);
}

.video-modal-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.video-modal-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Loading Skeleton */
.video-skeleton {
    background: linear-gradient(90deg, var(--card-bg) 25%, var(--border-color) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Load More Button */
.load-more-videos-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto;
    padding: 1rem 3rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-videos-btn:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.load-more-videos-btn i {
    transition: transform 0.3s ease;
}

.load-more-videos-btn:hover i {
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .video-gallery-section {
        padding: 5rem 0;
    }
    
    .video-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-info h3 {
        font-size: 1rem;
    }
    
    .video-info p {
        font-size: 0.85rem;
    }
    
    .load-more-videos-btn {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }
    
    .video-modal-container {
        width: 95vw;
    }
    
    .video-modal-close {
        top: -50px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .video-modal-info {
        padding: 1.5rem;
    }
    
    .video-modal-info h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .video-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 1.5rem;
    }
    
    .video-modal-close {
        top: 10px;
        right: 10px;
    }
}