/* ============================================================
   Posithividades — Main CSS
   Cor primária: #00a956 | Mobile-first | Portal de notícias
   ============================================================ */

/* ─── Variáveis ─────────────────────────────────────────────── */
:root {
    /* Paleta verde baseada no #00a956 */
    --brand:       #00a956;   /* cor principal do logo */
    --brand-dark:  #007d40;   /* hover, active */
    --brand-light: #e6f9ef;   /* fundos suaves */
    --brand-pale:  #f2fcf6;   /* fundo levíssimo */

    /* Neutros */
    --ink:         #111111;   /* texto principal */
    --ink-mid:     #374151;   /* texto secundário */
    --ink-soft:    #6b7280;   /* meta, datas */
    --border:      #e5e7eb;   /* bordas */
    --surface:     #f9fafb;   /* bg cards */
    --white:       #ffffff;
    --footer-bg:   #1a1a1a;   /* footer fundo */

    /* Tipo */
    --font: 'Inter', system-ui, -apple-system, sans-serif;

    /* Espaçamento e forma */
    --radius-sm: 5px;
    --radius:    10px;
    --radius-lg: 14px;
    --shadow:    0 2px 16px rgba(0,0,0,.07);
    --shadow-md: 0 6px 24px rgba(0,0,0,.1);
    --container: 1200px;
    --header-h:  64px;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#page-wrapper { flex: 1; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ─── Container ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 16px;
}
@media (min-width: 768px)  { .container { padding-inline: 28px; } }
@media (min-width: 1200px) { .container { padding-inline: 32px; } }

/* ─── Utilitários ───────────────────────────────────────────── */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ─── Badge de categoria ─────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--brand);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background .15s;
    white-space: nowrap;
}
.badge:hover { background: var(--brand-dark); }

/* ─── Botão ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--brand);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background .15s, transform .1s;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn:active { transform: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--white);
    height: var(--header-h);
    box-shadow: 0 1px 0 var(--border);
    border-bottom: 3px solid var(--brand);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img,
.site-logo .custom-logo {
    max-height: 38px;
    max-width: 160px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}
.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.5px;
    line-height: 1;
}
.logo-text span { color: var(--brand); }

/* Separador header */
.header-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
    flex-shrink: 0;
}

