/* ========================================
   BLOG HUB — REVISTA EDITORIAL DIGITAL
   UX otimizada para mulheres 40+
   ======================================== */

/* ========================================
   HERO EDITORIAL
   ======================================== */

.blog-hub-hero {
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    background-color: var(--color-accent-soft);
    color: var(--color-accent-strong);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.hero-eyebrow {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-hub-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent-strong);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-lead {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-accent-strong);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-guide {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-primary);
}

.hero-guide strong {
    color: var(--color-accent-strong);
}

@media (min-width: 768px) {
    .blog-hub-hero {
        padding: 6rem 2rem 4rem;
    }
    .blog-hub-hero h1 {
        font-size: 3rem;
    }
    .hero-lead {
        font-size: 1.125rem;
    }
}

/* ========================================
   POR ONDE COMEÇAR (PILLAR POSTS)
   ======================================== */

.blog-essentials {
    padding: 3.5rem 1.5rem;
    background: white;
}

.essentials-header {
    text-align: center;
    margin-bottom: 2rem;
}

.essentials-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--color-accent-strong);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.essentials-intro {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .blog-essentials {
        padding: 5rem 2rem;
    }
    .essentials-header h2 {
        font-size: 2.5rem;
    }
    .essentials-header {
        margin-bottom: 3rem;
    }
}

/* ========================================
   QUICK MENU (CHIPS)
   ======================================== */

.blog-quick-menu {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
}

.chips-scroll-container {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .chips-scroll-container {
        justify-content: center;
    }
}

.chips-scroll-container::-webkit-scrollbar {
    display: none;
}

.chip-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.625rem 1.25rem;
    background-color: var(--color-surface-default);
    border: 1px solid var(--color-border-default);
    border-radius: 9999px;
    color: var(--color-text-secondary);
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chip-link:hover {
    background-color: var(--color-accent-soft);
    border-color: var(--color-accent-soft);
    color: var(--color-accent-strong);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* ========================================
   CATEGORY SECTIONS
   ======================================== */

.blog-category-section {
    padding: 3.5rem 1.5rem;
    border-bottom: 1px solid var(--color-border-subtle);
}

.blog-category-section:nth-child(even) {
    background-color: var(--color-bg-subtle);
}

.section-header-editorial {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border-default);
    padding-bottom: 0.75rem;
}

.section-header-editorial h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.75rem;
    color: var(--color-accent-strong);
    margin: 0;
    line-height: 1.1;
}

.section-header-editorial .view-all-link {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-tertiary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
}

.section-header-editorial .view-all-link:hover {
    color: var(--color-accent);
    text-decoration: none;
}

@media (min-width: 768px) {
    .blog-category-section {
        padding: 3.5rem 2rem;
    }
    .section-header-editorial h2 {
        font-size: 2rem;
    }
}

/* ========================================
   CARD PILLAR (DOMINANTE)
   Proporção 16:9, imagem 65%, excerpt visível
   ======================================== */

.post-card-pillar {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.post-card-pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.post-card-pillar .post-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: var(--color-bg-muted);
}

.post-card-pillar .post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.post-card-pillar .post-content-wrapper {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.post-card-pillar .post-eyebrow {
    font-family: "Inter", sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    display: block;
}

.post-card-pillar h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--color-text-primary);
    margin: 0 0 0.75rem 0;
    transition: color 0.2s ease;
}

.post-card-pillar:hover h3 {
    color: var(--color-accent-strong);
}

.post-card-pillar p.excerpt {
    font-family: "Inter", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-pillar .post-date-hub {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .post-card-pillar .post-content-wrapper {
        padding: 2rem;
    }
    .post-card-pillar h3 {
        font-size: 1.5rem;
    }
    .post-card-pillar p.excerpt {
        font-size: 1rem;
    }
}

/* ========================================
   CARD FEATURED (DESTAQUE DE CATEGORIA)
   Proporção 4:3, imagem 55%, excerpt curto
   ======================================== */

.post-card-featured {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
}

.post-card-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.post-card-featured .post-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--color-bg-muted);
}

.post-card-featured .post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.post-card-featured .post-content-wrapper {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.post-card-featured .post-eyebrow {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 0.625rem;
    display: block;
}

.post-card-featured h4 {
    font-family: "Playfair Display", serif;
    font-size: 1.125rem;
    line-height: 1.35;
    color: var(--color-text-primary);
    margin: 0 0 0.625rem 0;
    transition: color 0.2s ease;
}

.post-card-featured:hover h4 {
    color: var(--color-accent-strong);
}

.post-card-featured p.excerpt {
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-featured .post-date-hub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .post-card-featured .post-content-wrapper {
        padding: 1.5rem;
    }
    .post-card-featured h4 {
        font-size: 1.25rem;
    }
}

/* ========================================
   CARD COMPACTO (POSTS SATÉLITES)
   Proporção 3:2, SEM excerpt, escaneável
   ======================================== */

.post-card-compact {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.post-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.post-card-compact .post-image-wrapper {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    background-color: var(--color-bg-muted);
}

.post-card-compact .post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.post-card-compact .post-content-wrapper {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.post-card-compact .post-eyebrow {
    font-family: "Inter", sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    display: block;
}

.post-card-compact h5 {
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-compact:hover h5 {
    color: var(--color-accent-strong);
}

.post-card-compact .post-date-hub {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

/* Grid para Pillar Posts (1 coluna mobile, 1 coluna desktop) */
.grid-pillar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-pillar {
        grid-template-columns: 1fr;
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Grid para Posts de Categoria (1 coluna mobile, 2 colunas desktop) */
.grid-category {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid-category {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ========================================
   SECTION FOOTER CTA
   ======================================== */

.section-footer-cta {
    margin-top: 2rem;
    text-align: center;
}

.btn-editorial-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border: 1px solid var(--color-border-strong);
    background-color: transparent;
    color: var(--color-text-primary);
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-radius: 9999px;
}

.btn-editorial-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-strong);
    background-color: var(--color-accent-soft);
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

@media (max-width: 767px) {
    /* Reduzir padding vertical para evitar sensação de lista infinita */
    .blog-essentials {
        padding: 2.5rem 1.25rem;
    }
    
    .blog-category-section {
        padding: 2.5rem 1.25rem;
    }
    
    /* Esconder link "Ver todos" no mobile */
    .section-header-editorial .view-all-link {
        display: none;
    }
    
    /* Ajustar chips para melhor scroll horizontal */
    .chips-scroll-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    /* Garantir que cards Pillar não sejam muito altos */
    .post-card-pillar .post-content-wrapper {
        padding: 1.25rem;
    }
    
    .post-card-pillar h3 {
        font-size: 1.125rem;
    }
    
    .post-card-pillar p.excerpt {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}
