/* =========================================
   BLOG.CSS — Editorial Imersivo
   ========================================= */

/* ── Hero da listagem ── */
.blog-hero {
    padding: 10rem 5% 4rem;
    text-align: center;
}

.blog-hero-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ouro-vibrante);
    margin-bottom: 1.4rem;
    opacity: 0.85;
}

.blog-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6.5rem);
    color: var(--texto-primario);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 1.6rem;
}

.blog-hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.6;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ── Filtro de Categorias ── */
.category-filter {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 5% 4rem;
}

.cat-btn {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.22);
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--texto-primario);
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--texto-primario);
    border-color: var(--texto-primario);
    color: var(--branco-base);
}

/* ── Grid de Posts ── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5% 8rem;
}

/* Featured — ocupa linha inteira, layout 2 colunas */
.post-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.post-card.medium { grid-column: span 6; }
.post-card.small  { grid-column: span 4; }

/* Wrapper da imagem */
.post-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--amarelo-pastel);
}

.post-card.featured .post-img-wrapper { aspect-ratio: 4 / 3; }

.post-card:not(.featured) .post-img-wrapper {
    aspect-ratio: 16 / 10;
    margin-bottom: 1.5rem;
}

.post-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Metadados */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.post-category {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ouro-vibrante);
    font-family: var(--font-body);
}

.post-date {
    font-size: 0.72rem;
    opacity: 0.45;
    font-family: var(--font-body);
}

.post-title {
    font-family: var(--font-heading);
    color: var(--texto-primario);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-card.featured .post-title     { font-size: clamp(1.8rem, 3vw, 3rem); }
.post-card:not(.featured) .post-title { font-size: clamp(1.3rem, 2vw, 1.8rem); }

.post-excerpt {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.65;
    margin-bottom: 1.5rem;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--texto-primario);
    text-decoration: none;
    border-bottom: 1px solid var(--ouro-vibrante);
    padding-bottom: 2px;
    transition: color 0.3s, gap 0.3s;
}

.post-read-more:hover {
    color: var(--ouro-vibrante);
    gap: 0.8rem;
}

.post-read-more::after { content: '→'; }

/* ══════════════════════════════════════
   SINGLE POST — post.html
   ══════════════════════════════════════ */

/* Barra de progresso de leitura */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--ouro-vibrante), var(--ouro-vibrante));
    z-index: 9001;
    pointer-events: none;
    will-change: width;
}

/* Hero imersivo do post */
.post-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0 0 5rem;
}

.post-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.post-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    transition: transform 0.1s linear;
    will-change: transform;
}

.post-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 0 5%;
    color: var(--branco-base);
}

.post-hero-category {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ouro-vibrante);
    margin-bottom: 1rem;
}

.post-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 400;
    color: var(--branco-base);
    line-height: 1.15;
    margin-bottom: 1.4rem;
}

.post-hero-meta {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(244, 241, 234, 0.55);
}

/* Corpo narrativo */
.post-body {
    max-width: 680px;
    margin: 0 auto;
    padding: 6rem 5% 8rem;
}

/* Parágrafo narrativo — estado inicial para GSAP animar */
.narrative-p {
    font-size: 1.1rem;
    line-height: 1.95;
    color: var(--texto-primario);
    opacity: 0;
    transform: translateY(22px);
    margin-bottom: 2rem;
}

/* Pull Quote */
.pull-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--ouro-vibrante);
    font-style: italic;
    line-height: 1.35;
    border-left: 2px solid var(--ouro-vibrante);
    padding: 0.8rem 0 0.8rem 2rem;
    margin: 3.5rem 0;
    opacity: 0;
    transform: translateX(-18px);
}

/* Tags */
.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.post-tag {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 0, 0, 0.18);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    color: var(--texto-primario);
    opacity: 0.6;
}

/* Nav entre posts */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin-top: 6rem;
}

.post-nav-item {
    background: var(--branco-base);
    padding: 2.5rem 5%;
    text-decoration: none;
    transition: background 0.3s;
}

.post-nav-item:hover { background: var(--amarelo-pastel); }

.post-nav-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ouro-vibrante);
    margin-bottom: 0.6rem;
    opacity: 0.8;
}

.post-nav-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--texto-primario);
    font-weight: 400;
}

.post-nav-item.next { text-align: right; }

/* ── Mobile ── */
@media (max-width: 768px) {
    .blog-hero { padding: 8rem 20px 3rem; }

    .category-filter { padding: 0 20px 3rem; }

    .post-card.featured {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .post-card.medium,
    .post-card.small  { grid-column: 1 / -1; }

    .posts-grid { padding: 0 20px 5rem; }

    .post-hero { height: 75vh; }

    .post-body { padding: 4rem 20px 6rem; }

    .post-nav { grid-template-columns: 1fr; }
}