/* Nav desktop */
.site-nav { display: none; flex: 1; }
.site-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}
.site-nav .nav-list a {
    display: block;
    padding: 7px 13px;
    color: var(--ink-mid);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.site-nav .nav-list a:hover,
.site-nav .nav-list .current-menu-item > a,
.site-nav .nav-list .current-menu-ancestor > a {
    background: var(--brand-light);
    color: var(--brand-dark);
}
/* Sub-menus */
.site-nav .nav-list .menu-item-has-children { position: relative; }
.site-nav .nav-list .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    padding: 6px;
    z-index: 100;
}
.site-nav .nav-list .menu-item-has-children:hover .sub-menu { display: block; }
.site-nav .nav-list .sub-menu a {
    color: var(--ink);
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.site-nav .nav-list .sub-menu a:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.search-toggle,
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    color: var(--ink-mid);
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.search-toggle:hover,
.menu-toggle:hover { background: var(--brand-light); color: var(--brand-dark); }

/* Hamburger */
.burger-icon { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.burger-icon span {
    display: block; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform .25s, opacity .2s;
    transform-origin: center;
}
.menu-toggle.is-open .burger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open .burger-icon span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-open .burger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search bar */
.search-bar {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    display: none;
    z-index: 998;
}
.search-bar.is-open { display: block; }
.search-bar form { display: flex; gap: 10px; }
.search-bar input {
    flex: 1;
    padding: 11px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 15px;
}
.search-bar input::placeholder { color: var(--ink-soft); }
.search-bar input:focus { outline: none; border-color: var(--brand); background: var(--white); }
.search-bar button {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; flex-shrink: 0;
    background: var(--brand); border-radius: var(--radius); color: var(--white);
    transition: background .15s;
}
.search-bar button:hover { background: var(--brand-dark); }

/* Mobile nav */
.mobile-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--brand);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    display: none;
    z-index: 997;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav-list li a {
    display: block;
    padding: 14px 20px;
    color: var(--ink-mid);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: background .15s, color .15s;
}
.mobile-nav-list li a:hover { background: var(--brand-light); color: var(--brand-dark); }
.mobile-nav-list .sub-menu a {
    padding-left: 36px;
    font-size: 14px;
    background: var(--surface);
    color: var(--ink-soft);
}

@media (min-width: 1024px) {
    .site-nav { display: flex; }
    .menu-toggle { display: none; }
}

/* ============================================================
   LAYOUT BASE
   ============================================================ */
#page-wrapper { }

.site-main { padding: 28px 0 60px; }

/* ─── Seção título ───────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0 18px;
    border-bottom: 3px solid var(--brand);
    margin-bottom: 20px;
}
.section-title {
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ink);
    position: relative;
}
.section-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    transition: color .15s;
}
.section-more:hover { color: var(--brand-dark); }

/* ============================================================
   HERO — Destaque principal
   ============================================================ */
.hero-block {
    display: grid;
    gap: 3px;
    background: var(--border);
    margin-bottom: 0;
    max-width: var(--container);
    margin-inline: auto;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Padding lateral no mobile para o hero não encostar nas bordas */
@media (max-width: 767px) {
    .hero-block { margin-inline: 16px; width: auto; }
}

/* Espaço entre hero e grid de cards */
.hero-block + * { margin-top: 40px; }

/* Mobile: stacked */
.hero-main, .hero-secondary-a, .hero-secondary-b { display: block; }

@media (min-width: 768px) {
    .hero-block {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        height: 500px;
    }
    .hero-main {
        grid-column: 1;
        grid-row: 1 / 3;
    }
    .hero-secondary-a { grid-column: 2; grid-row: 1; }
    .hero-secondary-b { grid-column: 2; grid-row: 2; }
}

@media (min-width: 1024px) {
    .hero-block {
        grid-template-columns: 2fr 1fr;
        height: 520px;
    }
}

/* Hero item base */
.hero-full-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-item .hero-overlay {
    position: absolute;
    z-index: 2;
}

.hero-item {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #004d27 0%, #007d40 50%, #00a956 100%);
}

.hero-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.hero-item:hover img { transform: scale(1.04); }

/* Mobile: aspect-ratio no container para dar altura ao absolute */
.hero-main          { aspect-ratio: 16/9; }
.hero-secondary-a,
.hero-secondary-b   { aspect-ratio: 16/7; }

@media (min-width: 768px) {
    .hero-main,
    .hero-secondary-a,
    .hero-secondary-b { aspect-ratio: auto; }
}

/* Overlay gradiente */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.85) 0%,
        rgba(0,0,0,.3) 50%,
        rgba(0,0,0,.05) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
}

@media (min-width: 768px) {
    .hero-main .hero-overlay { padding: 28px 32px; }
    .hero-secondary-a .hero-overlay,
    .hero-secondary-b .hero-overlay { padding: 16px 20px; }
}

.hero-overlay .badge { margin-bottom: 10px; }

.hero-title {
    color: var(--white);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
}
.hero-main .hero-title   { font-size: clamp(20px, 3.5vw, 30px); }
.hero-secondary-a .hero-title,
.hero-secondary-b .hero-title { font-size: clamp(15px, 2vw, 18px); }

.hero-title a { color: inherit; transition: opacity .15s; }
.hero-title a:hover { opacity: .85; }

.hero-date {
    font-size: 12px;
    color: rgba(255,255,255,.65);
}

/* Sem imagem: overlay mais suave sobre o gradiente */
.hero-item--no-image .hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 100%);
}

/* ============================================================
   NEWS CARD — (imagem + título + data)
   ============================================================ */
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: box-shadow .22s, transform .22s;
    display: flex;
    flex-direction: column;
    position: relative;
}
/* Link invisível cobrindo todo o card */
.card-full-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* Links e botões internos ficam acima do link do card */
.news-card .card-img-wrap,
.news-card .badge,
.news-card .card-title a {
    position: relative;
    z-index: 2;
}

.news-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,.13);
    transform: translateY(-4px);
}

/* Imagem do card */
.card-img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--surface);
    flex-shrink: 0;
}
.card-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.news-card:hover .card-img-wrap img { transform: scale(1.06); }

/* Corpo do card */
.card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.card-body .badge { align-self: flex-start; }

.card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ink);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-title a { transition: color .15s; }
.card-title a:hover { color: var(--brand-dark); }

