/* ============================
   BLOG — Dra. Viviane Rossi
   Imported AFTER shared.css
   ============================ */

/* ============================
   ARTICLE HERO
   ============================ */
.article-hero {
    padding: 140px 0 48px;
    background: var(--color-bg-alt);
}
.article-hero .container {
    max-width: 740px;
}
.article-hero-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent-hover);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.article-hero-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--color-accent);
}
.article-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}
.article-meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 16px;
}
.article-meta-separator {
    width: 3px;
    height: 3px;
    background: var(--color-accent-light);
    border-radius: 50%;
}

/* ============================
   ARTICLE HERO IMAGE
   ============================ */
.article-hero-image {
    margin-top: 32px;
}
.article-hero-image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

/* ============================
   TABLE OF CONTENTS
   ============================ */
.article-toc {
    background: var(--color-bg-alt);
    border-radius: 12px;
    padding: 24px 32px;
    margin-bottom: 40px;
}
.article-toc-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 12px;
}
.article-toc ol {
    list-style: none;
    counter-reset: toc;
    padding-left: 0;
    margin: 0;
}
.article-toc li {
    counter-increment: toc;
    margin-bottom: 6px;
}
.article-toc li::before {
    content: counter(toc) ".";
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.85rem;
    margin-right: 8px;
}
.article-toc a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.article-toc a:hover {
    color: var(--color-accent-hover);
}

/* ============================
   ARTICLE BODY
   ============================ */
.article-body {
    max-width: 740px;
    margin: 0 auto;
    padding: 64px 24px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text);
}
.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-top: 48px;
    margin-bottom: 16px;
}
.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 36px;
    margin-bottom: 12px;
}
.article-body p {
    margin-bottom: 20px;
}
.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}
.article-body li {
    margin-bottom: 8px;
}
.article-body img {
    border-radius: 8px;
    margin: 32px 0;
}
.article-body blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 16px 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--color-text-light);
    background: var(--color-bg-alt);
    border-radius: 0 8px 8px 0;
}
.article-body blockquote p {
    margin-bottom: 0;
}
.article-body strong {
    font-weight: 500;
}
.article-body a {
    color: var(--color-accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.article-body a:hover {
    color: var(--color-text);
}
.article-body .btn-primary {
    color: var(--color-white);
    text-decoration: none;
}

/* ============================
   AUTHOR BIO
   ============================ */
.author-bio {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    margin: 48px 0 0;
    background: var(--color-bg-alt);
    border-radius: 12px;
}
.author-bio img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    margin: 0;
}
.author-bio-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.author-bio-text strong {
    font-size: 0.95rem;
    font-weight: 600;
}
.author-bio-text span {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* ============================
   ARTICLE CTA (inline)
   ============================ */
.article-cta {
    background: var(--color-bg-alt);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 48px 0;
}
.article-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 12px;
}
.article-cta p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 24px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.article-cta .btn-primary {
    text-align: center;
}

/* ============================
   RELATED ARTICLES
   ============================ */
.related-articles {
    padding: 80px 0;
    background: var(--color-bg-alt);
}
.related-articles .container {
    max-width: 900px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* ============================
   BLOG GRID (index)
   ============================ */
.blog-hero {
    padding: 140px 0 60px;
    background: var(--color-bg-alt);
    text-align: center;
}
.blog-hero .section-subtitle {
    margin: 0 auto;
}
.blog-listing {
    padding: 80px 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

/* ============================
   BLOG CARD (shared: index + related)
   ============================ */
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s var(--ease-out-quart);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(44,39,36,0.08);
    border-color: var(--color-accent-light);
}
.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent-hover);
    margin-bottom: 8px;
}
.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 8px;
}
.blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.65;
    margin-bottom: 16px;
    flex: 1;
}
.blog-card-date {
    font-size: 0.72rem;
    color: var(--color-accent);
    font-weight: 400;
}

/* ============================
   CTA SECTION — btn override
   (cta-section bg is dark via landing-pages.css,
   btn-primary needs accent color for contrast)
   ============================ */
.cta-section .btn-primary {
    background: var(--color-accent);
    text-align: center;
}
.cta-section .btn-primary:hover {
    background: var(--color-accent-hover);
}

/* ============================
   READING PROGRESS BAR
   ============================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-accent);
    z-index: 1001;
    transition: width 0.1s linear;
}

/* ============================
   TOC SCROLL SPY
   ============================ */
.article-toc a.toc-active {
    color: var(--color-accent-hover);
    font-weight: 500;
    background: rgba(164,162,150,0.08);
}

/* ============================
   SCROLL OFFSET — compensate fixed header
   ============================ */
.article-body h2[id] {
    scroll-margin-top: 80px;
}

/* ============================
   BLOG DEPOIMENTO — premium quote
   ============================ */
