/* Videos Page - Video Platform Style */

.videos-hero {
    padding: 160px 0 60px;
    background: linear-gradient(180deg, 
        rgba(239, 68, 68, 0.08) 0%, 
        rgba(249, 115, 22, 0.05) 50%, 
        rgba(234, 179, 8, 0.03) 100%
    );
    text-align: center;
    position: relative;
}

.videos-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
}

.videos-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.play-icon-wrapper {
    margin-bottom: 1.5rem;
}

.play-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(239, 68, 68, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 25px 50px rgba(239, 68, 68, 0.5);
        transform: scale(1.05);
    }
}

.video-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.stat-item strong {
    color: var(--text-primary);
    font-size: 1.25rem;
}

.stat-divider {
    color: var(--text-muted);
}

/* Videos Section */
.videos-section {
    padding: 4rem 0 6rem;
}

.videos-categories {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 0.625rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-color: transparent;
    color: white;
}

/* Featured Video */
.featured-video {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 3rem;
}

.video-player {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(0, 0, 0, 0.9));
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.play-btn-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(239, 68, 68, 0.4);
}

.play-btn-large:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.6);
}

.play-text {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.video-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.video-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-category {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f97316;
    margin-bottom: 1rem;
    width: fit-content;
}

.video-title-large {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.video-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.video-meta-large {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.instructor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.instructor-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 50%;
}

.video-views {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.video-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
    position: relative;
}

.video-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1.25rem;
    background: linear-gradient(45deg, #f97316, #ef4444, #ec4899, #f59e0b, #f97316);
    background-size: 300% 300%;
    animation: gradient-rotate 3s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:nth-child(1)::before {
    background: linear-gradient(45deg, #f97316, #ef4444, #f59e0b, #f97316);
}

.video-card:nth-child(2)::before {
    background: linear-gradient(45deg, #ef4444, #ec4899, #f472b6, #ef4444);
}

.video-card:nth-child(3)::before {
    background: linear-gradient(45deg, #f59e0b, #f97316, #ef4444, #f59e0b);
}

.video-card:nth-child(4)::before {
    background: linear-gradient(45deg, #ec4899, #f472b6, #fb7185, #ec4899);
}

.video-card:nth-child(5)::before {
    background: linear-gradient(45deg, #f97316, #f59e0b, #eab308, #f97316);
}

.video-card:nth-child(6)::before {
    background: linear-gradient(45deg, #ef4444, #f97316, #f59e0b, #ef4444);
}

.video-card:hover {
    transform: translateY(-10px) rotateX(3deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 60px rgba(239, 68, 68, 0.2);
}

.video-card:hover::before {
    opacity: 1;
}

/* Shine effect */
.video-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.8s ease;
    pointer-events: none;
    z-index: 1;
}

.video-card:hover::after {
    transform: translateX(100%) rotate(45deg);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(0, 0, 0, 0.8));
    overflow: hidden;
}

.video-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumb-placeholder::after {
    content: '🎬';
    font-size: 2.5rem;
    opacity: 0.3;
}

.video-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

.video-length {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.play-btn-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover .play-btn-small {
    opacity: 1;
}

.video-details {
    padding: 1rem;
}

.video-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.video-author {
    font-size: 0.8125rem;
    color: #f97316;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.video-stats-row {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-video {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .video-title-large {
        font-size: 1.25rem;
    }
}