/**
 * YouTube Videos Styles
 * Styling for computer programming videos section
 */

/* ============================================
   YOUTUBE VIDEOS SECTION
   ============================================ */

.youtube-videos-section {
    padding: 4rem 0; background: var(--light-bg); }

/* Channel Header */
.channel-header {
    border-radius: 12px; margin-bottom: 3rem; color: white; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }

.channel-avatar {
    width: 80px; height: 80px; font-size: 2.5rem; flex-shrink: 0; }

.channel-details {
    flex: 1; }

.channel-name {
    margin: 0 0 0.5rem; font-weight: 700; }

.channel-handle {
    opacity: 0.9; }

.subscribe-btn,
.visit-channel-btn {
    text-decoration: none; transition: all 0.3s ease; }

.subscribe-btn:hover {
    transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }

.visit-channel-btn {
    border: 2px solid white; }

.youtube-videos-section .section-title {
    margin-top: 2rem; }

.category-filter-btn {
    cursor: pointer; }

.category-filter-btn:hover {
    border-color: var(--primary-color); }

/* ============================================
   YOUTUBE VIDEO CARDS
   ============================================ */

.youtube-videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.youtube-video-card {
    overflow: hidden; }

.video-thumbnail-container {
    position: relative; padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-thumbnail-container img {
    top: 0; left: 0; object-fit: cover; }

.play-overlay {
    z-index: 2; }

.video-duration-badge {
    bottom: 10px; right: 10px; }

.video-title {
    line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ============================================
   YOUTUBE VIDEO MODAL
   ============================================ */

.youtube-video-modal {
    animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.youtube-modal-content {
    max-width: 1200px; }

@keyframes scaleIn {
}

.youtube-modal-header {
    border-bottom: 1px solid #333; }

.youtube-modal-footer {
    border-top: 1px solid #333; }

/* ============================================
   LOAD MORE BUTTON
   ============================================ */

.videos-load-more {
    text-align: center; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .channel-header {
        flex-direction: column; }

    .video-category-filters {
        overflow-x: auto; padding-bottom: 0.5rem; }

    .category-filter-btn {
        white-space: nowrap; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@media (max-width: 768px) {
}


/* Focus styles for accessibility - Auto-added */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #0066cc; outline-offset: 2px; }
