/* artigos.css - Design Premium para Biblioteca de Conteúdo */

.artigos-hero {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 4px solid #3b82f6;
}

.artigos-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: 'Outfit', 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

.artigos-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #cbd5e1;
}

/* Filtros Inteligentes */
.filtros-container {
    max-width: 1200px;
    margin: -30px auto 40px;
    background: #fff;
    border-radius: 12px;
    padding: 20px 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 10;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.filtros-container input,
.filtros-container select {
    padding: 12px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8fafc;
    color: #334155;
    flex: 1;
    min-width: 200px;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.filtros-container input:focus,
.filtros-container select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
    background: #fff;
}

.contador-artigos {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    margin-left: auto;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 20px;
}

/* Grid de Artigos */
.artigos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* Card Individual (Sem Imagem) */
.artigo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.artigo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #3b82f6;
}

.artigo-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag-cat {
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-regiao {
    background: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.artigo-card h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 25px;
    line-height: 1.4;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.artigo-card .btn-ler {
    align-self: flex-start;
    color: #3b82f6;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.artigo-card .btn-ler::after {
    content: "→";
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.artigo-card .btn-ler:hover {
    color: #1d4ed8;
}

.artigo-card .btn-ler:hover::after {
    transform: translateX(4px);
}

/* Paginação Visual */
.paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.btn-page {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-page:hover:not(:disabled) {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.btn-page.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.btn-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 1.2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

@media (max-width: 768px) {
    .filtros-container {
        flex-direction: column;
        margin: -20px 20px 40px;
        padding: 20px;
    }
    .filtros-container input,
    .filtros-container select {
        width: 100%;
        min-width: unset;
    }
    .contador-artigos {
        width: 100%;
        text-align: center;
        margin: 0;
    }
}
