/* ============================================================
   POST-EXTRAS.CSS — Paty Connect
   Componentes visuais profissionais para artigos
   ============================================================ */

/* --- BARRA DE PROGRESSO DE LEITURA --- */
.reading-progress {
  position: fixed;
  top: 64px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue2), var(--sky));
  z-index: 200;
  transition: width 0.1s linear;
}

/* --- BREADCRUMB --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.72); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { color: var(--sky); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* --- LAYOUT 2 COLUNAS (artigo + sidebar) --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  align-items: start;
}
.article-main { min-width: 0; }
.article-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }

/* --- BACK LINK --- */
.back-link-new {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue2);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--light);
  transition: background 0.2s;
}
.back-link-new:hover { background: #dbeafe; }

/* --- ARTICLE BODY ATUALIZADO --- */
.article-body-pro {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 52px;
  line-height: 1.85;
  font-size: 16px;
}
.article-body-pro h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--navy);
  margin: 44px 0 14px;
  line-height: 1.2;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light);
}
.article-body-pro h2:first-of-type { margin-top: 0; }
.article-body-pro h3 {
  font-weight: 800;
  font-size: 18px;
  color: var(--blue2);
  margin: 28px 0 10px;
}
.article-body-pro p { margin-bottom: 18px; color: #374151; }
.article-body-pro ul, .article-body-pro ol { margin: 12px 0 20px 24px; color: #374151; }
.article-body-pro li { margin-bottom: 8px; }
.article-body-pro strong { color: var(--navy); }
.article-body-pro blockquote {
  border-left: 4px solid var(--blue2);
  background: var(--light);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.7;
}
.article-body-pro table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(13,27,62,0.08);
}
.article-body-pro th {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
}
.article-body-pro td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--light);
  color: #374151;
}
.article-body-pro tr:last-child td { border-bottom: none; }
.article-body-pro tr:nth-child(even) td { background: #f8faff; }

/* --- TOC INLINE (mobile / topo do artigo) --- */
.toc-inline {
  background: var(--light);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 36px;
  border-left: 4px solid var(--blue2);
}
.toc-inline-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-inline ol { margin-left: 18px; }
.toc-inline li { margin-bottom: 6px; }
.toc-inline a { color: var(--blue2); text-decoration: none; font-size: 14px; font-weight: 700; }
.toc-inline a:hover { text-decoration: underline; }

/* --- TOC SIDEBAR --- */
.toc-sidebar {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.toc-sidebar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light);
  display: flex;
  align-items: center;
  gap: 7px;
}
.toc-sidebar ol { margin-left: 18px; list-style: decimal; }
.toc-sidebar li { margin-bottom: 8px; }
.toc-sidebar a { color: var(--blue2); text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.4; display: block; }
.toc-sidebar a:hover { color: var(--navy); }
.toc-sidebar a.active { color: var(--navy); }

/* --- RATINGS SIDEBAR --- */
.rating-sidebar {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.rating-sidebar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light);
}
.score-item { margin-bottom: 14px; }
.score-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.score-value { color: var(--blue2); }
.score-bar { height: 7px; background: var(--light); border-radius: 4px; overflow: hidden; }
.score-fill { height: 100%; background: linear-gradient(90deg, var(--blue2), var(--sky)); border-radius: 4px; transition: width 0.8s ease; }

/* --- CALLOUT BOXES --- */
.callout {
  display: flex;
  gap: 14px;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
  align-items: flex-start;
}
.callout-icon { font-size: 22px; flex-shrink: 0; line-height: 1; margin-top: 1px; }
.callout-content p { margin: 0; font-size: 14px; line-height: 1.65; color: inherit; }
.callout-content strong { display: block; font-size: 14px; margin-bottom: 4px; }
.callout.tip { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; }
.callout.tip .callout-content p { color: #166534; }
.callout.warning { background: #fffbeb; border: 1.5px solid #fcd34d; color: #92400e; }
.callout.warning .callout-content p { color: #92400e; }
.callout.info { background: var(--light); border: 1.5px solid #93c5fd; color: var(--navy); }
.callout.info .callout-content p { color: #374151; }
.callout.wg { background: #f5f3ff; border: 1.5px solid #c4b5fd; color: #4c1d95; }
.callout.wg .callout-content p { color: #4c1d95; }
.callout.wg .callout-content strong { color: #4c1d95; }

/* --- PROS & CONTRAS --- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0 28px;
}
.pros, .cons {
  border-radius: 12px;
  padding: 18px 20px;
}
.pros { background: #f0fdf4; border: 1.5px solid #86efac; }
.cons { background: #fef2f2; border: 1.5px solid #fca5a5; }
.pros h4 { color: #166534; font-size: 13px; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.cons h4 { color: #991b1b; font-size: 13px; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.pros ul, .cons ul { margin-left: 16px; list-style: disc; }
.pros li, .cons li { font-size: 13px; margin-bottom: 6px; line-height: 1.45; }
.pros li { color: #166534; }
.cons li { color: #991b1b; }

/* --- FERRAMENTA CARD (comparação visual) --- */
.tool-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 20px 0;
  background: #fff;
}
.tool-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.tool-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
}
.tool-card-tagline {
  font-size: 12px;
  color: var(--gray);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tool-card-nota {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-left: auto;
}

/* --- VEREDICTO BOX --- */
.veredicto {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 32px 36px;
  margin: 44px 0;
  position: relative;
  overflow: hidden;
}
.veredicto::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: var(--blue2);
  border-radius: 50%;
  opacity: 0.15;
}
.veredicto-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 10px;
}
.veredicto h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.15;
  color: #fff;
}
.veredicto p { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.75; margin-bottom: 0; }
.veredicto-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.veredicto-stars { font-size: 20px; }
.veredicto-nota {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--sky);
}
.veredicto-nota-label { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 700; }

/* --- DESTAQUE / PULL QUOTE --- */
.pull-quote {
  border-left: 5px solid var(--blue2);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--light);
  border-radius: 0 14px 14px 0;
}
.pull-quote p {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}
.pull-quote cite {
  display: block;
  font-size: 12px;
  color: var(--gray);
  font-style: normal;
  font-weight: 700;
  margin-top: 8px;
}

/* --- AUTHOR BIO --- */
.author-bio {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--light);
  border-radius: 16px;
  padding: 28px;
  margin-top: 52px;
  border: 1.5px solid #dbeafe;
}
.author-bio img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(13,27,62,0.15);
}
.author-bio-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 2px;
}
.author-bio-role {
  font-size: 11px;
  color: var(--gray);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  display: block;
}
.author-bio p { font-size: 14px; color: #374151; line-height: 1.65; margin: 0; }

/* --- TAGS --- */
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 0; }
.article-tag {
  background: var(--light);
  color: var(--blue2);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid #dbeafe;
  transition: background 0.15s;
}
.article-tag:hover { background: #dbeafe; }

/* --- UPDATED DATE --- */
.article-updated {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 28px;
  padding: 8px 14px;
  background: var(--light);
  border-radius: 8px;
  width: fit-content;
}

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; padding: 32px 16px 60px; }
  .article-sidebar { position: static; display: none; }
  .article-body-pro { padding: 28px 22px; }
  .pros-cons { grid-template-columns: 1fr; }
  .veredicto { padding: 24px 22px; }
}
@media (max-width: 600px) {
  .toc-inline { padding: 16px 18px; }
  .author-bio { flex-direction: column; align-items: center; text-align: center; }
}
