/* MGC Safety Nets - Videos Page Styles */

.videos-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Video Filters */
.video-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.video-filters .filter-btn {
    padding: 12px 30px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-filters .filter-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: translateY(-2px);
}

.video-filters .filter-btn.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

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

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.video-card.hidden {
    display: none;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

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

/* Video Info */
.video-info {
    padding: 25px;
}

.video-info h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video Meta */
.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-meta .category {
    padding: 6px 15px;
    background: linear-gradient(135deg, #ff6b6b15, #ee5a6f15);
    border-radius: 20px;
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.video-meta .duration {
    font-size: 13px;
    color: #999;
    font-weight: 600;
}

/* Load More Button */
.load-more-container {
    text-align: center;
}

.load-more-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

/* YouTube CTA Section */
.youtube-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.youtube-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

.youtube-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.youtube-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.youtube-cta h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.youtube-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: white;
    color: #ff0000;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.youtube-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.youtube-logo {
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

/* Category Colors */
.video-card[data-category="installation"] .video-meta .category {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    color: #667eea;
}

.video-card[data-category="testimonial"] .video-meta .category {
    background: linear-gradient(135deg, #00cc6615, #00994415);
    color: #00cc66;
}

.video-card[data-category="demo"] .video-meta .category {
    background: linear-gradient(135deg, #4facfe15, #00f2fe15);
    color: #4facfe;
}

.video-card[data-category="tutorial"] .video-meta .category {
    background: linear-gradient(135deg, #ffa50015, #ff891515);
    color: #ffa500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .videos-section {
        padding: 50px 0;
    }
    
    .video-filters {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .video-filters .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-info {
        padding: 20px;
    }
    
    .video-info h3 {
        font-size: 16px;
    }
    
    .video-info p {
        font-size: 13px;
    }
    
    .youtube-cta {
        padding: 60px 0;
    }
    
    .youtube-icon {
        font-size: 60px;
    }
    
    .youtube-cta h2 {
        font-size: 28px;
    }
    
    .youtube-cta p {
        font-size: 16px;
    }
    
    .youtube-btn {
        padding: 15px 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .video-card {
        border-radius: 10px;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-info h3 {
        font-size: 15px;
    }
    
    .video-meta .category {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .youtube-icon {
        font-size: 50px;
    }
    
    .youtube-cta h2 {
        font-size: 24px;
    }
    
    .youtube-btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
}