/* ============================================
   CARDS DE NOTÍCIAS - GLASSMORPHISM DESIGN
   Estilo inspirado no formulário de contato
   ============================================ */

/* Section de notícias com background preto */
.noticias-section {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho de fundo */
.noticias-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(53, 244, 178, 0.05) 0%,
        transparent 70%
    );
    animation: rotate-glow 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Título da seção */
.noticias-section .section-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.noticias-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary, linear-gradient(90deg, #35f4b2 0%, #2dd4a0 100%));
    box-shadow: 0 0 10px rgba(53, 244, 178, 0.5);
}

.noticias-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Card de notícia com glassmorphism */
.noticia-card-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        0 0 20px rgba(53, 244, 178, 0.1);
}

.noticia-card-glass:hover {
    transform: translateY(-10px);
    border-color: rgba(53, 244, 178, 0.3);
    box-shadow: 
        0 12px 40px 0 rgba(0, 0, 0, 0.5),
        0 0 40px rgba(53, 244, 178, 0.2),
        inset 0 0 20px rgba(53, 244, 178, 0.05);
}

/* Container da imagem */
.noticia-card-glass .card-img-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(53, 244, 178, 0.2);
}

.noticia-card-glass .card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.noticia-card-glass:hover .card-img-container img {
    transform: scale(1.1);
}

/* Placeholder quando não há imagem */
.noticia-card-glass .card-img-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(53, 244, 178, 0.1) 0%, rgba(45, 212, 160, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(53, 244, 178, 0.2);
}

.noticia-card-glass .card-img-placeholder i {
    font-size: 3rem;
    color: rgba(53, 244, 178, 0.4);
}

/* Corpo do card */
.noticia-card-glass .card-body-glass {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Data da notícia */
.noticia-card-glass .noticia-date {
    color: rgba(53, 244, 178, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.noticia-card-glass .noticia-date i {
    color: var(--primary-color, #35f4b2);
}

/* Título da notícia */
.noticia-card-glass .noticia-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Descrição da notícia */
.noticia-card-glass .noticia-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botão de leia mais */
.noticia-card-glass .btn-leia-mais {
    background: linear-gradient(135deg, rgba(53, 244, 178, 0.1) 0%, rgba(45, 212, 160, 0.1) 100%);
    border: 1.5px solid rgba(53, 244, 178, 0.3);
    color: var(--primary-color, #35f4b2);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.noticia-card-glass .btn-leia-mais:hover {
    background: var(--gradient-primary, linear-gradient(135deg, #35f4b2 0%, #2dd4a0 100%));
    border-color: var(--primary-color, #35f4b2);
    color: #000000;
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(53, 244, 178, 0.4);
}

.noticia-card-glass .btn-leia-mais i {
    transition: transform 0.3s ease;
}

.noticia-card-glass .btn-leia-mais:hover i {
    transform: translateX(5px);
}

/* Badge de categoria (se houver) */
.noticia-card-glass .noticia-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(53, 244, 178, 0.9);
    color: #000000;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(53, 244, 178, 0.3);
}

/* Animação de entrada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.noticia-card-glass {
    animation: slideInUp 0.6s ease-out;
}

/* Delay para animação em cascata */
.noticia-card-glass:nth-child(1) { animation-delay: 0.1s; }
.noticia-card-glass:nth-child(2) { animation-delay: 0.2s; }
.noticia-card-glass:nth-child(3) { animation-delay: 0.3s; }
.noticia-card-glass:nth-child(4) { animation-delay: 0.4s; }
.noticia-card-glass:nth-child(5) { animation-delay: 0.5s; }
.noticia-card-glass:nth-child(6) { animation-delay: 0.6s; }

/* Responsividade */
@media (max-width: 768px) {
    .noticias-section {
        padding: 3rem 0;
    }
    
    .noticias-section .section-title {
        font-size: 2rem;
    }
    
    .noticia-card-glass .card-img-container,
    .noticia-card-glass .card-img-placeholder {
        height: 180px;
    }
    
    .noticia-card-glass .card-body-glass {
        padding: 1.25rem;
    }
    
    .noticia-card-glass .noticia-title {
        font-size: 1.1rem;
    }
}

/* Estado vazio */
.noticias-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 2rem 0;
}

.noticias-empty-state i {
    font-size: 4rem;
    color: rgba(53, 244, 178, 0.3);
    margin-bottom: 1.5rem;
}

.noticias-empty-state p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0;
}
