/* ==========================================================================
   RIOS MINISTÉRIO - PORTAL DE ENSINOS & BLOG PROFISSIONAL
   Estilo Executivo Realeza: Petróleo (#0B2D35), Dourado (#C89B42) & Leitura Limpa
   ========================================================================== */

:root {
    --bg-main: #F4F7F8;
    --bg-card: #FFFFFF;
    --bg-dark: #0B2D35;
    --bg-dark-alt: #144D5B;
    --gold-primary: #C89B42;
    --gold-light: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #C89B42 50%, #997328 100%);
    --text-main: #0B2D35;
    --text-muted: #475569;
    --text-light: #64748B;
    --text-white: #FFFFFF;
    --shadow-sm: 0 4px 12px rgba(11, 45, 53, 0.06);
    --shadow-md: 0 10px 25px rgba(11, 45, 53, 0.12);
    --shadow-lg: 0 20px 45px rgba(11, 45, 53, 0.2);
    --border-gold: rgba(200, 155, 66, 0.35);
    --font-serif: 'Domine', 'Playfair Display', serif;
    --font-title: 'Cinzel', serif;
    --font-sans: 'Poppins', 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg-main); color: var(--text-main); font-family: var(--font-sans); line-height: 1.8; overflow-x: hidden; }

/* Barra de Progresso de Leitura */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gold-gradient);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* NAVBAR (Sincronizada com o Site Principal) */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 85px;
    background: linear-gradient(180deg, #0B2D35 0%, #082127 100%);
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    z-index: 1000;
}
.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 58px; width: auto; object-fit: contain; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 0.5px;
}
.nav-link:hover, .nav-link.active { color: var(--gold-light); }
.blog-badge {
    background: var(--gold-gradient);
    color: #0B2D35 !important;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(200, 155, 66, 0.4);
}

/* HERO DO BLOG (DESTAQUE PRINCIPAL) */
.blog-hero {
    background: linear-gradient(135deg, #0B2D35 0%, #144D5B 100%);
    padding: 60px 0 80px;
    color: #FFFFFF;
    border-bottom: 3px solid var(--gold-primary);
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(200, 155, 66, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.hero-tag {
    display: inline-block;
    background: rgba(200, 155, 66, 0.25);
    color: #FEE180;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--gold-primary);
    margin-bottom: 20px;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #FFFFFF;
}
.hero-excerpt {
    font-size: 1.15rem;
    color: #CBD5E1;
    margin-bottom: 30px;
    line-height: 1.7;
}
.meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #94A3B8;
    margin-bottom: 32px;
}
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-gradient);
    color: #0B2D35;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(200, 155, 66, 0.4);
    transition: var(--transition);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(200, 155, 66, 0.6); }
.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-gold);
}
.hero-image-wrapper img { width: 100%; height: 420px; object-fit: cover; display: block; }

/* FILTROS DE CATEGORIA */
.category-bar {
    max-width: 1240px;
    margin: -30px auto 40px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}
.filter-pills {
    background: #FFFFFF;
    padding: 16px 24px;
    border-radius: 60px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px solid var(--border-gold);
}
.filter-btn {
    background: transparent;
    border: none;
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--bg-dark);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(11, 45, 53, 0.2);
}

/* LAYOUT PRINCIPAL (GRID + SIDEBAR) */
.blog-main-layout {
    max-width: 1240px;
    margin: 0 auto 80px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 48px;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}
.post-card {
    background: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(11, 45, 53, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}
.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover .card-img-wrapper img { transform: scale(1.08); }
.card-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--bg-dark);
    color: #FEE180;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}
.card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.card-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 12px; }
.card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.card-title:hover { color: var(--gold-primary); }
.card-excerpt { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 24px; flex-grow: 1; line-height: 1.6; }
.card-link {
    font-weight: 700;
    color: var(--bg-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.card-link:hover { color: var(--gold-primary); gap: 12px; }

/* SIDEBAR DO BLOG */
.blog-sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar-box {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gold);
}
.author-box { text-align: center; }
.author-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 3px solid var(--gold-primary);
    box-shadow: var(--shadow-md);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 6px; }
