/* ============================================
   VIDEOS.CSS - Seção de Vídeos
   Central de Notícias Brasil
   Desenvolvido por: Joceilton Gomes
   ============================================ */

/* ====== SEÇÃO VÍDEOS ====== */
.videos-section {
    background: #fff;
    padding: 40px 0;
}

.videos-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.videos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.videos-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 8px;
}

.videos-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: #f97316;
    border-radius: 2px;
}

.videos-ver-todos {
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.videos-ver-todos:hover {
    background: #1d4ed8;
}

/* Grid de Vídeos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: #f97316;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ea580c;
}

.video-play-btn svg {
    margin-left: 4px;
}

.video-card h3 {
    padding: 16px 16px 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    min-height: 60px;
}

.video-date {
    padding: 0 16px 16px;
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

/* Modal de Vídeo */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.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);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 1;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: white;
    color: #1a1a1a;
}

.video-modal-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ====== RESPONSIVO ====== */
@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .videos-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .video-card h3 {
        min-height: auto;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-modal-close {
        top: -45px;
        width: 36px;
        height: 36px;
    }
}

