/* ─── Blog — estilos adicionais ao style.css ──── */

/* Listagem */
.blog-hero { max-width: 680px; margin-bottom: 3.5rem; }
.blog-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: .75rem; }
.blog-hero .lead { color: var(--text-muted, #888); font-size: 1.05rem; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.25rem; }

.post-card {
  display: block;
  background: var(--bg-card, #141414);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 1.625rem;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.post-card:hover { border-color: rgba(0,255,136,.35); transform: translateY(-2px); }

.post-card__tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
.post-card__tag {
  font-family: var(--font-mono, monospace);
  font-size: .7rem;
  color: #00ff88;
  border: 1px solid rgba(0,255,136,.3);
  border-radius: 4px;
  padding: .15em .55em;
  background: rgba(0,255,136,.08);
}
.post-card__title { font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin-bottom: .5rem; }
.post-card__desc { color: var(--text-muted, #888); font-size: .875rem; line-height: 1.6; margin-bottom: .875rem; }
.post-card__meta {
  font-family: var(--font-mono, monospace);
  font-size: .75rem;
  color: var(--text-muted, #888);
  display: flex;
  gap: .4rem;
  align-items: center;
}
.post-card__sep { opacity: .35; }

/* Artigo */
.post-article { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }

.post-header { margin-bottom: 2.5rem; }
.post-header__tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.post-header__tag {
  font-family: var(--font-mono, monospace);
  font-size: .7rem;
  color: #00ff88;
  border: 1px solid rgba(0,255,136,.3);
  border-radius: 4px;
  padding: .15em .55em;
  background: rgba(0,255,136,.08);
}
.post-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.25; margin-bottom: .75rem; }
.post-header__desc { color: var(--text-muted, #888); font-size: 1.05rem; line-height: 1.6; margin-bottom: .875rem; }
.post-header__meta {
  font-family: var(--font-mono, monospace);
  font-size: .75rem;
  color: var(--text-muted, #888);
  display: flex;
  gap: .4rem;
  align-items: center;
}

/* Corpo do artigo */
.post-body { border-top: 1px solid rgba(255,255,255,.08); padding-top: 2rem; }
.post-body h2 { font-size: 1.4rem; font-weight: 600; margin: 2.5rem 0 .875rem; }
.post-body h3 { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 .625rem; }
.post-body p { margin-bottom: 1.2rem; line-height: 1.8; }
.post-body ul, .post-body ol { margin: 0 0 1.2rem 1.5rem; }
.post-body li { margin-bottom: .4rem; line-height: 1.7; }

.post-body code {
  font-family: var(--font-mono, monospace);
  font-size: .875em;
  background: #141414;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  padding: .15em .4em;
  color: #00ff88;
}
.post-body pre {
  background: #141414;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 1.375rem 1.5rem;
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
}
.post-body pre code { background: none; border: none; padding: 0; color: #e8e8e8; font-size: .85rem; line-height: 1.7; }

.post-body blockquote {
  border-left: 3px solid #00ff88;
  margin: 1.5rem 0;
  padding: .75rem 1.25rem;
  background: rgba(0,255,136,.07);
  border-radius: 0 8px 8px 0;
}
.post-body blockquote p { margin: 0; }
.post-body blockquote strong { color: #fff; }

.post-body a { color: #00ff88; text-decoration: underline; text-underline-offset: 3px; }
.post-body strong { font-weight: 600; color: #fff; }
.post-body hr { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 2.5rem 0; }

/* Tabela */
.post-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: .9rem; }
.post-body th, .post-body td { padding: .625rem .875rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); }
.post-body th { font-weight: 600; color: #00ff88; font-family: var(--font-mono, monospace); font-size: .8rem; }

/* Footer do artigo */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
  gap: 1rem;
}
.post-footer__back { color: #888; font-size: .9rem; text-decoration: none; transition: color .2s; }
.post-footer__back:hover { color: #e8e8e8; }
