/*
 Theme Name: Agnar Child
 Template:   agnar
*/
@import url("../agnar/style.css");

/* ═══════════════════════════════════════════════════
   VARIÁVEIS — Paleta pastel literária
═══════════════════════════════════════════════════ */

:root {
    --c-ultimos:     #d4667a;
    --c-noticias:    #5b8fd4;
    --c-curiosidades:#e08c3a;
    --c-entendendo:  #5aaa7a;
    --c-poemas:      #9b6bbf;

    --bg-ultimos:    #fff5f6;
    --bg-noticias:   #f5f8ff;
    --bg-curiosidades: #fff8f0;
    --bg-entendendo: #f0fff6;
    --bg-poemas:     #f8f0ff;

    --border-light:  #e8e0ee;
    --text-dark:     #1a1a2e;
    --text-muted:    #8a8aaa;
}

/* ── Fundo geral do site ── */
body {
    background-color: #faf8fc !important;
}

/* ═══════════════════════════════════════════════════
   HOME — Wrapper principal
═══════════════════════════════════════════════════ */

.fp-wrap {
    padding: 1.5rem 0;
}

/* ── Títulos de seção ── */
.fp-section-title {
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    padding-bottom: .5rem;
    margin: 0 0 1.25rem;
    border-bottom-width: 2px;
    border-bottom-style: solid;
}

.fp-section-title--ultimos  { color: var(--c-ultimos);  border-color: var(--c-ultimos); }
.fp-section-title--noticias { color: var(--c-noticias); border-color: var(--c-noticias); }

/* ── Faixa superior: duas colunas ── */
.fp-top {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 2rem;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.fp-top-col {
    padding: 1.5rem;
}

.fp-top-col--ultimos  { background: var(--bg-ultimos); }
.fp-top-col--noticias { background: var(--bg-noticias); }

.fp-top-divider { background: var(--border-light); }

/* ── Post destaque hero ── */
.fp-hero { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border-light); }

.fp-hero__thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: .75rem;
}

.fp-hero__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: .3rem 0 .4rem;
}

.fp-hero__title a { color: var(--text-dark); text-decoration: none; }
.fp-hero__title a:hover { opacity: .75; }
.fp-hero__body time { font-size: 11px; color: var(--text-muted); }

/* ── Badge de categoria ── */
.fp-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    display: block;
    margin-bottom: .2rem;
}

.fp-badge a { text-decoration: none; }
.fp-badge--ultimos,  .fp-badge--ultimos  a { color: var(--c-ultimos); }
.fp-badge--noticias, .fp-badge--noticias a { color: var(--c-noticias); }

/* ── Posts em linha menores ── */
.fp-row {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .65rem 0;
    border-bottom: 1px solid var(--border-light);
}

.fp-row:last-child { border-bottom: none; }
.fp-row__thumb { flex-shrink: 0; }

.fp-row__thumb img {
    width: 76px;
    height: 58px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.fp-row__body { flex: 1; min-width: 0; }

.fp-row__title {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.4;
    margin: .2rem 0 .25rem;
}

.fp-row__title a { color: var(--text-dark); text-decoration: none; }
.fp-row__title a:hover { opacity: .75; }
.fp-row__title--sm { font-size: .82rem; font-weight: 500; }
.fp-row time { font-size: 11px; color: var(--text-muted); }

/* ── Anúncio entre faixas ── */
.fp-ad { margin: 0 0 1.5rem; text-align: center; }

/* ── Faixa inferior: 3 categorias ── */
.fp-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.fp-cat {
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border-light);
}

.fp-cat--curiosidades  { background: var(--bg-curiosidades); }
.fp-cat--entendendo    { background: var(--bg-entendendo); }
.fp-cat--poemas        { background: var(--bg-poemas); }

.fp-cat__title {
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    padding-bottom: .5rem;
    margin: 0 0 1.25rem;
    border-bottom-width: 2px;
    border-bottom-style: solid;
}

.fp-cat__title a { text-decoration: none; }
.fp-cat__title a:hover { opacity: .75; }

.fp-cat__title--curiosidades,
.fp-cat__title--curiosidades a { color: var(--c-curiosidades); border-color: var(--c-curiosidades); }

.fp-cat__title--entendendo,
.fp-cat__title--entendendo a   { color: var(--c-entendendo);   border-color: var(--c-entendendo); }

.fp-cat__title--poemas,
.fp-cat__title--poemas a       { color: var(--c-poemas);       border-color: var(--c-poemas); }

.fp-cat-hero { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light); }

.fp-cat-hero img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 7px;
    display: block;
    margin-bottom: .6rem;
}

.fp-cat-hero__title {
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 .25rem;
}

.fp-cat-hero__title a { color: var(--text-dark); text-decoration: none; }
.fp-cat-hero__title a:hover { opacity: .75; }
.fp-cat-hero time { font-size: 11px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════
   CARDS — Categoria e busca
═══════════════════════════════════════════════════ */

.home-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.featured-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: box-shadow .2s;
}

.featured-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.featured-card a img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.featured-card__body { padding: 1rem 1.1rem 1.2rem; }

.featured-card__cat a {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #0096a0;
    text-decoration: none;
}

