/* ══════════════════════════════════════════════════════════════════
   blog.css — estilos compartilhados do blog Facilite Solar
   Usado por blog.php, post.php e o painel (painelblog/index.php).
   O layout usa Tailwind (CDN); aqui ficam só o que o Tailwind não cobre.
   ══════════════════════════════════════════════════════════════════ */

/* Navbar */
#nav { transition: background .35s, box-shadow .35s; }
#nav.scrolled { background: #fff !important; box-shadow: 0 2px 20px rgba(122,0,0,.12); }

/* Menu mobile */
#mob { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s, opacity .4s; }
#mob.open { max-height: 460px; opacity: 1; }

/* Faixa CTA — mesmo fundo escuro do cabeçalho do blog, com o vermelho só no botão de ação */
.cta-bg {
  background: linear-gradient(160deg, #1A1A1A 0%, #222 100%);
  position: relative;
  overflow: hidden;
}
.cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .1;
  background-image:
    radial-gradient(circle at 20% 20%, #CC0000 0, transparent 40%),
    radial-gradient(circle at 80% 0%, #AA0000 0, transparent 35%);
  pointer-events: none;
}
.cta-bg > * { position: relative; z-index: 1; }

/* Cards de post */
.post-card { transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(122,0,0,.16); }

/* Chips de categoria */
.chip.active { background: #AA0000 !important; color: #fff !important; border-color: #AA0000 !important; }

/* Clamp de linhas */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: #7A0000; border-radius: 3px; }

/* ── Conteúdo da matéria (HTML gerado do Markdown) ── */
.article { color: #374151; font-size: 1.05rem; line-height: 1.8; }
.article h2 { font-family: 'Poppins', sans-serif; font-weight: 800; color: #AA0000; font-size: 1.6rem; margin: 2.2rem 0 .8rem; }
.article h3 { font-family: 'Poppins', sans-serif; font-weight: 700; color: #AA0000; font-size: 1.25rem; margin: 1.8rem 0 .6rem; }
.article p { margin: 0 0 1.1rem; }
.article ul, .article ol { margin: 0 0 1.2rem 1.4rem; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin: .35rem 0; }
.article a { color: #AA0000; text-decoration: underline; }
.article strong { color: #AA0000; }
.article blockquote { border-left: 4px solid #CC0000; background: #F8FAFC; padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; margin: 1.4rem 0; font-style: italic; }
.article img { border-radius: 16px; margin: 1.4rem 0; max-width: 100%; height: auto; }
.article table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.article th, .article td { border: 1px solid #e5e7eb; padding: .6rem .8rem; text-align: left; }
.article th { background: #AA0000; color: #fff; font-family: 'Poppins', sans-serif; }
.article code { background: #F8FAFC; padding: .15rem .4rem; border-radius: 6px; font-size: .9em; }
.article pre { background: #1A1A1A; color: #e6e8f5; padding: 1rem 1.2rem; border-radius: 12px; overflow-x: auto; margin: 1.4rem 0; }
.article pre code { background: none; padding: 0; color: inherit; }
.article h2:first-child, .article h3:first-child, .article p:first-child { margin-top: 0; }
