/* ===========================
   Video Gallery Styles
   =========================== */
:root {
    --primary-dark: #0A1628;
    --primary-blue: #1E3A5F;
    --accent-blue: #2E5C8A;
    --light-blue: #4A7BA7;
    --gold: #FFB84D;
    --text-light: #F5F5F5;
    --text-dark: #1A1A1A;
    --bg-light: #F8F9FA;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

.videos-hero {
    margin-top: 80px;
    padding: 6rem 0 4rem;
    background: var(--gradient-primary);
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.videos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/backgrounds/Foto01bandeirolas.png') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.videos-hero .container {
    position: relative;
    z-index: 1;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 4rem 0;
}

.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    position: relative;
}

.video-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.2);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.5s ease;
}

.video-card:hover .video-thumbnail video {
    opacity: 1;
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 40, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(255, 184, 77, 0.5);
    transition: all 0.3s ease;
}

.video-card:hover .play-icon {
    transform: scale(1.2);
    background: #fff;
}

.video-info {
    padding: 1.5rem;
    background: white;
}

.video-info h3 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.video-info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Modal de Vídeo */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
}

.video-modal.active {
    display: flex;
}

.modal-video-container {
    width: 90%;
    max-width: 1000px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.modal-video-container video {
    width: 100%;
    display: block;
}

.close-video-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-video-modal:hover {
    color: var(--gold);
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        padding: 2rem 20px;
    }
}