.featured-card__title { font-size: 1.05rem; line-height: 1.4; margin: .4rem 0 .5rem; }
.featured-card__title a { color: #1a1a1a; text-decoration: none; }
.featured-card__title a:hover { color: #0096a0; }
.featured-card__body time { font-size: 12px; color: #888; }

/* ═══════════════════════════════════════════════════
   CATEGORIA — Cabeçalho e grid
═══════════════════════════════════════════════════ */

.home-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 2.5rem auto 3rem;
    padding: 0 1.5rem;
}

.cat-block__title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    border-bottom: 2px solid #0096a0;
    padding-bottom: .5rem;
    margin: 0 0 1rem;
}

.cat-block__title a { color: #1a1a1a; text-decoration: none; }
.cat-block__title a:hover { color: #0096a0; }

.cat-block__item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .65rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cat-block__item:last-child { border-bottom: none; }

.cat-block__item a img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
}

.cat-block__link { font-size: .88rem; line-height: 1.4; color: #1a1a1a; text-decoration: none; font-weight: 500; }
.cat-block__link:hover { color: #0096a0; }

.cat-page-header {
    max-width: 1200px;
    margin: 2rem auto .5rem;
    padding: 0 1.5rem 1rem;
    border-bottom: 2px solid #0096a0;
}

.cat-page-title { font-size: 1.4rem; font-weight: 700; margin: 0 0 .3rem; color: #1a1a1a; }
.cat-page-desc { font-size: .9rem; color: #666; margin: 0; }
.cat-grid { margin-top: 1.5rem; }

/* ═══════════════════════════════════════════════════
   SINGLE — Layout com sidebar
═══════════════════════════════════════════════════ */

.single-wrapper { max-width: 100%; margin: 0; padding: 1.5rem 1.5rem 3rem; }

.single-breadcrumb {
    font-size: 12px;
    color: #888;
    margin-bottom: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.single-breadcrumb a { color: #888; text-decoration: none; }
.single-breadcrumb a:hover { color: #0096a0; }

.single-cat-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #fff;
    background: #0096a0;
    padding: 3px 10px;
    border-radius: 3px;
    text-decoration: none;
    margin-bottom: .75rem;
}

.single-title {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    line-height: 1.3;
    font-weight: 700;
    margin: .4rem 0 1rem;
    color: #1a1a1a;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 1.5rem;
}

.single-meta__author { display: flex; align-items: center; gap: 6px; }
.single-meta__author img { border-radius: 50%; width: 28px !important; height: 28px !important; }
.single-meta__author a { color: #1a1a1a; text-decoration: none; font-weight: 500; }
.single-meta__sep { color: #ccc; }

.single-thumb { margin: 0 0 2rem; border-radius: 8px; overflow: hidden; }

.single-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.single-thumb figcaption { font-size: 12px; color: #888; padding: .5rem 0 0; text-align: center; }

.single-content { font-size: 1.05rem; line-height: 1.85; color: #222; }
.single-content h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
.single-content h3 { font-size: 1.15rem; margin: 1.75rem 0 .6rem; }
.single-content p  { margin-bottom: 1.3rem; }

.single-tags { margin: 2rem 0; font-size: 13px; color: #666; }

.single-tags a {
    display: inline-block;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 2px 8px;
    margin: 2px 3px;
    color: #444;
    text-decoration: none;
    font-size: 12px;
}

.single-tags a:hover { background: #e8f7f8; border-color: #0096a0; color: #0096a0; }

/* ═══════════════════════════════════════════════════
   SINGLE — Bio do autor
═══════════════════════════════════════════════════ */

.single-author-bio {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 2rem 0;
}

.single-author-bio__avatar img {
    border-radius: 50%;
    width: 80px !important;
    height: 80px !important;
    min-width: 80px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.single-author-bio__name a { font-weight: 700; color: #1a1a1a; text-decoration: none; font-size: .95rem; }
.single-author-bio__desc { font-size: .88rem; color: #555; margin: .3rem 0 0; line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   SINGLE — Posts relacionados
═══════════════════════════════════════════════════ */

.single-related { margin: 2.5rem 0; }

.single-related__title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    border-bottom: 2px solid #0096a0;
    padding-bottom: .5rem;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
}

/* ═══════════════════════════════════════════════════
   SIDEBAR — Sticky
═══════════════════════════════════════════════════ */

.flex-right {
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

.sidebar .widget { position: static !important; }
.sidebar ins.adsbygoogle { position: static !important; display: block !important; }

/* ═══════════════════════════════════════════════════
   PAGE — Páginas estáticas
═══════════════════════════════════════════════════ */

.page-wrapper { max-width: 780px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }

.page-article__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #0096a0;
    color: #1a1a1a;
}

.page-article__content { font-size: 1.02rem; line-height: 1.85; color: #222; }

/* ═══════════════════════════════════════════════════
   RESPONSIVO
═══════════════════════════════════════════════════ */

@media (max-width: 960px) {
    .fp-top { grid-template-columns: 1fr; }
    .fp-top-divider { display: none; }
    .fp-bottom { grid-template-columns: 1fr 1fr; }
    .home-featured { grid-template-columns: 1fr 1fr; }
    .home-categories { grid-template-columns: 1fr 1fr; }
    .flex-right { position: static; }
}

@media (max-width: 600px) {
    .fp-bottom { grid-template-columns: 1fr; }
    .home-featured,
    .home-categories { grid-template-columns: 1fr; }
    .single-author-bio { flex-direction: column; }
    .single-meta { gap: 5px; }
}