/* ========================================
   NEWS GRID COM SUPORTE A VÍDEOS - ESTILOS
   ======================================== */

/**
 * Este arquivo CSS adiciona suporte a vídeos com pré-visualização
 * ao passar o mouse na grid de notícias (class="news-grid")
 * 
 * Compatível com a estrutura existente do site VOCÊ REPÓRTER
 */

/* Container da imagem/vídeo do card de notícia */
.news-card-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Imagem do card de notícia */
.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

/* Elemento de vídeo dentro do card */
.news-card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    background: #000;
}

.news-card-video.playing {
    display: block;
}

/* Hover na imagem do card */
.news-card-image-container:hover .news-card-image {
    transform: scale(1.1);
}

/* Badge para indicar vídeo */
.news-card-video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card-video-badge svg {
    width: 14px;
    height: 14px;
}

/* Overlay para vídeos */
.news-card-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.news-card-image-container:hover .news-card-video-overlay {
    opacity: 1;
}

/* Ícone de play */
.news-card-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.news-card-image-container:hover .news-card-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.news-card-play-icon svg {
    width: 20px;
    height: 20px;
    fill: #667eea;
    margin-left: 3px;
}

/* ========================================
   RESPONSIVO - MOBILE
   ======================================== */
@media (max-width: 768px) {
    /* Desabilitar hover effects em mobile para melhor performance */
    .news-card-image-container:hover .news-card-video-overlay {
        opacity: 0;
    }

    .news-card-image-container:hover .news-card-play-icon {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }

    .news-card-play-icon {
        width: 40px;
        height: 40px;
    }

    .news-card-play-icon svg {
        width: 16px;
        height: 16px;
    }
}

