/* ============================================================
   THE SPEAKER — Blog (listagem + posts)
   Reaproveita tokens e classes de style.css (--yellow, --card, .section, .btn...)
   ============================================================ */

/* ---------- Hero compacto (listagem e posts) ---------- */
.blog-hero {
  position: relative;
  padding: 190px 0 64px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(250, 185, 24, 0.08), transparent), var(--black);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--gray-dark);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--gray); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb span[aria-current] { color: var(--gray-dark); }

.blog-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 780px; margin-bottom: 14px; }
.blog-hero .section-lead { margin-bottom: 0; }

/* ---------- Grade de posts ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.blog-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--yellow), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.blog-card:hover { border-color: rgba(250, 185, 24, 0.4); transform: translateY(-6px); }
.blog-card:hover::before { opacity: 1; }
.bc-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.blog-card h2, .blog-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 10px;
}
.blog-card h2 a, .blog-card h3 a { color: var(--white); }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--yellow); }
.blog-card p { color: var(--gray); font-size: 14.5px; flex-grow: 1; margin-bottom: 18px; }
.bc-meta {
  font-size: 12.5px;
  color: var(--gray-dark);
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- Paginação ---------- */
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
}
.blog-pagination a, .blog-pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  border: 1px solid var(--border);
}
.blog-pagination a:hover { border-color: rgba(250, 185, 24, 0.4); color: var(--yellow); }
.blog-pagination .is-current { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.blog-pagination .bp-disabled { opacity: 0.35; pointer-events: none; }

/* ---------- Post individual ---------- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: var(--gray-dark);
  font-size: 13.5px;
  margin-bottom: 6px;
}
.post-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.post-body { padding: 70px 0 40px; }
.post-content {
  max-width: 760px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.8;
}
.post-content h2 {
  font-size: 1.6rem;
  color: var(--white);
  margin: 46px 0 18px;
  scroll-margin-top: 110px;
}
.post-content h3 {
  font-size: 1.3rem;
  color: var(--white);
  margin: 34px 0 14px;
  scroll-margin-top: 110px;
}
.post-content h4 { font-size: 1.1rem; color: var(--white); margin: 26px 0 12px; }
.post-content p { margin-bottom: 20px; }
.post-content a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--white); }
.post-content strong { color: var(--white); font-weight: 600; }
.post-content ul, .post-content ol { margin: 0 0 20px; padding-left: 22px; }
.post-content li { margin-bottom: 8px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content blockquote {
  border-left: 3px solid var(--yellow);
  padding: 4px 0 4px 24px;
  margin: 30px 0;
  color: var(--white);
  font-style: italic;
  font-size: 1.1rem;
}
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 0.95rem;
}
.post-content th, .post-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.post-content th { color: var(--white); background: var(--card); }
.post-content figure.post-figure { margin: 30px 0; }
.post-content figure.post-figure img { border-radius: var(--radius); width: 100%; }
.post-content figcaption { color: var(--gray-dark); font-size: 13px; margin-top: 10px; text-align: center; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

.yt-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 30px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-nav {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.post-nav a {
  color: var(--gray);
  font-size: 14.5px;
  font-weight: 500;
}
.post-nav a:hover { color: var(--yellow); }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 150px 0 48px; }
}