.blog-depoimento {
    text-align: center;
    max-width: 580px;
    margin: 48px auto;
    padding: 0;
}
.blog-depoimento blockquote {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-text);
    position: relative;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-left: none;
    border-radius: 0;
}
.blog-depoimento blockquote::before {
    content: '\201C';
    display: block;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--color-accent-light);
    font-family: var(--font-heading);
    margin-bottom: 8px;
}
.blog-depoimento figcaption {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 16px;
    font-style: normal;
}

/* ============================
   FAQ override — inside article-body
   ============================ */
.article-body .faq-list {
    max-width: 100%;
    margin-top: 0;
}

/* ============================
   INFOGRAPHIC — shared base
   ============================ */
.info-block {
    margin: 40px 0;
    padding: 28px;
    background: var(--color-bg-alt);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
}
.info-block-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
    color: var(--color-text);
}
.info-block--clean { background: transparent; border: none; padding-left: 0; padding-right: 0; }
.info-block--accent { border: none; border-top: 3px solid var(--color-accent); border-radius: 0; }

/* ============================
   1. TIMELINE — stepped numbers
   ============================ */
.timeline-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 16px;
}
.timeline-card {
    padding: 28px 20px 24px;
    background: var(--color-bg);
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    transition: width 0.4s var(--ease-out-quart);
}
.timeline-card:nth-child(1)::before {
    width: 100%;
    background: var(--color-accent-hover);
}
.timeline-card:nth-child(2)::before {
    width: 60%;
    background: var(--color-accent);
}
.timeline-card:nth-child(3)::before {
    width: 30%;
    background: var(--color-accent-light);
}
.timeline-card:hover::before {
    width: 100%;
}
.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(44,39,36,0.07);
}
/* First card circle — filled accent */
.timeline-card:first-child .timeline-step {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}
.timeline-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-bg);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
}
.timeline-card-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-hover);
    margin-bottom: 8px;
}
.timeline-card-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text);
}
.timeline-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.55;
}
/* Dashboard — "No seu dia a dia" */
.timeline-dashboard {
    display: flex;
    background: var(--color-bg);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    overflow: hidden;
}
.dashboard-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 22px 16px;
    position: relative;
    transition: background 0.3s ease;
}
.dashboard-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(0,0,0,0.06);
}
.dashboard-item:hover {
    background: var(--color-bg-alt);
}
.dashboard-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.02em;
}
.dashboard-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-accent);
    margin: 0 auto 10px;
    transition: width 0.3s var(--ease-out-quart);
}
.dashboard-item:hover .dashboard-label::before {
    width: 40px;
}
.dashboard-desc {
    font-size: 0.75rem;
    color: var(--color-text-light);
    line-height: 1.45;
}
/* Hover accent underline */
.dashboard-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s var(--ease-out-quart);
}
.dashboard-item:hover::before {
    width: 60%;
}

/* ============================
   2. TABELA COMPARATIVA
   ============================ */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.compare-table thead th {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid rgba(0,0,0,0.08);
    background: var(--color-bg-alt);
}
.compare-table thead th:first-child {
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.compare-table tbody tr:nth-child(even) td {
    background: rgba(0,0,0,0.015);
}
.compare-table tbody td {
    padding: 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    vertical-align: middle;
    transition: background 0.2s ease;
}
.compare-table tbody td:first-child {
    font-weight: 500;
    color: var(--color-text);
}
.compare-table tbody tr:last-child td {
    border-bottom: none;
}
.compare-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}
.compare-bar-track {
    flex: 1;
    height: 10px;
    background: rgba(0,0,0,0.04);
    border-radius: 5px;
    overflow: hidden;
}
.compare-bar-fill {
    height: 100%;
    border-radius: 5px;
    width: 0;
    transition: width 0.8s var(--ease-out-quart);
}
.compare-bar-fill--high {
    background: var(--color-text);
}
.compare-bar-fill--low {
    background: var(--color-accent);
}
.compare-bar-label {
    font-size: 0.82rem;
    color: var(--color-text-light);
    white-space: nowrap;
    width: 85px;
    flex-shrink: 0;
}
.compare-winner {
    color: var(--color-accent-hover);
    font-weight: 600;
    font-size: 0.82rem;
    margin-left: 2px;
}
.compare-table tbody tr:hover td {
    background: rgba(164,162,150,0.06);
}

/* ============================
   3. BARRAS DE DURACAO
   ============================ */
.duration-bars {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.duration-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.duration-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.duration-item-row {
    display: flex;
    align-items: center;
}
.duration-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
}
.duration-track {
    height: 14px;
    background: rgba(0,0,0,0.04);
    border-radius: 7px;
    overflow: hidden;
    flex: 1;
}
.duration-fill {
    height: 100%;
    border-radius: 7px;
    background: linear-gradient(90deg, var(--color-accent-light), var(--color-accent));
    width: 0;
    transition: width 1s var(--ease-out-quart);
}
.duration-item:nth-child(2) .duration-fill {
    transition-delay: 150ms;
}
.duration-item:nth-child(3) .duration-fill {
    transition-delay: 300ms;
}
.duration-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

