/* ==========================================================================
   CSS EXCLUSIVO PARA A PILLAR PAGE (GUIA DEFINITIVO SEO)
   Design Editorial de Luxo
   ========================================================================== */

/* Fix para o position: sticky funcionar ignorando o overflow-x do styles.css */
html, body {
    overflow-x: clip !important;
}

.pillar-body {
    background-color: #F8F7F4;
    color: #302A27;
    font-family: 'Inter', sans-serif;
    margin-top: 75px;
}

/* Header Premium */
.pillar-header {
    background: #ffffff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.pillar-header .logo-container img {
    height: 40px;
    object-fit: contain;
}

.pillar-header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.pillar-nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.pillar-nav-link:hover {
    color: #854627;
}

.pillar-header-btn {
    background: #854627;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.3s;
}

.pillar-header-btn:hover {
    background: #6a361e;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .pillar-header {
        padding: 15px 20px;
    }
    .pillar-nav-link {
        display: none;
    }
}

/* Hero Editorial */
.pillar-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 450px;
    background-image: url('../img/hero-desktop.webp');
    background-size: cover;
    background-position: center 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(48,42,39,0.2) 0%, rgba(48,42,39,0.85) 100%);
}

.pillar-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    color: #fff;
}

.pillar-tag {
    display: inline-block;
    background-color: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 30px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.3);
}

.pillar-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.pillar-hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 300;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Estrutura de Leitura */
.pillar-container {
    max-width: 1200px;
    margin: 40px auto 100px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    position: relative;
    z-index: 5;
    align-items: start;
}

@media (max-width: 991px) {
    .pillar-container {
        grid-template-columns: 1fr;
        margin-top: 0;
        gap: 40px;
        padding: 40px 20px;
    }
}

.pillar-content {
    background-color: #fff;
    padding: 70px 60px;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
    .pillar-content {
        padding: 40px 25px;
    }
}

/* Tipografia do Artigo */
.pillar-content h2 {
    font-family: 'Courier Prime', monospace;
    color: #854627;
    font-size: 2.2rem;
    margin: 70px 0 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.pillar-content h2:first-child {
    margin-top: 0;
}

.pillar-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #302A27;
    font-size: 1.6rem;
    margin: 50px 0 20px;
}

.pillar-content p {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 25px;
}

.pillar-content strong {
    color: #854627;
    font-weight: 700;
}

.pillar-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.pillar-content li {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

/* Blocos de Destaque Clínico */
.clinical-box {
    background-color: #fcfbfa;
    border-left: 4px solid #854627;
    border: 1px solid #eaeaea;
    border-left-width: 4px;
    padding: 40px;
    border-radius: 8px;
    margin: 50px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.clinical-box h4 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    color: #854627;
    font-family: 'Courier Prime', monospace;
}

/* Imagens no Artigo */
.pillar-img-wrapper {
    margin: 50px 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.pillar-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.pillar-img-caption {
    background: #fcfbfa;
    padding: 15px 20px;
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    border-top: 1px solid #eee;
}

/* Galeria de Casos Reais */
.cases-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.cases-gallery .pillar-img-wrapper {
    margin: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.cases-gallery .case-full {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .cases-gallery {
        grid-template-columns: 1fr;
    }
}

/* Author Section (Fim do Post) */
.pillar-author-bio {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    background: #fcfbfa;
    padding: 50px;
    border-radius: 16px;
    margin-top: 70px;
    border: 1px solid #f0f0f0;
    align-items: center;
}

.pillar-author-bio img {
    width: 100%;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pillar-author-bio h4 {
    font-family: 'Courier Prime', monospace;
    font-size: 1.8rem;
    color: #854627;
    margin: 0 0 15px 0;
}

.pillar-author-bio p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .pillar-author-bio {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 25px;
    }
    .pillar-author-bio img {
        width: 150px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   SIDEBAR (TOC + CTAs)
   ========================================================================== */
.pillar-sidebar {
    position: sticky;
    top: 90px;
    height: max-content;
}

.toc-widget {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.toc-widget h4 {
    font-family: 'Courier Prime', monospace;
    color: #854627;
    font-size: 1.15rem;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #f7f5f0;
    padding-bottom: 10px;
}

.toc-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-widget li {
    margin-bottom: 10px;
}

.toc-widget a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
    transition: color 0.2s, transform 0.2s;
}

.toc-widget a:hover {
    color: #854627;
    font-weight: 600;
    transform: translateX(5px);
}

/* Ad Widget */
.ad-widget {
    background: linear-gradient(135deg, #854627 0%, #6a361e 100%);
    color: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(133,70,39,0.2);
}

.ad-widget h4 {
    font-family: 'Courier Prime', monospace;
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.ad-widget p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.ad-widget .btn-white {
    display: inline-block;
    background: #fff;
    color: #854627;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.3s;
    width: 100%;
}

.ad-widget .btn-white:hover {
    background: #f7f5f0;
    transform: translateY(-3px);
}
