/* ==========================================================================
   Premium Advertorial CSS - Health & Science Daily Theme
   ========================================================================== */

/* Variables & Base Values */
:root {
    --bg-color: #f7f9fc;
    --text-primary: #182029;
    --text-secondary: #4a5568;
    --accent-red: #e53e3e;
    --accent-blue: #3182ce;
    --accent-blue-hover: #2b6cb0;
    --white: #ffffff;
    --border-color: #e2e8f0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --spacing-sm: 0.5rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

/* Typography Basics */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-blue-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================================================
   Header
   ========================================================================== */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-red);
}

.nav-links a {
    margin-left: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-links .active-link {
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 4px;
}

/* ==========================================================================
   Layout (Article + Sidebar)
   ========================================================================== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

/* Article Styling */
.main-article {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 12px;
}

.category-badge {
    background: #fed7d7;
    color: #c53030;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.read-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 1rem;
}

.author-details strong {
    display: block;
    color: var(--text-primary);
}

.author-details span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-image-wrapper {
    margin: 2rem 0;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.article-body .lead-paragraph {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
}

.article-body h2 {
    font-size: 2rem;
    margin-top: 3rem;
}

.pull-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent-blue);
    border-left: 4px solid var(--accent-blue);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
}

.pull-quote span {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: block;
    margin-top: 0.75rem;
}

/* Glassmorphism Feature Box */
.feature-box {
    background: rgba(49, 130, 206, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(49, 130, 206, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.feature-box h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-box ul {
    list-style-position: inside;
    margin-left: 0.5rem;
}

.feature-box li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
    border: 2px dashed var(--accent-blue);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.trending-list {
    list-style: none;
}

.trending-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.trending-list li:last-child {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-list a {
    font-weight: 600;
    color: var(--text-primary);
}

.trending-list a:hover {
    color: var(--accent-blue);
}

/* Sticky Promo */
.sticky-widget {
    position: sticky;
    top: 100px;
}

.promo-tag {
    display: inline-block;
    background: #e2e8f0;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.promo-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.promo-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.promo-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Buttons & Utils (Designed by StitchMCP)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 1.25rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 1.1rem;
    width: 100%;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px; /* GARANTE O ESPAÇAMENTO PERFEITO */
    margin-top: 2rem;
}

.btn-primary {
    background: var(--accent-red);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(229, 62, 62, 0.4);
    border: 2px solid var(--accent-red);
}

.btn-primary:hover {
    background: #c53030;
    border-color: #c53030;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
}

.btn-secondary:hover {
    background: rgba(229, 62, 62, 0.08);
    color: #c53030;
}

.btn-block {
    display: block;
    width: 100%;
    background: var(--accent-red);
    color: var(--white);
}

.btn-block:hover {
    background: #c53030;
    color: var(--white);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background: var(--white);
    padding: 3rem 0;
    margin-top: 4rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.copyright {
    margin-top: 1rem;
    font-weight: bold;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.breadcrumb a {
    color: var(--text-secondary);
    font-weight: 600;
}
.breadcrumb a:hover { color: var(--accent-blue); }
.breadcrumb span { margin: 0 .35rem; }

/* ==========================================================================
   Trust Row
   ========================================================================== */
.trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(49,130,206,.06), rgba(229,62,62,.04));
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.trust-item {
    text-align: center;
    display: flex;
    flex-direction: column;
}
.trust-item strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent-blue);
    line-height: 1.2;
}
.trust-item span {
    font-size: .8rem;
    color: var(--text-secondary);
    margin-top: .25rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section {
    margin: 3rem 0 1rem;
}
.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: .75rem;
    background: var(--white);
    transition: box-shadow .2s;
}
.faq-item[open] {
    box-shadow: var(--shadow-soft);
    border-color: rgba(49,130,206,.35);
}
.faq-item summary {
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.05rem;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--accent-red);
    font-weight: 300;
    transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
    margin-top: .75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Footer Legal Links
   ========================================================================== */
.footer-links {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: .85rem;
    border-bottom: 1px dotted var(--text-secondary);
    padding-bottom: 1px;
}
.footer-links a:hover { color: var(--accent-blue); border-color: var(--accent-blue); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        flex-direction: row;
    }
    .sidebar-widget {
        flex: 1;
    }
    .sticky-widget {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    .main-article {
        padding: 1.5rem;
    }
    .sidebar {
        flex-direction: column;
    }
    .nav-links {
        display: none; /* simple mobile header */
    }
    .trust-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
