﻿/* Listagem de artigos (/Ajuda e /Blog): chips de categoria, destaque, cards e paginação.
   As fontes são as do main.css (Poppins nos títulos, Open Sans no texto).
   Destaques (chips ativos, badges, paginação, botões) no verde da marca com texto branco. */

:root {
    --art-accent: #3abcaf;
    --art-accent-dark: #3cb690;
    --art-on-accent: #fff;
    --art-dark: #0f1a2b;
    --art-text: #4a5568;
    --art-border: #e3e8ef;
    --art-bg: #f6f8fb;
    --art-navy: #122d3e;
    --art-link: #175cff;
}

.art-section {
    background: var(--art-bg);
    padding: 48px 0 96px;
}

/* ---------- Busca (header): lupa dentro do campo ---------- */
.art-busca {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.art-busca-campo {
    position: relative;
    flex: 1 1 260px;
}

    .art-busca-campo .form-control {
        min-height: 48px;
        padding-right: 52px;
    }

.art-busca-icone {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--art-accent);
    font-size: 17px;
    transition: background-color .15s ease, color .15s ease;
}

    .art-busca-icone:hover,
    .art-busca-icone:focus-visible {
        background: var(--art-accent);
        color: var(--art-on-accent);
        outline: 0;
    }

.art-busca .btn {
    min-height: 48px;
    white-space: nowrap;
}

/* ---------- Chips de categoria ---------- */
.art-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.art-chip {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--art-border);
    background: #fff;
    color: var(--art-dark);
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

    .art-chip span {
        font-weight: 500;
        opacity: .65;
    }

    .art-chip:hover {
        border-color: var(--art-accent);
        color: var(--art-dark);
    }

    .art-chip.active {
        background: var(--art-accent);
        border-color: var(--art-accent);
        color: var(--art-on-accent);
    }

        .art-chip.active span {
            opacity: .85;
        }

/* ---------- Resumo do filtro ---------- */
.art-filtro-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: -16px 0 28px;
    color: var(--art-text);
    font-size: 15px;
}

    .art-filtro-info a {
        font-weight: 600;
        color: var(--art-link);
    }

/* ---------- Badge ---------- */
.art-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--art-navy);
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.4;
}

/* ---------- Destaque ---------- */
.art-destaque {
    background: #fff;
    border: 1px solid var(--art-border);
    margin-bottom: 64px;
    overflow: hidden;
}

.art-destaque-img {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 100%;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
}

.art-destaque-overlay {
    display: block;
    width: 100%;
    padding: 64px 40px 40px;
    background: linear-gradient(180deg, rgba(15, 26, 43, .15) 0%, rgba(15, 26, 43, .92) 70%);
}

    .art-destaque-overlay .art-badge {
        margin-bottom: 16px;
    }

.art-destaque-title {
    display: block;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.art-destaque-img:hover .art-destaque-title {
    color: var(--art-accent);
}

.art-destaque-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
}

.art-destaque-resumo {
    color: var(--art-text);
    font-size: 17px;
    line-height: 1.7;
    margin: 12px 0 20px;
}

.art-link-forte {
    color: var(--art-dark);
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}

    .art-link-forte:hover {
        color: var(--art-link);
    }

/* ---------- Cards ---------- */
.art-grid {
    row-gap: 32px;
}

.art-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid var(--art-navy);
    transition: box-shadow .2s ease, transform .2s ease;
}

    .art-card:hover {
        box-shadow: 0 12px 32px rgba(15, 26, 43, .10);
        transform: translateY(-2px);
    }

.art-card-img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--art-dark);
}

    .art-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .art-card-img .art-badge {
        position: absolute;
        top: 16px;
        left: 16px;
    }

.art-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.art-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    color: #7a8699;
    font-size: 13px;
    margin-bottom: 10px;
}

.art-card-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

    .art-card-title a {
        color: var(--art-dark);
        text-decoration: none;
    }

        .art-card-title a:hover {
            color: var(--art-link);
        }

.art-card-resumo {
    color: var(--art-text);
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.art-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

    .art-tags a {
        padding: 2px 10px;
        background: var(--art-bg);
        border: 1px solid var(--art-border);
        color: var(--art-text);
        font-size: 12px;
        text-decoration: none;
    }

        .art-tags a:hover {
            border-color: var(--art-accent);
            color: var(--art-dark);
        }

.art-link {
    margin-top: auto;
    color: var(--art-link);
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

    .art-link:hover {
        color: var(--art-dark);
    }

/* ---------- Paginação ---------- */
.art-paginacao {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 56px;
}

    .art-paginacao a,
    .art-paginacao span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 44px;
        padding: 0 12px;
        border: 1px solid var(--art-border);
        background: #fff;
        color: var(--art-dark);
        font-family: Poppins, sans-serif;
        font-weight: 600;
        text-decoration: none;
    }

        .art-paginacao a:hover {
            border-color: var(--art-accent);
        }

        .art-paginacao span.active {
            background: var(--art-accent);
            border-color: var(--art-accent);
            color: var(--art-on-accent);
        }

/* ---------- Sem resultados ---------- */
.art-vazio {
    padding: 64px 24px;
    background: #fff;
    border: 1px dashed var(--art-border);
    text-align: center;
    color: var(--art-text);
}

    .art-vazio i {
        font-size: 32px;
        color: var(--art-accent);
    }

/* ---------- CTA final ---------- */
.art-cta {
    background: var(--art-dark);
    color: #fff;
    padding: 72px 0;
    text-align: center;
}

    .art-cta h2 {
        color: #fff;
    }

    .art-cta p {
        color: rgba(255, 255, 255, .75);
        max-width: 640px;
        margin: 0 auto 28px;
    }

@media (max-width: 991.98px) {
    .art-destaque-img {
        min-height: 300px;
    }

    .art-destaque-overlay {
        padding: 48px 24px 24px;
    }

    .art-destaque-side {
        padding: 28px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .art-card,
    .art-card:hover {
        transition: none;
        transform: none;
    }
}
