/* ============================================================
   Blog — listagem, artigo e estados vazios
   Mobile-first, integrado às cores de custom.css.
   ============================================================ */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero da listagem ---------- */
.blog-hero {
  padding: 130px 0 44px;
  background: radial-gradient(circle at 50% 0%, #2a2a2e 0%, #17171a 72%);
  border-bottom: 1px solid #333338;
  text-align: center;
}
.blog-eyebrow {
  margin: 0 0 12px;
  color: #ff6b6b;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.blog-hero h1 {
  max-width: 900px;
  margin: 0 auto 16px;
  font-size: clamp(1.85rem, 6vw, 2.9rem);
  line-height: 1.15;
}
.blog-intro {
  max-width: 760px;
  margin: 0 auto;
  color: #dcdcdc;
  font-size: 1rem;
  line-height: 1.8;
}
.blog-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
  margin: 26px auto 0;
}
.blog-search input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #3a3a40;
  border-radius: 6px;
  background: #202024;
  color: #f0f0f0;
  font-size: 0.95rem;
}
.blog-search input::placeholder { color: #8a8a8a; }
.blog-search input:focus {
  outline: none;
  border-color: #e50914;
}
.blog-search .btn-rock { margin: 0; text-align: center; }

/* ---------- Filtros e resultado ---------- */
.blog-list-section { padding-top: 40px; }
.blog-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.blog-filtros a {
  padding: 8px 14px;
  border: 1px solid #3a3a40;
  border-radius: 999px;
  color: #d0d0d0;
  font-size: 0.82rem;
  text-decoration: none;
  transition: 0.2s ease;
}
.blog-filtros a:hover,
.blog-filtros a.is-active {
  border-color: #e50914;
  color: #fff;
  background: rgba(229, 9, 20, 0.12);
}
.blog-resultado {
  margin: 0 0 22px;
  color: #b3b3b3;
  font-size: 0.92rem;
}
.blog-resultado a { color: #ff6b6b; }

/* ---------- Grid de cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #252529;
  border: 1px solid #333338;
  border-radius: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-card:hover {
  border-color: #e50914;
  transform: translateY(-3px);
}
.post-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1d;
}
.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 10px;
  color: #9a9a9a;
  font-size: 0.76rem;
  letter-spacing: 0.3px;
}
.post-category {
  padding: 4px 9px;
  border-radius: 3px;
  background: rgba(229, 9, 20, 0.14);
  color: #ff5b63;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.post-card-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
}
.post-card-title a {
  color: #fff;
  text-decoration: none;
}
.post-card-title a:hover { color: #e50914; }
.post-card-excerpt {
  margin: 0;
  color: #c9c9c9;
  font-size: 0.9rem;
  line-height: 1.65;
}
.post-card-link {
  margin-top: auto;
  padding-top: 14px;
  color: #ff6b6b;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-decoration: none;
  text-transform: uppercase;
}
.post-card-link:hover { color: #fff; }

/* ---------- Paginação ---------- */
.blog-paginacao {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.pagina-link {
  padding: 10px 16px;
  border: 1px solid #3a3a40;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 0.85rem;
  text-decoration: none;
}
.pagina-link:hover { border-color: #e50914; color: #fff; }
.pagina-atual { color: #9a9a9a; font-size: 0.82rem; }

/* ---------- Estado vazio ---------- */
.blog-vazio {
  padding: 46px 24px;
  border: 1px dashed #3a3a40;
  border-radius: 10px;
  text-align: center;
}
.blog-vazio h2 { font-size: 1.2rem; }
.blog-vazio p {
  max-width: 520px;
  margin: 0 auto 20px;
  color: #b3b3b3;
}

/* ---------- Artigo ---------- */
.post-header {
  padding: 126px 0 30px;
  background: radial-gradient(circle at 50% 0%, #2a2a2e 0%, #17171a 72%);
}
.post-meta-top { justify-content: flex-start; }
.post-title {
  max-width: 900px;
  margin: 8px 0 14px;
  font-size: clamp(1.7rem, 5.4vw, 2.7rem);
  line-height: 1.18;
}
.post-excerpt {
  max-width: 780px;
  margin: 0;
  color: #cfcfcf;
  font-size: 1.02rem;
  line-height: 1.75;
}
.post-cover {
  max-width: 960px;
  margin: 28px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #1a1a1d;
}
.post-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  max-width: 960px;
  margin: 34px auto 0;
}
.post-content {
  min-width: 0;
  color: #c9c9c9;
  font-size: 1rem;
  line-height: 1.85;
}
.post-content > *:first-child { margin-top: 0; }
.post-content h2 {
  margin: 36px 0 14px;
  font-size: 1.35rem;
  line-height: 1.3;
}
.post-content h3 {
  margin: 28px 0 12px;
  font-size: 1.1rem;
}
.post-content p { margin: 0 0 18px; }
.post-content ul,
.post-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.post-content li { margin-bottom: 8px; }
.post-content a { color: #ff5b63; text-decoration: underline; }
.post-content a:hover { color: #fff; }
.post-content blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid #e50914;
  background: #202024;
  color: #e0e0e0;
  font-style: italic;
}
.post-content blockquote p { margin: 0; }
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}
.post-content table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.post-content th,
.post-content td {
  padding: 10px 12px;
  border: 1px solid #333338;
  text-align: left;
}
.post-content th { background: #202024; color: #fff; }
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.post-tags li {
  padding: 6px 11px;
  border: 1px solid #3a3a40;
  border-radius: 999px;
  color: #a8a8a8;
  font-size: 0.76rem;
}
.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: #9a9a9a;
  font-size: 0.85rem;
}
.post-share a {
  padding: 8px 14px;
  border: 1px solid #3a3a40;
  border-radius: 6px;
  color: #e0e0e0;
  text-decoration: none;
}
.post-share a:hover { border-color: #e50914; color: #fff; }
.post-cta {
  margin-top: 36px;
  padding: 28px 22px;
  border: 1px solid #3a2224;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.16), rgba(23, 23, 26, 0.4));
  text-align: center;
}
.post-cta h2 { margin-top: 0; font-size: 1.3rem; }
.post-cta p {
  max-width: 560px;
  margin: 0 auto 18px;
  color: #cfcfcf;
}
.post-cta .btn-rock { margin: 0; }

/* ---------- Aside ---------- */
.post-aside-card {
  padding: 24px;
  background: #202024;
  border: 1px solid #333338;
  border-radius: 8px;
}
.post-aside-card h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}
.post-aside-card p {
  margin: 0 0 16px;
  color: #b3b3b3;
  font-size: 0.88rem;
  line-height: 1.7;
}
.post-aside-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-aside-links li {
  padding: 9px 0;
  border-top: 1px solid #2f2f34;
}
.post-aside-links a {
  color: #d6d6d6;
  font-size: 0.86rem;
  text-decoration: none;
}
.post-aside-links a:hover { color: #e50914; }
.post-grid-related { margin-top: 22px; }
.blog-hero-404 .btn-rock { margin-top: 22px; }

/* ---------- Desktop ---------- */
@media (min-width: 576px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .blog-hero { padding: 158px 0 52px; }
  .blog-search { flex-direction: row; }
  .blog-search input { flex: 1; }
  .blog-search .btn-rock { flex-shrink: 0; }
  .post-header { padding: 150px 0 34px; }
}
@media (min-width: 992px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .post-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 44px;
  }
  .post-aside {
    position: sticky;
    top: 110px;
    align-self: start;
  }
}
