/* ========================================
   DDI Akademi - Lento TV Styles
   ======================================== */

/* YouTube Button */
.btn-youtube {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    margin-top: 1rem;
}

.btn-youtube:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.btn-youtube i {
    font-size: 1.2rem;
}

/* Filter Section */
.filter-section {
    margin-bottom: 2rem;
    padding: 1.25rem;
}

.filter-header {
    margin-bottom: 0.75rem;
}

.filter-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--glass-bg-light);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

/* Featured Video Section */
.featured-video-section {
    margin-bottom: 2.5rem;
}

.featured-card {
    position: relative;
    overflow: hidden;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #eebd2b, #d4a820);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.featured-info {
    padding: 1.5rem;
}

.featured-info h2 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.featured-info p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Section Header */
.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.section-header h2 i {
    color: var(--accent-gold);
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Video Card */
.video-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-normal);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(31, 38, 135, 0.12);
    border-color: rgba(238, 189, 43, 0.4);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.video-thumbnail .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-overlay .play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.video-card:hover .play-btn {
    transform: scale(1.1);
}

.video-thumbnail .placeholder-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
}

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

.video-category-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(238, 189, 43, 0.9);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-info {
    padding: 1.25rem;
}

.video-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info p {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.video-meta i {
    font-size: 0.75rem;
    color: var(--accent-gold);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-modal.active {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    z-index: 1;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.video-modal-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-info {
    margin-top: 1rem;
    color: white;
}

.video-modal-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.video-modal-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Channel CTA */
.channel-cta {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.cta-content {
    max-width: 500px;
    margin: 0 auto;
}

.cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.cta-content h3 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.cta-content p {
    margin: 0 0 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn-youtube-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-youtube-lg:hover {
    background: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.3);
}

.btn-youtube-lg i {
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .featured-info {
        padding: 1rem;
    }
    
    .featured-info h2 {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .channel-cta {
        padding: 2rem 1.5rem;
    }
    
    .cta-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .cta-content h3 {
        font-size: 1.25rem;
    }
    
    .video-modal {
        padding: 1rem;
    }
    
    .video-modal-close {
        top: -2.5rem;
    }
    
    .video-modal-info h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-youtube,
    .btn-youtube-lg {
        width: 100%;
        justify-content: center;
    }
    
    .filter-options {
        gap: 0.4rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* Touch devices - disable hover transforms */
@media (hover: none) {
    .video-card:hover {
        transform: none;
    }
    
    .video-card:hover .video-thumbnail img {
        transform: none;
    }
    
    .video-card:hover .play-overlay {
        opacity: 0;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .video-card,
    .btn-youtube,
    .btn-youtube-lg {
        transition: none;
    }
    
    @keyframes modalFadeIn {
        from { opacity: 1; transform: scale(1); }
        to { opacity: 1; transform: scale(1); }
    }
}
