/* Mobile Video Carousel Styles */
.mobile-video-carousel {
    width: 100%;
    margin: 20px 0;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Show mobile carousel only on mobile devices */
@media (max-width: 768px) {
    .mobile-video-carousel {
        display: block !important;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-video-carousel {
        display: none !important;
    }
}

.mobile-video-carousel-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-video-carousel-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-video-carousel-title i {
    font-size: 20px;
}

.mobile-video-carousel-nav {
    display: flex;
    gap: 8px;
}

.mobile-video-carousel-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-video-carousel-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.mobile-video-carousel-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mobile-video-carousel-container {
    position: relative;
    overflow: hidden;
    background: #000;
}

.mobile-video-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.mobile-video-card {
    flex: 0 0 100%;
    position: relative;
    background: #000;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-video-card iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 0;
}

.mobile-video-card .video-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.mobile-video-card .video-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.mobile-video-card .video-placeholder h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.mobile-video-card .video-placeholder p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.mobile-video-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: white;
}

.mobile-video-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-video-carousel-indicator.active {
    background: #10b981;
    transform: scale(1.2);
}

.mobile-video-carousel-indicator:hover {
    background: #6b7280;
}

/* Touch/Swipe Support */
.mobile-video-carousel-container {
    touch-action: pan-y;
    user-select: none;
}

.mobile-video-carousel-track {
    cursor: grab;
}

.mobile-video-carousel-track:active {
    cursor: grabbing;
}

/* Loading Animation */
.mobile-video-carousel.loading .mobile-video-carousel-track {
    opacity: 0.7;
}

.mobile-video-carousel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .mobile-video-carousel-header {
        padding: 12px 16px;
    }
    
    .mobile-video-carousel-title {
        font-size: 16px;
    }
    
    .mobile-video-card {
        min-height: 180px;
    }
    
    .mobile-video-card iframe {
        height: 180px;
    }
    
    .mobile-video-card .video-placeholder {
        height: 180px;
        padding: 16px;
    }
    
    .mobile-video-card .video-placeholder i {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .mobile-video-card .video-placeholder h3 {
        font-size: 16px;
    }
    
    .mobile-video-card .video-placeholder p {
        font-size: 13px;
    }
}

/* Desktop - Hide mobile carousel and show desktop grid */
@media (min-width: 769px) {
    .mobile-video-carousel {
        display: none !important;
    }
    
    .desktop-video-grid {
        display: grid !important;
    }
}

/* Mobile - Hide desktop grid and show mobile carousel */
@media (max-width: 768px) {
    .desktop-video-grid {
        display: none !important;
    }
}

/* Tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .mobile-video-card {
        min-height: 220px;
    }
    
    .mobile-video-card iframe {
        height: 220px;
    }
    
    .mobile-video-card .video-placeholder {
        height: 220px;
    }
}