.card-excerpt {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-date {
    font-size: 12px;
    color: var(--ink-soft);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}
.card-date::before {
    content: '';
    display: inline-block;
    width: 3px; height: 3px;
    background: var(--brand);
    border-radius: 50%;
}

/* Grid de cards */
.news-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}
@media (min-width: 540px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   BARRA DE CATEGORIAS
   ============================================================ */
.cat-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0 24px;
    flex-wrap: wrap;
}

.cat-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-mid);
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
    white-space: nowrap;
}
.cat-bar__item svg { flex-shrink: 0; }
.cat-bar__item:hover {
    background: var(--brand-light);
    border-color: var(--brand);
    color: var(--brand-dark);
    box-shadow: 0 2px 8px rgba(0,169,86,.15);
}

/* Animação de entrada */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.news-card { animation: fadeUp .35s ease both; }
.news-card:nth-child(2) { animation-delay: .06s; }
.news-card:nth-child(3) { animation-delay: .12s; }
.news-card:nth-child(4) { animation-delay: .18s; }
.news-card:nth-child(5) { animation-delay: .24s; }
.news-card:nth-child(6) { animation-delay: .30s; }
.news-card:nth-child(7) { animation-delay: .36s; }
.news-card:nth-child(8) { animation-delay: .42s; }

/* Placeholder sem imagem */
.card-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--brand-light), var(--brand-pale));
    color: var(--brand);
    opacity: .5;
}

/* ============================================================
   ARQUIVO / BUSCA — header
   ============================================================ */
.archive-header {
    padding: 28px 0 20px;
    border-bottom: 3px solid var(--brand);
    margin-bottom: 28px;
}
.archive-title {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
}
.archive-title em { color: var(--brand); font-style: normal; }
.archive-desc { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.single-layout {
    padding-top: 24px;
}

.article-header { margin-bottom: 24px; }

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.article-meta-top .card-date { font-size: 13px; }

.article-title {
    font-size: clamp(22px, 5vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 20px;
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.byline-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline-author { font-size: 14px; font-weight: 600; color: var(--ink); display: block; }
.byline-updated { font-size: 12px; color: var(--ink-soft); display: block; margin-top: 2px; }

.article-featured-image {
    margin: 24px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}
.article-featured-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-featured-image figcaption {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--ink-soft);
    background: var(--surface);
    border-top: 1px solid var(--border);
    font-style: italic;
}

/* Barra de progresso de leitura */
.reading-progress {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: 3px;
    background: var(--border);
    z-index: 998;
}
.reading-progress-bar {
    height: 100%;
    background: var(--brand);
    width: 0%;
    transition: width .1s linear;
}

/* Conteúdo */
.article-content {
    font-size: 18px;
    line-height: 1.85;
    color: var(--ink-mid);
    margin: 28px 0;
}
.article-content > * + * { margin-top: 1.3em; }
.article-content h2 { font-size: 1.45em; font-weight: 700; color: var(--ink); margin-top: 1.8em; padding-bottom: 8px; border-bottom: 2px solid var(--brand-light); }
.article-content h3 { font-size: 1.2em; font-weight: 700; color: var(--ink); margin-top: 1.5em; }
.article-content a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--brand); }
.article-content ul { padding-left: 20px; list-style: disc; }
.article-content ol { padding-left: 20px; list-style: decimal; }
.article-content li { margin-top: .5em; }
.article-content blockquote {
    border-left: 4px solid var(--brand);
    padding: 14px 20px;
    background: var(--brand-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--ink-mid);
    font-style: italic;
}
.article-content blockquote p { margin: 0; }
.article-content img { border-radius: var(--radius); margin-inline: auto; }
.article-content code { background: var(--surface); padding: 2px 6px; border-radius: 4px; font-size: .875em; color: var(--brand-dark); }
.article-content pre { background: var(--ink); color: #d4fde4; padding: 20px; border-radius: var(--radius); overflow-x: auto; font-size: 14px; }
.article-content pre code { background: none; color: inherit; padding: 0; }

/* Tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--brand-light);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 500;
    border-radius: 100px;
    border: 1px solid rgba(0,169,86,.2);
    transition: background .15s, color .15s;
}
.tag:hover { background: var(--brand); color: var(--white); }

/* Compartilhar */
.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}
.share-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .5px; }
.share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--radius);
    font-size: 13px; font-weight: 600;
    transition: filter .2s, transform .1s; cursor: pointer;
}
.share-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.share-btn--whatsapp { background: #25d366; color: var(--white); }
.share-btn--facebook { background: #1877f2; color: var(--white); }
.share-btn--copy { background: var(--surface); color: var(--ink-mid); border: 1px solid var(--border); }
.share-btn--copy.copied { background: var(--brand-light); color: var(--brand-dark); border-color: rgba(0,169,86,.3); }

/* Posts relacionados */
.related-posts { margin-top: 40px; }
.related-title {
    font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
    color: var(--ink); margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 3px solid var(--brand);
}
.related-grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: box-shadow .2s; }
.related-card:hover { box-shadow: var(--shadow); }
.related-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--surface); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.related-card:hover .related-thumb img { transform: scale(1.05); }
.related-body { padding: 12px; }
.related-body .badge { margin-bottom: 6px; font-size: 10px; }
.related-body h4 { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.related-body h4 a { color: var(--ink); transition: color .15s; }
.related-body h4 a:hover { color: var(--brand-dark); }
.related-body time { font-size: 12px; color: var(--ink-soft); }

/* ============================================================
   PAGINAÇÃO
   ============================================================ */
.pagination { margin-top: 40px; text-align: center; }
.pagination .nav-links {
    display: inline-flex; align-items: center;
    gap: 6px; flex-wrap: wrap; justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding-inline: 8px;
    border-radius: var(--radius); font-size: 14px; font-weight: 500;
    color: var(--ink-mid); border: 1px solid var(--border);
    transition: background .15s, border-color .15s, color .15s;
}
.pagination .page-numbers:hover { background: var(--brand-light); border-color: var(--brand); color: var(--brand-dark); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: var(--white); }
.pagination .prev, .pagination .next { padding-inline: 16px; font-weight: 600; }

/* ============================================================
   EMPTY / 404
   ============================================================ */
.content-none { text-align: center; padding: 72px 20px; }
.content-none-icon { color: var(--border); margin-bottom: 20px; display: flex; justify-content: center; }
.content-none h2 { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.content-none p { color: var(--ink-soft); margin-bottom: 24px; font-size: 15px; }
.error-code { font-size: 96px; font-weight: 900; color: var(--brand-light); line-height: 1; margin-bottom: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,.75);
    padding-top: 52px;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    gap: 36px;
    grid-template-columns: 1fr;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (min-width: 640px)  { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* Coluna brand */
.footer-brand .logo-text { font-size: 24px; color: var(--white); }
.footer-brand .logo-text span { color: var(--brand); }
.footer-tagline { margin-top: 12px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.5); max-width: 260px; }

/* Colunas nav */
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,.55);
    transition: color .15s;
}
.footer-col ul li a:hover { color: var(--brand); }

