/* assets/css/noticias.css */
/* Estilos complementares para a página de notícias */

/* Animações suaves */
.news-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Efeito de loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Scrollbar personalizada para o modal */
.modal-overlay::-webkit-scrollbar {
    width: 8px;
}

.modal-overlay::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-overlay::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-overlay::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Efeitos de hover para botões de compartilhamento */
.share-button {
    transition: all 0.2s ease;
}

.share-button:hover {
    transform: scale(1.05);
}

/* Responsividade para telas muito pequenas */
@media (max-width: 480px) {
    .news-card {
        margin-bottom: 1rem;
    }
    
    .category-filter {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    #searchNews {
        font-size: 0.875rem;
    }
}

/* Melhorias na tipografia */
.news-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: #111827;
}

.news-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    color: #1f2937;
}

.news-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem 0;
    color: #374151;
}

.news-content p {
    margin-bottom: 1rem;
    color: #4b5563;
    line-height: 1.7;
}

.news-content ul, .news-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.news-content li {
    margin-bottom: 0.5rem;
    color: #4b5563;
    line-height: 1.6;
}

.news-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.news-content a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.news-content a:hover {
    color: #2563eb;
}

.news-content strong {
    font-weight: 600;
    color: #374151;
}

.news-content em {
    font-style: italic;
    color: #6b7280;
}

/* Efeitos de transição para filtros */
.category-filter {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-filter:hover {
    transform: translateY(-1px);
}

.category-filter.active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Melhorias no modal */
#newsModal .bg-white {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efeitos de loading para imagens */
.news-card img {
    transition: opacity 0.3s ease;
}

.news-card img[src*="eventos.png"] {
    opacity: 0.7;
}

/* Melhorias na acessibilidade */
.category-filter:focus,
#searchNews:focus,
#sortNews:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Estados de carregamento */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Melhorias no footer */
footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ffffff;
}

/* Efeitos de hover para links do header */
header a {
    position: relative;
}

/* Melhorias na responsividade do grid */
@media (max-width: 768px) {
    #newsGrid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #newsGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Efeitos de transição para o botão "Carregar mais" */
#loadMoreBtn {
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

#loadMoreBtn:active {
    transform: translateY(0);
}

/* Melhorias na busca */
#searchNews {
    transition: all 0.3s ease;
}

#searchNews:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Estados vazios mais atrativos */
#emptyState {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Melhorias na tipografia do título da página */
/* Removido gradiente que estava sobrescrevendo a cor branca do título */

/* Efeitos de hover para cards de notícias */
.news-card:hover .news-card-title {
    color: #3b82f6;
}

.news-card:hover .news-card-excerpt {
    color: #4b5563;
}

/* Melhorias na acessibilidade do modal */
#newsModal:focus {
    outline: none;
}

#closeModal:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 0.25rem;
} 