/*
 * blog.css — Página "Blog" (slug blog).
 * Carregado via ai_theme_enqueue_assets() quando is_page('blog').
 * Header/footer têm CSS próprio. Tokens no :root de style.css.
 */

.bl-page { font-family: var(--tf-font); color: var(--tf-navy); }
.bl-page a { text-decoration: none; }
.bl-page a:hover { text-decoration: none; }

@keyframes tfrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; }
.eyebrow--gold { color: var(--tf-yellow); }
.eyebrow-bar { width: 26px; height: 2px; background: var(--tf-yellow); }

/* ===== HERO ===== */
.bl-hero { position: relative; background: var(--tf-navy); overflow: hidden; }
.bl-hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bl-hero-ring { position: absolute; width: 640px; height: 640px; border-radius: 50%; border: 80px solid rgba(0, 78, 168, 0.28); right: -240px; top: -260px; }
.bl-hero-stripes { position: absolute; inset: 0; background: repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 60px); }
.bl-hero-inner { position: relative; max-width: var(--tf-container); margin: 0 auto; padding: 150px 32px 72px; animation: tfrise .7s ease both; }
.bl-hero-title { font-family: var(--tf-font); font-weight: 700; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; color: #fff; margin: 20px 0 0; max-width: 760px; }
.bl-hero-sub { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; color: #c3c8ee; margin: 20px 0 0; max-width: 560px; }

/* ===== LISTAGEM ===== */
.bl-list { background: #fff; }
.bl-inner { max-width: var(--tf-container); margin: 0 auto; padding: 72px 32px 96px; }
.bl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.bl-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-chip {
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--tf-font);
  font-size: 13.5px;
  font-weight: 600;
  border: 1.5px solid #e4e6f1;
  background: #fff;
  color: #2a2f5c;
  transition: all .15s ease;
}
.bl-chip:hover { border-color: #c9cee4; }
.bl-chip.is-active { border-color: var(--tf-navy); background: var(--tf-navy); color: #fff; }

.bl-search { position: relative; flex: none; width: 300px; max-width: 100%; }
.bl-search-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #9096b8; pointer-events: none; display: flex; }
.bl-search-input {
  width: 100%;
  padding: 12px 15px 12px 42px;
  font-family: var(--tf-font);
  font-size: 14.5px;
  color: var(--tf-navy);
  background: var(--tf-light);
  border: 1.5px solid #e4e6f1;
  border-radius: 11px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bl-search-input::placeholder { color: #9096b8; }
.bl-search-input:focus { outline: none; border-color: var(--tf-blue); box-shadow: 0 0 0 3px rgba(0, 78, 168, 0.14); }

.bl-results { position: relative; transition: opacity .15s ease; }
.bl-results.is-loading { opacity: 0.5; pointer-events: none; }
.bl-result-label { font-size: 13.5px; color: var(--tf-muted-2); margin: 0 0 30px; }

/* Grade */
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tf-border); border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px -32px rgba(10, 20, 107, 0.5); transition: transform .18s ease, box-shadow .18s ease; }
.bl-card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px -30px rgba(10, 20, 107, 0.6); }
.bl-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.bl-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bl-card-stripes { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 14px, transparent 14px 28px); }
.bl-card-ic { position: absolute; left: 24px; top: 22px; color: rgba(255, 255, 255, 0.9); display: flex; }
.bl-card-cat { position: absolute; left: 16px; bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--tf-yellow); color: var(--tf-navy); padding: 5px 11px; border-radius: 999px; }
.bl-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.bl-card-meta { font-size: 12px; font-weight: 500; color: var(--tf-muted-3); }
.bl-card-title { font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--tf-navy); margin: 10px 0 0; }
.bl-card-excerpt { font-size: 14px; line-height: 1.6; color: var(--tf-muted); margin: 10px 0 0; flex: 1; }
.bl-card-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-weight: 600; font-size: 13.5px; color: var(--tf-blue); }

/* Vazio */
.bl-empty { text-align: center; padding: 70px 20px; background: var(--tf-light); border: 1px solid var(--tf-border-2); border-radius: 18px; }
.bl-empty-title { font-size: 20px; font-weight: 700; color: var(--tf-navy); }
.bl-empty-text { font-size: 15px; color: var(--tf-muted); margin: 10px 0 22px; }
.bl-clear { display: inline-flex; align-items: center; gap: 8px; background: var(--tf-yellow); color: var(--tf-navy); font-family: var(--tf-font); font-weight: 700; font-size: 14.5px; padding: 12px 22px; border: 0; border-radius: 11px; cursor: pointer; }

/* Paginação */
.bl-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 52px; flex-wrap: wrap; }
.bl-pagebtn {
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 10px;
  font-family: var(--tf-font);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #e4e6f1;
  background: #fff;
  color: #2a2f5c;
  transition: all .15s ease;
}
.bl-pagebtn:hover:not([disabled]):not(.is-active) { border-color: #c9cee4; }
.bl-pagebtn.is-active { border-color: var(--tf-navy); background: var(--tf-navy); color: #fff; }
.bl-pagebtn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ===== RESPONSIVO ===== */
@media (max-width: 960px) {
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-toolbar { flex-direction: column; align-items: stretch; }
  .bl-search { width: 100%; }
}
@media (max-width: 640px) {
  .bl-hero-inner { padding: 130px 20px 60px; }
  .bl-inner { padding: 56px 20px 72px; }
  .bl-grid { grid-template-columns: 1fr; }
}