/* Footer bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.35); }
.footer-bottom a { color: var(--brand); transition: color .15s; }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVIDADE EXTRA
   ============================================================ */
@media (min-width: 768px) {
    .site-main { padding-bottom: 80px; }
    .card-body { padding: 16px 18px 18px; }
    .card-title { font-size: 16px; }
    .section-header { padding: 36px 0 18px; }
}

/* ============================================================
   COMENTÁRIOS
   ============================================================ */
.comments-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.comments-title,
.comment-form-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--brand);
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* Lista de comentários */
.comments-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.comment-item { display: block; }

.comment-item .children {
    list-style: none;
    margin-top: 16px;
    margin-left: 56px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 16px;
    border-left: 2px solid var(--brand-light);
}

.comment-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.comment-avatar { flex-shrink: 0; }
.avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-light);
}

.comment-content { flex: 1; min-width: 0; }

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.comment-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.comment-date {
    font-size: 12px;
    color: var(--ink-soft);
}
.comment-pending {
    font-size: 11px;
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 4px;
}

.comment-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-mid);
    background: var(--surface);
    padding: 14px 16px;
    border-radius: 0 var(--radius) var(--radius) var(--radius);
    border: 1px solid var(--border);
}
.comment-text p { margin-bottom: .6em; }
.comment-text p:last-child { margin-bottom: 0; }

.comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.comment-actions a,
.comment-reply-link,
.comment-edit-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    transition: color .15s;
}
.comment-actions a:hover,
.comment-reply-link:hover,
.comment-edit-link:hover { color: var(--brand); }

