/*
Theme Name:  fuel.ia.br
Theme URI:   https://fuel.ia.br
Description: Tema do blog fuel.ia.br — compartilha o design system do site principal.
Author:      fuel.ia.br
Version:     1.0.0
Text Domain: fueliabr
*/

/* ── Ajustes WordPress ─────────────────────────────────────── */

/* Compensa a admin bar do WP quando logado */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Área de conteúdo do blog */
#main {
  min-height: 60vh;
  padding-top: 48px;
  padding-bottom: 64px;
}

/* ── Post listing ──────────────────────────────────────────── */
.post-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-card-meta {
  font-size: 12px;
  color: var(--ink-4);
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.post-card-cat {
  background: var(--blue-lt);
  color: var(--blue-dk);
  border-radius: var(--r-pill);
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}
.post-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--blue); }
.post-card-excerpt {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
  flex: 1;
}
.post-card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.post-card-author {
  font-size: 12px;
  color: var(--ink-4);
  font-weight: 500;
}
.post-read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.post-read-more:hover { color: var(--blue-dk); }

/* ── Paginação ─────────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  transition: background .15s, color .15s, border-color .15s;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ── Single post ───────────────────────────────────────────── */
.post-header { margin-bottom: 36px; }
.post-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.post-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.15;
  margin-bottom: 0;
}
.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 720px;
}
.post-content h2,
.post-content h3,
.post-content h4 { margin-top: 2em; margin-bottom: .6em; }
.post-content p   { margin-bottom: 1.4em; }
.post-content ul,
.post-content ol  { margin-bottom: 1.4em; padding-left: 1.5em; }
.post-content li  { margin-bottom: .4em; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 1.4em 0; }
.post-content a   { color: var(--blue); text-decoration: underline; }
.post-content blockquote {
  border-left: 3px solid var(--blue);
  margin: 1.6em 0;
  padding: 12px 20px;
  background: var(--blue-lt);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ink-2);
  font-style: italic;
}
.post-content code {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .875em;
}
.post-content pre {
  background: var(--ink);
  color: #e8e6df;
  border-radius: var(--r-md);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 1.4em;
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: .9em;
}

/* Navegação entre posts */
.post-nav {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.post-nav-item {
  flex: 1;
  min-width: 200px;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  transition: box-shadow .15s;
}
.post-nav-item:hover { box-shadow: var(--shadow-sm); }
.post-nav-label { font-size: 11px; color: var(--ink-4); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.post-nav-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.post-nav-item.next { text-align: right; }

/* ── Blog header (título da seção) ────────────────────────── */
.blog-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.blog-hero-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 6px;
}
.blog-hero-sub { font-size: 15px; color: var(--ink-3); }

/* Página 404 */
.not-found-wrap {
  text-align: center;
  padding: 80px 0;
}
.not-found-code {
  font-size: 80px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
