/* YouTube Integration Styles */

/* Video Cards */
.video-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

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

.video-thumbnail-container {
    position: relative;
    overflow: hidden;
}

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

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

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-card:hover .play-overlay {
    opacity: 0.9;
}

.play-overlay i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Playlist Cards */
.playlist-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.playlist-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.playlist-thumbnail-container {
    position: relative;
    overflow: hidden;
}

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

.playlist-card:hover .playlist-thumbnail {
    transform: scale(1.03);
}

.playlist-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.video-count {
    font-size: 0.7rem;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

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

.skeleton-video {
    height: 180px;
    margin-bottom: 10px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

/* Statistics Cards */
.stats-card {
    background: linear-gradient(135deg, #ff0000, #ff4500);
    color: white;
    border: none;
    border-radius: 15px;
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: scale(1.02);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Section Headers */
.youtube-section-header {
    position: relative;
    margin-bottom: 2rem;
}

.youtube-section-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, #ff4500);
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-thumbnail,
    .playlist-thumbnail {
        height: 160px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .play-overlay i {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .video-thumbnail,
    .playlist-thumbnail {
        height: 140px;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-number {
        font-size: 1.8rem;
    }
    
    .play-overlay i {
        font-size: 1.5rem !important;
    }
}

/* Dark theme support for sections */
#youtube-section .video-card,
#youtube-section .playlist-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

#youtube-section .card-title,
#youtube-section .card-text {
    color: #333 !important;
}

/* Placeholder thumbnails for fallback content */
.placeholder-thumbnail {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #ff0000, #ff4500);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.playlist-placeholder {
    height: 140px;
}

.placeholder-text {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.placeholder-thumbnail .playlist-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Animation for when videos load */
.video-card,
.playlist-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }
.video-card:nth-child(4) { animation-delay: 0.4s; }
.video-card:nth-child(5) { animation-delay: 0.5s; }
.video-card:nth-child(6) { animation-delay: 0.6s; }

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