/* Blog Clínica Siso Cianorte · CSS específico de leitura */

/* === Breadcrumb === */
.breadcrumb { padding: 88px 24px 0; max-width: 1148px; margin: 0 auto; }
.breadcrumb ol { list-style: none; padding: 16px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-500); }

/* Back button - aparece embaixo do breadcrumb */
.back-btn-wrap { max-width: 1148px; margin: 12px auto 0; padding: 0 24px; }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1.5px solid var(--gold-bright);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--primary-900);
  text-decoration: none;
  transition: background .3s ease, color .3s ease, transform .3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .3s ease, gap .25s ease;
}
.back-btn svg { color: var(--gold-bright); flex-shrink: 0; transition: transform .25s ease, color .25s ease; }
.back-btn:hover {
  background: var(--gold-bright);
  color: var(--primary-900);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.32);
  gap: 12px;
}
.back-btn:hover svg { color: var(--primary-900); transform: translateX(-3px); }
@media (max-width: 720px) {
  .back-btn-wrap { padding: 0 20px; }
  .back-btn { padding: 10px 16px; font-size: 12.5px; }
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li::after { content: "/"; color: var(--ink-300); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--ink-700); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--primary-800); }
.breadcrumb [aria-current="page"] { color: var(--primary-800); font-weight: 600; }

/* === Post page === */
.post-page { padding-bottom: 80px; }
.post { max-width: 1100px; padding: 0 24px; }

.post-header { padding: 32px 0 36px; max-width: 760px; margin: 0 auto; text-align: center; }
.post-category { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-700); padding: 6px 14px; background: var(--gold-100); border-radius: 999px; margin-bottom: 18px; }
.post-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.025em; color: var(--primary-900); margin: 0 0 18px; }
.post-excerpt { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; color: var(--ink-700); margin: 0 0 24px; max-width: 660px; margin-left: auto; margin-right: auto; }
.post-meta { display: flex; flex-direction: column; gap: 8px; align-items: center; padding-top: 20px; border-top: 1px solid var(--ink-100); }
.post-author { display: flex; flex-direction: column; gap: 2px; }
.post-author strong { font-family: var(--font-display); font-weight: 600; color: var(--primary-900); font-size: 14.5px; letter-spacing: -0.01em; }
.post-author span { font-size: 12.5px; color: var(--ink-500); }
.post-stats { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-500); }

.post-hero { max-width: 1100px; margin: 0 auto 48px; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 1200/630; background: linear-gradient(135deg, var(--gold-100), var(--rose-100)); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* === Layout: 2 colunas (TOC sticky + body) === */
.post-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; max-width: 1100px; margin: 0 auto; }
.post-toc { position: sticky; top: 100px; align-self: start; }
.post-toc .toc-title { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--gold-700); margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.1em; }
.post-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; padding-left: 16px; border-left: 2px solid var(--ink-100); }
.post-toc a { font-size: 13.5px; line-height: 1.4; color: var(--ink-700); transition: color 0.2s ease; display: block; }
.post-toc a:hover { color: var(--primary-800); }

/* === Body do artigo === */
.post-body { max-width: 720px; }
.post-body section { margin-bottom: 36px; }
.post-body h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.2; letter-spacing: -0.02em; color: var(--primary-900); margin: 0 0 16px; scroll-margin-top: 100px; }
.post-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; color: var(--primary-900); margin: 24px 0 12px; }
.post-body p { font-size: 16.5px; line-height: 1.75; color: var(--ink-900); margin: 0 0 18px; }
.post-body p strong { color: var(--primary-900); font-weight: 600; }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 22px; }
.post-body li { font-size: 16px; line-height: 1.7; color: var(--ink-900); margin-bottom: 8px; }
.post-body li strong { color: var(--primary-900); font-weight: 600; }
.post-body em { font-style: normal; color: var(--ink-500); font-size: 14.5px; display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ink-100); }