/* Formulário de comentário */
.comment-form-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.comment-field-wrap {
    margin-bottom: 16px;
}
.comment-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}
.comment-field-wrap textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 15px;
    color: var(--ink);
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    transition: border-color .15s;
}
.comment-field-wrap textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0,169,86,.1);
}

.comment-submit-wrap { display: flex; align-items: center; gap: 14px; }

/* Prompt de login */
.comment-login-prompt {
    text-align: center;
    padding: 40px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--ink-soft);
}
.comment-login-prompt svg { margin: 0 auto 12px; color: var(--brand); }
.comment-login-prompt p { font-size: 15px; margin-bottom: 20px; color: var(--ink-mid); }

.comments-closed {
    font-size: 14px;
    color: var(--ink-soft);
    text-align: center;
    padding: 20px;
}

/* ============================================================
   PÁGINA DE PERFIL
   ============================================================ */
.perfil-layout {
    max-width: 640px;
    margin-inline: auto;
    padding: 32px 0 60px;
}

.perfil-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 2px solid var(--border);
}

.perfil-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand);
}

.perfil-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 4px;
}
.perfil-role {
    font-size: 14px;
    color: var(--ink-soft);
}

/* Alertas */
.perfil-alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}
.perfil-alert--success {
    background: var(--brand-light);
    color: var(--brand-dark);
    border: 1px solid rgba(0,169,86,.25);
}
.perfil-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.perfil-alert--error ul { padding-left: 18px; list-style: disc; }
.perfil-alert--error li { margin-top: 4px; }

/* Seções */
.perfil-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.perfil-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ink);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand);
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

/* Campos */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.form-group:last-child { margin-bottom: 0; }

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}
.form-optional {
    font-size: 12px;
    font-weight: 400;
    color: var(--ink-soft);
    text-transform: none;
    letter-spacing: 0;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 15px;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0,169,86,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

/* Ações */
.perfil-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.perfil-logout {
    font-size: 14px;
    color: var(--ink-soft);
    font-weight: 500;
    transition: color .15s;
}
.perfil-logout:hover { color: #dc2626; }

/* Logged in as (comentários) */
.logged-in-as {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 16px;
}
.logged-in-as a {
    color: var(--brand-dark);
    font-weight: 500;
    transition: color .15s;
}
.logged-in-as a:hover { color: var(--brand); }

/* ============================================================
   PÁGINA DE LOGIN
   ============================================================ */
.login-layout {
    max-width: 420px;
    margin-inline: auto;
    padding: 48px 0 72px;
}

.login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--brand-light);
    color: var(--brand);
    border-radius: 50%;
    margin-bottom: 18px;
}

.login-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.5;
}

.login-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}

/* Campo de senha com botão de mostrar/ocultar */
.login-password-wrap {
    position: relative;
}
.login-password-wrap input {
    width: 100%;
    padding-right: 46px !important;
}
.login-toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: var(--ink-soft);
    transition: color .15s;
}
.login-toggle-pwd:hover { color: var(--brand); }

/* Checkbox + forgot */
.login-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    margin-top: -4px;
}

.login-check {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--ink-mid);
    cursor: pointer;
    user-select: none;
}
.login-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
    cursor: pointer;
    flex-shrink: 0;
}

.login-forgot {
    font-size: 13px;
    color: var(--brand);
    font-weight: 500;
    transition: color .15s;
    white-space: nowrap;
}
.login-forgot:hover { color: var(--brand-dark); }

.login-submit {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 15px;
}

.login-register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--ink-soft);
}
.login-register-link a {
    color: var(--brand);
    font-weight: 600;
    transition: color .15s;
}
.login-register-link a:hover { color: var(--brand-dark); }

/* ── Esqueci a senha: indicador de força ── */
.lp-password-strength {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 18px;
    min-height: 18px;
    transition: color .2s;
}
.lp-strength--weak   { color: #dc2626; }
.lp-strength--fair   { color: #d97706; }
.lp-strength--good   { color: #2563eb; }
.lp-strength--strong { color: var(--brand-dark); }

/* ── Esqueci a senha: box de sucesso com ícone ── */
.lp-success-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.lp-success-box svg { flex-shrink: 0; margin-top: 1px; }

.lp-back-login {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--brand);
    font-weight: 600;
    transition: color .15s;
}
.lp-back-login:hover { color: var(--brand-dark); }
