/* Videos Page Styles */

.page-header {
    background: white;
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.page-header .container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    text-align: center;
    padding: 0 100px;
}

.page-header .back-link {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.page-header .back-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) translateX(-3px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.page-header .back-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.page-header .back-link:hover i {
    transform: translateX(-2px);
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0 0 1rem 0;
}

.videos-section {
    padding: 60px 20px;
}

.videos-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.video-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Featured Video */
.featured-video {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.video-player {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
}

.video-player iframe {
    border-radius: 10px;
}

.video-info h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.video-info p {
    color: var(--text-color);
    line-height: 1.8;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.video-thumbnail iframe {
    width: 100%;
    height: 100%;
}

.video-details {
    padding: 1.5rem;
}

.video-details h4 {
    color: var(--dark-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.video-subject {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-description {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Channel Info */
.channel-info {
    margin-top: 3rem;
}

.channel-card {
    background: var(--gradient-1);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.channel-card i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.channel-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.channel-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.channel-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.channel-stats div {
    text-align: center;
}

.channel-stats strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.channel-card .btn {
    background: white;
    color: var(--primary-color);
}

.channel-card .btn:hover {
    background: var(--light-color);
    transform: translateY(-2px);
}

/* ===================================
   ENHANCED MOBILE STYLES - VIDEOS
   =================================== */
@media (max-width: 768px) {
    .page-header {
        padding: 20px 15px;
    }

    .page-header .container {
        padding: 0 15px;
        text-align: left;
    }

    .page-header .back-link {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin-bottom: 1rem;
        display: inline-flex;
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .videos-section {
        padding: 30px 15px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .video-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .video-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .featured-video {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .video-player {
        height: 200px;
        margin: 1rem 0;
    }
    
    .video-player iframe {
        height: 100%;
    }

    .video-card {
        border-radius: 12px;
    }
    
    .video-thumbnail {
        height: 180px;
    }

    .video-details {
        padding: 1rem;
    }
    
    .video-details h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .video-subject {
        font-size: 0.85rem;
    }
    
    .video-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Channel Info Mobile */
    .channel-info {
        margin-top: 2rem;
    }
    
    .channel-card {
        padding: 1.25rem;
    }
    
    .channel-avatar {
        width: 60px;
        height: 60px;
    }
    
    .channel-name {
        font-size: 1.1rem;
    }

    .channel-stats {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .channel-stats strong {
        font-size: 1.25rem;
    }
    
    .channel-stats span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .videos-section {
        padding: 20px 10px;
    }

    .video-player {
        height: 160px;
    }
    
    .video-thumbnail {
        height: 150px;
    }

    .filter-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
    }

    .channel-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .channel-card .btn {
        width: 100%;
    }
    
    .video-info h3 {
        font-size: 1.1rem;
    }
    
    .video-info p {
        font-size: 0.85rem;
    }
}