/* === FAQ === */
.post-faq { margin: 56px 0 32px; padding-top: 36px; border-top: 1px solid var(--ink-100); }
.post-faq h2 { margin-bottom: 22px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--ink-100); border-radius: 12px; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.faq-item[open] { border-color: var(--gold-300); box-shadow: var(--shadow-md); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--primary-900); letter-spacing: -0.01em; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question svg { color: var(--gold-700); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item[open] .faq-question svg { transform: rotate(180deg); }
.faq-answer { padding: 0 22px 18px; }
.faq-answer p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-700); }

/* === CTA + Related === */
.post-cta { margin: 48px 0 32px; padding: 32px 28px; background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%); color: var(--white); border-radius: var(--radius-lg); text-align: center; }
.post-cta h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 12px; color: var(--white); }
.post-cta p { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); margin: 0 0 22px; }
.post-cta .btn-primary { background: var(--gold-500); color: var(--primary-900); }
.post-cta .btn-primary:hover { background: var(--gold-600); }

.post-related { margin-top: 32px; padding: 24px 22px; background: var(--cream); border-radius: var(--radius-lg); border: 1px solid var(--gold-100); }
.post-related h3 { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--gold-700); margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.1em; }
.post-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.post-related a { display: block; padding: 12px 14px; background: var(--white); border-radius: 10px; transition: transform 0.2s ease, box-shadow 0.2s ease; border: 1px solid transparent; font-size: 14.5px; line-height: 1.4; font-family: var(--font-display); font-weight: 600; color: var(--primary-900); letter-spacing: -0.01em; }
.post-related a:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); border-color: var(--gold-300); }
.post-related .rel-cat { display: block; font-family: var(--font-display); font-size: 11px; font-weight: 600; color: var(--gold-700); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }

/* === Blog index === */
.blog-page { padding-bottom: 80px; }
.blog-hero { padding: 100px 0 56px; background: radial-gradient(ellipse 70% 60% at 75% 30%, var(--rose-100) 0%, transparent 70%), linear-gradient(180deg, var(--cream) 0%, var(--white) 100%); }
.blog-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4.5vw, 50px); line-height: 1.1; letter-spacing: -0.025em; color: var(--primary-900); margin: 0 0 18px; max-width: 760px; }
.blog-hero p { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; color: var(--ink-700); margin: 0; max-width: 660px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.post-card { background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-300); }
.post-card-link { display: flex; flex-direction: column; height: 100%; }
.post-card-image { aspect-ratio: 1200/630; overflow: hidden; background: linear-gradient(135deg, var(--gold-100), var(--rose-100)); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-body { padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-cat { display: inline-block; font-size: 11px; font-weight: 600; color: var(--gold-700); text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 10px; background: var(--gold-100); border-radius: 999px; align-self: flex-start; }
.post-card-body h2,
.post-card-body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--primary-900); margin: 0; }
.post-card-body p { font-size: 14px; line-height: 1.55; color: var(--ink-700); margin: 0; }
.post-card-meta { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-500); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ink-100); }

/* === Responsividade === */
@media (max-width: 980px) {
  .post-layout { grid-template-columns: 1fr; gap: 32px; }
  .post-toc { position: relative; top: 0; padding: 22px; background: var(--cream); border-radius: var(--radius-md); }
  .post-toc ol { padding-left: 0; border-left: 0; }
}

@media (max-width: 720px) {
  .breadcrumb { padding-top: 72px; }
  .breadcrumb ol { padding-top: 12px; }
  .post { padding: 0 18px; }
  .post-header { padding: 24px 0 28px; }
  .post-hero { aspect-ratio: 1200/630; border-radius: var(--radius-md); margin-bottom: 32px; }
  .post-body { max-width: 100%; }
  .post-body p, .post-body li { font-size: 15.5px; }
  .post-cta { padding: 24px 20px; }
  .blog-hero { padding: 80px 0 40px; }
  .post-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 480px) {
  .post-toc { padding: 18px; }
  .faq-question { padding: 14px 16px; font-size: 15px; }
  .faq-answer { padding: 0 16px 14px; }
}