.author-role { font-size: 0.85rem; color: var(--gold-primary); font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.author-bio { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.sidebar-title { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.sidebar-title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--gold-primary);
}
.newsletter-box { background: linear-gradient(135deg, #0B2D35 0%, #144D5B 100%); color: #FFFFFF; text-align: center; }
.newsletter-box p { color: #CBD5E1; font-size: 0.95rem; margin-bottom: 20px; }
.newsletter-input {
    width: 100%; padding: 14px 18px; border-radius: 30px; border: none; margin-bottom: 12px; font-size: 0.95rem; font-family: var(--font-sans); outline: none;
}
.newsletter-btn { width: 100%; padding: 14px; border-radius: 30px; border: none; background: var(--gold-gradient); color: #0B2D35; font-weight: 700; cursor: pointer; transition: var(--transition); }
.newsletter-btn:hover { transform: scale(1.02); }

/* ARTIGO INDIVIDUAL (PÁGINA DO POST) */
.article-header {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 24px;
    text-align: center;
}
.article-title { font-family: var(--font-serif); font-size: 2.8rem; line-height: 1.25; margin: 20px 0; color: var(--text-main); }
.article-meta { display: flex; justify-content: center; align-items: center; gap: 24px; color: var(--text-light); font-size: 0.95rem; margin-bottom: 30px; flex-wrap: wrap; }
.article-featured-img { max-width: 1000px; margin: 0 auto 50px; padding: 0 24px; }
.article-featured-img img { width: 100%; max-height: 540px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); border: 2px solid var(--border-gold); }
.article-body { max-width: 800px; margin: 0 auto 80px; padding: 0 24px; font-size: 1.18rem; color: #2D3748; line-height: 1.9; }
.article-body h2 { font-family: var(--font-serif); font-size: 1.85rem; color: var(--text-main); margin: 40px 0 20px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.06); }
.article-body p { margin-bottom: 24px; }
.article-body blockquote {
    background: rgba(200, 155, 66, 0.1);
    border-left: 5px solid var(--gold-primary);
    padding: 24px 30px;
    margin: 36px 0;
    border-radius: 0 16px 16px 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--bg-dark);
}
.article-body ul, .article-body ol { margin: 0 0 28px 28px; }
.article-body li { margin-bottom: 12px; }

/* CAIXA DE COMPARTILHAMENTO */
.share-bar {
    max-width: 800px; margin: 0 auto 60px; padding: 24px; background: #FFFFFF; border-radius: 16px; border: 1px solid var(--border-gold); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.share-buttons { display: flex; gap: 12px; }
.share-btn { padding: 10px 20px; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.share-whatsapp { background: #25D366; color: #FFF; }
.share-facebook { background: #1877F2; color: #FFF; }
.share-copy { background: var(--bg-dark); color: #FFF; border: none; cursor: pointer; }
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* POSTS RELACIONADOS */
.related-posts { max-width: 1240px; margin: 0 auto 80px; padding: 0 24px; }
.related-header { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 32px; text-align: center; }

/* FOOTER (Sincronizado com o Site) */
footer {
    background: var(--bg-dark);
    color: #FFFFFF;
    padding: 50px 24px 30px;
    text-align: center;
    border-top: 3px solid var(--gold-primary);
}
.footer-text { font-size: 0.95rem; color: #94A3B8; }

/* RESPONSIVO MOBILE */
@media (max-width: 992px) {
    .blog-main-layout, .hero-content { grid-template-columns: 1fr; }
    .hero-image-wrapper { order: -1; }
    .hero-title { font-size: 2rem; }
    .article-title { font-size: 2.1rem; }
    .article-body { font-size: 1.1rem; }
}
@media (max-width: 768px) {
    .navbar { height: 75px; }
    .nav-menu {
        position: fixed; top: 75px; left: -100%; width: 100%; height: calc(100vh - 75px);
        background: linear-gradient(180deg, #0B2D35 0%, #082127 100%);
        flex-direction: column; justify-content: flex-start; padding: 30px 20px;
        transition: left 0.4s ease; z-index: 1000;
    }
    .nav-menu.active { left: 0; }
    .menu-toggle { display: flex; flex-direction: column; gap: 6px; background: transparent; border: none; cursor: pointer; }
    .menu-toggle span { width: 26px; height: 3px; background: #FFF; border-radius: 2px; }
    .filter-pills { border-radius: 20px; }
    .share-bar { flex-direction: column; text-align: center; }
}