/* ============================
   4. DICAS — ranked editorial list
   ============================ */
.tips-ranked {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: padding-left 0.25s ease;
}
.tip-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
/* Hero tip — #1, most important */
.tip-item--hero {
    background: var(--color-bg-alt);
    border-radius: 12px;
    border-bottom: none;
    padding: 24px;
    margin-bottom: 8px;
    border-left: 3px solid var(--color-accent);
}
.tip-item:hover {
    padding-left: 8px;
}
.tip-item--hero:hover {
    padding-left: 24px;
}
.tip-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-bg);
    border-radius: 50%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* Hero number — larger, darker */
.tip-item--hero .tip-number {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    background: var(--color-accent-hover);
}
/* Regular numbers — descending weight */
.tip-item:not(.tip-item--hero) .tip-number {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    background: var(--color-accent);
}
.tip-item:nth-child(4) .tip-number {
    background: var(--color-accent-light);
}
.tip-item:nth-child(5) .tip-number {
    background: transparent;
    border: 2px solid var(--color-accent-light);
    color: var(--color-text-light);
}
/* Hover — number glow + scale */
.tip-item:hover .tip-number {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(164,162,150,0.12);
}
.tip-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}
.tip-card-title {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
}
.tip-item--hero .tip-card-title {
    font-size: 1.05rem;
}
.tip-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================
   5. MITOS — border-left accent
   ============================ */
.myths-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.myth-item {
    padding: 24px 28px;
    background: var(--color-bg);
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.04);
    border-left: 3px solid var(--color-accent-hover);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.myth-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44,39,36,0.06);
}
.myth-item--partial {
    border-left-color: var(--color-accent);
}
.myth-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-hover);
    margin-bottom: 10px;
}
.myth-item--partial .myth-badge {
    color: var(--color-text-light);
}
.myth-claim {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text);
}
.myth-answer {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

/* ============================
   SEMANTIC LIST RESET — infographics
   ============================ */
.article-body .timeline-cards,
.article-body .tips-ranked {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.myths-list dd {
    margin-left: 0;
}

/* ============================
   RESPONSIVE — Blog
   ============================ */
@media (max-width: 768px) {
    .article-hero { padding: 80px 0 32px; }
    .article-toc { padding: 20px 24px; }
    .article-body { padding: 40px 28px; font-size: 1rem; }
    .article-body h2 { font-size: 1.35rem; margin-top: 36px; }
    .article-cta { padding: 32px 24px; }
    .article-cta .btn-primary { width: 100%; justify-content: center; text-align: center; }
    .blog-hero { padding: 80px 0 40px; }
    .blog-listing { padding: 48px 0; }
    .blog-grid { grid-template-columns: 1fr; gap: 24px; }
    .related-articles { padding: 60px 0; }
    .related-grid { grid-template-columns: 1fr; }

    .blog-depoimento { margin: 36px auto; max-width: 100%; }

    /* Infographics responsive */
    .info-block { padding: 28px 20px; margin: 32px 0; }
    .info-block:has(.compare-table) { overflow-x: auto; }
    .timeline-cards { grid-template-columns: 1fr; gap: 12px; }
    .timeline-card { text-align: left; padding-left: 48px; }
    .timeline-card::before {
        left: 0;
        transform: none;
    }
    .timeline-step {
        position: absolute; left: 0; top: 50%;
        transform: translateY(-50%);
        width: 36px; height: 36px; font-size: 1.15rem;
    }
    /* Dashboard — stack vertical on mobile */
    .timeline-dashboard { flex-direction: column; }
    .dashboard-item:not(:last-child)::after {
        right: 20%;
        top: auto;
        bottom: 0;
        height: 1px;
        width: 60%;
        left: 20%;
    }
    .dashboard-item { padding: 16px; }

    /* Tips — hero loses left border, gains top */
    .tip-item--hero {
        border-left: none;
        border-top: 3px solid var(--color-accent);
    }

    .compare-table { min-width: 0; }
    .compare-table thead th,
    .compare-table tbody td { padding: 10px 8px; font-size: 0.85rem; }
    .compare-bar-label { width: 70px; font-size: 0.72rem; }

    .duration-label { font-size: 0.92rem; }
    .duration-value { font-size: 0.88rem; min-width: 55px; }

    .myth-item { padding: 20px 22px; }
}

/* ============================
   FOCUS INDICATORS — WCAG AA
   ============================ */
.article-toc a:focus-visible {
    color: var(--color-accent-hover);
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}
.blog-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(44,39,36,0.08);
    border-color: var(--color-accent-light);
}
.article-body a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .compare-bar-fill,
    .duration-fill,
    .blog-card,
    .reading-progress,
    .timeline-card,
    .timeline-card::before,
    .dashboard-item,
    .dashboard-item::before,
    .dashboard-label::before,
    .myth-item,
    .tip-item,
    .tip-number,
    .compare-table tbody td,
    .article-toc a {
        transition: none;
    }
}

