/* ==========================================================================
   AQGOES THEME - CSS CONSOLIDADO E OTIMIZADO (COMPLETO)
   ========================================================================== */

/* ── 1. VARIÁVEIS DE TEMA (TOKENS ORIGINAIS) ── */
:root {
  /* Modo Claro (Dia) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-header: rgba(255, 255, 255, 0.85);
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  --brand-color: #2563eb;
  --grad-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
}

.dark {
  /* Modo Escuro (Noite - Original) */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-subtle: #334155;
  --bg-header: rgba(15, 23, 42, 0.85);
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --border-subtle: #334155;
  --brand-color: #2563eb;
  --grad-primary: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
}

/* ── 2. MAPEAMENTO DE CLASSES UTILITÁRIAS ── */
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-card { background-color: var(--bg-card); }
.bg-subtle { background-color: var(--bg-subtle); }
.bg-header { background-color: var(--bg-header); }

.text-primary { color: var(--text-primary); }
.text-muted { color: var(--text-muted); }

.border-subtle, .border-custom { border-color: var(--border-subtle); }

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body, header, footer, article, button, input, textarea, aside {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ── 3. SCROLLBAR CUSTOMIZADA ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--brand-color); border-radius: 3px; }

/* ── 4. ESTILIZAÇÃO DOS TÍTULOS E CONTEÚDO DO ARTIGO (#post-content) ── */
#post-content h1, 
#post-content h2, 
#post-content h3, 
#post-content h4,
#post-content h5,
#post-content h6 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em !important;
  margin-top: 2.25rem !important;
  margin-bottom: 1rem !important;
}

/* Tamanhos de Fonte Específicos para cada nível */
#post-content h1 { font-size: 2.25rem !important; }
#post-content h2 { font-size: 1.75rem !important; }
#post-content h3 { font-size: 1.35rem !important; }
#post-content h4 { font-size: 1.15rem !important; }

/* Parágrafos do artigo */
#post-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--text-primary);
}

/* Listas (Bolinhas e Números) */
#post-content ul {
  list-style-type: disc !important;
  padding-left: 1.5rem !important;
  margin-bottom: 1.25rem !important;
}

#post-content ol {
  list-style-type: decimal !important;
  padding-left: 1.5rem !important;
  margin-bottom: 1.25rem !important;
}

#post-content li {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* Links e Destaques */
#post-content a {
  color: var(--brand-color);
  text-decoration: underline;
  font-weight: 600;
}

#post-content blockquote {
  border-left: 4px solid var(--brand-color);
  padding-left: 1.25rem;
  font-style: italic;
  margin: 1.75rem 0;
  color: var(--text-muted);
}

/* ── 5. FORMULÁRIO DE COMENTÁRIOS NATIVO (ESTILIZADO) ── */
#comments-section {
  color: var(--text-primary);
}

#comments-section .comments-title,
#comments-section .comment-reply-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.comment-form p {
  margin-bottom: 1rem;
}

.comment-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.comment-form input[type="submit"] {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.75rem;
  background-color: var(--brand-color);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.comment-form input[type="submit"]:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

/* Lista de Comentários */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.comment-list li {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-primary);
}

.comment-list .children {
  list-style: none;
  padding-left: 1.25rem;
  margin-top: 1rem;
  border-left: 2px solid var(--border-subtle);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.comment-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.comment-content {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.reply a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-color);
}

/* ── 6. COMPONENTES DE NAVEGAÇÃO E FILTROS ── */
.cat-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 99px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-btn:hover, .cat-btn.active {
  border-color: var(--brand-color);
  background: var(--brand-color);
  color: #ffffff;
}

.tag-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 3px;
  background: var(--brand-color);
  color: #ffffff;
  display: inline-block;
}