/* =========================================
   PORTAL DA ESTAMPA - PREMIUM BLOG CSS
   ========================================= */

:root {
    --blog-radius: 28px;
    --blog-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
}

/* --- Skeleton Loading --- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 380px;
    border-radius: var(--blog-radius);
    margin-bottom: 24px;
}

/* --- Category Chips --- */
#cat-filters {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scrollbar-width: none;
}
#cat-filters::-webkit-scrollbar { display: none; }

.cat-chip {
    padding: 10px 24px;
    border-radius: 100px;
    background: #fdfdfd;
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.cat-chip:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
}
.cat-chip.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    box-shadow: 0 5px 15px rgba(229, 62, 62, 0.3);
}

/* --- Featured Card --- */
.featured-card {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 480px;
    border-radius: var(--blog-radius);
    overflow: hidden;
    margin-bottom: 40px;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--blog-shadow);
    border: 1.5px solid var(--gray-200);
}
.featured-card img.bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-card:hover img.bg { transform: scale(1.05); }
.featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 1;
}
.featured-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
}
.featured-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #fff;
}
.featured-card .tag-destaque {
    background: var(--red);
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

/* --- Bento Grid --- */
.bento-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .bento-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
    .bento-news-grid { grid-template-columns: repeat(6, 1fr); }
    .bento-post-card.size-lg { grid-column: span 3; }
    .bento-post-card.size-md { grid-column: span 3; }
    .bento-post-card.size-sm { grid-column: span 2; }
}

.bento-post-card {
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--blog-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.bento-post-card:hover {
    transform: translateY(-8px);
    border-color: var(--red);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.bento-img {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}
.bento-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-post-card:hover .bento-img img { transform: scale(1.08); }

.bento-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.bento-cat {
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}
.bento-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--gray-900);
}
.bento-resumo {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bento-meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    padding-top: 15px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Modal Leitura --- */
.article-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}
.article-modal.active { transform: translateY(0); }

.article-header-nav {
    position: sticky;
    top: 0;
    padding: 15px 25px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-hero {
    width: 100%;
    height: 50vh;
    position: relative;
    background: #f0f0f0;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100px;
    background: linear-gradient(to top, #fff, transparent);
}

.article-body {
    padding: 0 24px 120px;
    max-width: 800px;
    margin: -60px auto 0;
    position: relative;
    z-index: 2;
}

.article-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.05;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.article-content {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--gray-800);
}
.article-content p { margin-bottom: 30px; }

/* Share Buttons */
.share-bar {
    display: flex;
    gap: 15px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--gray-100);
}
.btn-share {
    padding: 12px 25px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-share-wa { background: #25D366; color: #fff; }
.btn-share-wa:hover { background: #128c7e; }
