/* Video Carousel Block Styles */

/* Animation classes */
.animate-slide-up {
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
}

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

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Video item hover effects */
.video-item {
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Play button animations */
.video-item .group:hover .w-16 {
    transform: scale(1.1);
}

/* Slider layout styles */
.video-slider-container {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

.video-slider-container::-webkit-scrollbar {
    height: 8px;
}

.video-slider-container::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.3);
    border-radius: 4px;
}

.video-slider-container::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.6);
    border-radius: 4px;
}

.video-slider-container::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.8);
}

/* Aspect ratio utilities */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Button hover effects */
.slider-prev:hover,
.slider-next:hover {
    transform: scale(1.05);
}

/* Editor preview styles */
.wp-block-venari-video-carousel {
    background: linear-gradient(to bottom, #1f2937, #000);
    color: white;
    padding: 3rem 2rem;
    border-radius: 8px;
}

.wp-block-venari-video-carousel h2,
.wp-block-venari-video-carousel h3,
.wp-block-venari-video-carousel p {
    color: white !important;
}

/* Disable animations in editor for better UX */
.wp-block-editor .animate-slide-up,
.wp-block-editor .animate-on-scroll {
    animation: none;
    opacity: 1;
    transform: none;
}

/* Grid responsive adjustments for editor */
@media (max-width: 1024px) {
    .wp-block-venari-video-carousel .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 1rem !important;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .video-slider-container {
        gap: 1rem;
    }
    
    .video-slider-container .flex-shrink-0 {
        width: 280px;
    }
    
    .wp-block-venari-video-carousel h2 {
        font-size: 2rem !important;
    }
}

/* Thumbnail loading states */
.video-item img {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.video-item img[src] {
    animation: none;
    background: none;
}

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

/* Empty state styling */
.wp-block-venari-video-carousel .text-center svg {
    opacity: 0.6;
}

/* Focus states for accessibility */
.video-item:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.slider-prev:focus,
.slider-next:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
} 