/* ============================================================
   MONARCHA · blog.css
   Estilos exclusivos das paginas do blog.
   Depende de /css/landing.css (design tokens, navbar, footer base,
   cta-final-section, botoes). Carregar landing.css antes deste arquivo.
============================================================ */
.blog-page { padding: 0; overflow-x: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav-logo { text-decoration: none; }
.nav-current { color: #ffd700; font-weight: 700; }

/* ---- CTA final (reaproveita .cta-final-section/.cta-final-container do landing.css) ---- */
.blog-cta-final { padding: 60px 24px; }
.blog-cta-final h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.blog-cta-final .btn-cta-primary { text-decoration: none; }

/* ---- Breadcrumb ---- */
.blog-breadcrumb {
  max-width: 1240px; margin: 0 auto; padding: 18px 24px 0;
  display: flex; align-items: center; gap: 8px;
  color: #64748b; font-size: .82rem;
}
.blog-breadcrumb a { color: #94a3b8; text-decoration: none; }
.blog-breadcrumb a:hover { color: #ffd700; }
.blog-breadcrumb span[aria-current] { color: #cbd5e1; }

/* ---- HERO ---- */
.blog-hero {
  position: relative; padding: 46px 24px 40px;
  background: radial-gradient(ellipse at top, #1f242c 0%, #14171c 70%);
  text-align: center; overflow: hidden;
}
.blog-hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.blog-hero .section-eyebrow {
  display: inline-block; padding: 5px 14px; background: rgba(255,215,0,0.1);
  color: #fcd34d; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}
.blog-hero h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900; line-height: 1.15; color: #f8fafc; margin-bottom: 18px;
}
.blog-hero p { color: #94a3b8; font-size: 1.1rem; line-height: 1.65; max-width: 600px; margin: 0 auto; }

/* ---- LAYOUT PRINCIPAL: conteudo + sidebar ---- */
.blog-layout {
  max-width: 1240px; margin: 0 auto; padding: 40px 24px 80px;
  display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start;
}
.blog-main { min-width: 0; }

/* ---- POST EM DESTAQUE ---- */
.featured-post {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: linear-gradient(135deg, #1f242c, #1a1f27);
  border: 1px solid rgba(255,215,0,0.18); border-radius: 20px;
  overflow: hidden; margin-bottom: 40px; text-decoration: none;
  transition: all .35s ease;
}
.featured-post:hover { border-color: rgba(255,215,0,0.4); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.featured-post .fp-img-wrap { position: relative; min-height: 260px; height: 100%; background: #1a1f27; }
.featured-post .fp-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-post .fp-body { padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; }
.featured-post .fp-badge {
  align-self: flex-start; background: linear-gradient(135deg,#ffd700,#f59e0b);
  color: #0f172a; font-size: .72rem; font-weight: 800; padding: 5px 12px;
  border-radius: 20px; text-transform: uppercase; margin-bottom: 14px; letter-spacing: .5px;
}
.featured-post h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 900; color: #f8fafc; line-height: 1.25; margin-bottom: 12px;
}
.featured-post:hover h2 { color: #ffd700; }
.featured-post p { color: #94a3b8; font-size: .95rem; line-height: 1.6; margin-bottom: 16px; }
.fp-meta { color: #64748b; font-size: .82rem; display: flex; gap: 14px; }

/* ---- BARRA DE FILTROS ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-chip {
  padding: 8px 16px; border-radius: 20px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: #cbd5e1; font-size: .85rem; font-weight: 600; font-family: inherit;
  transition: all .2s;
}
.filter-chip:hover { border-color: rgba(255,215,0,0.35); color: #fcd34d; }
.filter-chip:focus-visible { outline: 2px solid #ffd700; outline-offset: 2px; }
.filter-chip.active {
  background: linear-gradient(135deg,#ffd700,#f59e0b); color: #0f172a;
  border-color: transparent;
}

/* ---- GRID DE ARTIGOS ---- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card {
  background: linear-gradient(135deg, #1f242c, #1a1f27);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 18px; overflow: hidden;
  transition: all .35s ease; display: flex; flex-direction: column;
  text-decoration: none; position: relative;
}
.blog-card:hover {
  transform: translateY(-6px); border-color: rgba(255,215,0,0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(255,215,0,0.1);
}
.blog-card:focus-visible { outline: 2px solid #ffd700; outline-offset: 2px; }
.blog-card.is-hidden { display: none; }
.blog-card-img-wrap { width: 100%; aspect-ratio: 16/9; background-color: #1a1f27; position: relative; flex-shrink: 0; }
.blog-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(20,23,28,0.85);
  backdrop-filter: blur(8px); color: #ffd700; border: 1px solid rgba(255,215,0,0.25);
  padding: 4px 11px; border-radius: 20px; font-size: .68rem; font-weight: 700;
  letter-spacing: .4px; z-index: 2; text-transform: uppercase;
}
.blog-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h3 {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 800;
  color: #f8fafc; margin-bottom: 8px; line-height: 1.3; transition: color .2s;
}
.blog-card:hover .blog-card-body h3 { color: #ffd700; }
.blog-card-body p { color: #94a3b8; font-size: .85rem; line-height: 1.5; flex: 1; margin-bottom: 14px; }
.blog-card-meta { color: #64748b; font-size: .76rem; display: flex; gap: 12px; margin-bottom: 12px; }
.blog-card-link { display: inline-flex; align-items: center; gap: 6px; color: #fcd34d; font-size: .84rem; font-weight: 700; transition: gap .25s; }
.blog-card:hover .blog-card-link { gap: 10px; }
.blog-card:hover .blog-card-link .arrow { transform: translateX(3px); }
.blog-card-link .arrow { transition: transform .2s; display: inline-block; }

.no-results { text-align: center; color: #94a3b8; padding: 50px 20px; font-size: 1rem; grid-column: 1/-1; display: none; }
.no-results.is-visible { display: block; }

/* ---- SIDEBAR ---- */
.blog-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 24px; }
.side-widget {
  background: linear-gradient(135deg, #1f242c, #1a1f27);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 22px 20px;
}
.side-widget h4 {
  font-family: 'Playfair Display', serif; color: #f8fafc; font-size: 1.05rem;
  font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.side-search input {
  width: 100%; padding: 12px 14px; background: rgba(15,23,42,0.6);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #f8fafc;
  font-size: .9rem; font-family: inherit;
}
.side-search input:focus { outline: none; border-color: #ffd700; }
.side-cats { list-style: none; padding: 0; margin: 0; }
.side-cats li { margin-bottom: 8px; }
.side-cats button {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  color: #cbd5e1; font-size: .88rem; font-family: inherit; padding: 6px 0;
  display: flex; justify-content: space-between; align-items: center; transition: color .2s;
}
.side-cats button:hover, .side-cats button.active { color: #ffd700; }
.side-cats button:focus-visible { outline: 2px solid #ffd700; outline-offset: 2px; }
.side-cats .count {
  background: rgba(255,255,255,0.06); color: #94a3b8; font-size: .72rem;
  padding: 2px 9px; border-radius: 20px; font-weight: 600;
}
.side-popular a { display: flex; gap: 12px; text-decoration: none; margin-bottom: 14px; align-items: center; }
.side-popular a:last-child { margin-bottom: 0; }
.side-popular .sp-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #1a1f27; }
.side-popular .sp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-popular .sp-title { color: #cbd5e1; font-size: .82rem; font-weight: 600; line-height: 1.35; transition: color .2s; }
.side-popular a:hover .sp-title { color: #ffd700; }

/* Espaco de anuncio (preparado para AdSense; inserir unidade real quando disponivel) */
.ad-slot {
  background: rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px; min-height: 100px; display: flex; align-items: center;
  justify-content: center; color: #475569; font-size: .78rem; margin: 32px 0;
  text-align: center;
}
.ad-slot.side { min-height: 250px; }

/* ---- NEWSLETTER ---- */
.newsletter-box {
  background: linear-gradient(135deg, rgba(255,215,0,0.07), rgba(245,158,11,0.03));
  border: 1px solid rgba(255,215,0,0.2); border-radius: 16px; text-align: center; padding: 24px 20px;
}
.newsletter-box h4 { font-family: 'Playfair Display', serif; color: #f8fafc; font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.newsletter-box p { color: #94a3b8; font-size: .85rem; margin-bottom: 16px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
  width: 100%; padding: 12px 14px; background: rgba(15,23,42,0.6);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #f8fafc; font-size: .9rem; font-family: inherit;
}
.newsletter-form input:focus { outline: none; border-color: #ffd700; }
.newsletter-form button {
  padding: 12px; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #ffd700, #f59e0b); color: #0f172a;
  font-weight: 700; font-size: .9rem; font-family: inherit; transition: transform .2s, box-shadow .2s;
}
.newsletter-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,215,0,0.35); }
.newsletter-form button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.newsletter-msg { margin-top: 12px; font-size: .84rem; min-height: 18px; }
.newsletter-msg.ok { color: #4ade80; }
.newsletter-msg.err { color: #f87171; }

/* ---- FOOTER DO BLOG (slim, herda .blog-footer proprio) ---- */
.blog-footer {
  max-width: 1240px; margin: 0 auto; padding: 40px 24px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; color: #64748b; font-size: .85rem;
}
.blog-footer .bf-links { display: flex; gap: 16px; flex-wrap: wrap; }
.blog-footer a { color: #fcd34d; text-decoration: none; font-weight: 600; }
.blog-footer a:hover { text-decoration: underline; }

/* ---- RESPONSIVO ---- */
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .blog-sidebar .side-widget { flex: 1; min-width: 260px; }
}
@media (max-width: 768px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fp-img-wrap { aspect-ratio: 16/9; min-height: 0; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 40px 16px 30px; }
  .blog-breadcrumb { padding: 14px 16px 0; }
  .blog-sidebar { flex-direction: column; }
  .blog-footer { flex-direction: column; text-align: center; }
}
@media (max-width: 420px) {
  .filter-bar { gap: 8px; }
  .filter-chip { padding: 7px 13px; font-size: .8rem; }
}