/* Estilos para a página de notícias */

/* Filtros */
.news-filter {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.news-filter:hover,
.news-filter.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Grid de notícias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-category {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-card-excerpt {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.news-card-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Modal de notícia */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.news-modal.active {
    display: flex;
}

.news-modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    max-height: 90%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.news-modal-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.news-modal-info {
    padding: 2rem;
}

.news-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-modal-content-text {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.news-modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #94a3b8;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.news-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #000000;
    font-size: 1.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.news-modal-close:hover {
    background: white;
    color: #4779ca;
    transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card {
        min-height: 350px;
    }
    
    .news-modal-content {
        width: 95%;
        max-height: 95%;
    }
    
    .news-modal-title {
        font-size: 1.5rem;
    }
    
    .news-modal-info {
        padding: 1.5rem;
    }
} 