/* ============================================================
   BetaVagas BR — estilo custom (complementa o Tailwind v4 CDN)
   ============================================================ */

:root {
  --brbv-accent: #059669;          /* emerald-600 */
  --brbv-accent-soft: #d1fae5;     /* emerald-100 */
  --brbv-ink: #0f172a;             /* slate-900 */
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #a7f3d0; color: #064e3b; }

/* ---------- Tipografia de títulos ---------- */
h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif; letter-spacing: -0.02em; }

/* ---------- Header ---------- */
.brbv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}

.brbv-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #10b981, #0d9488);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.brbv-nav a {
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 0.6rem;
  transition: all 0.18s ease;
}
.brbv-nav a:hover { color: #059669; background: #ecfdf5; }
.brbv-nav .current-menu-item > a,
.brbv-nav .current-cat > a { color: #059669; background: #ecfdf5; font-weight: 600; }

/* Dropdown do menu (submenus) */
.brbv-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.15rem; }
.brbv-nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  padding: 0.4rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.brbv-nav ul li { position: relative; }
.brbv-nav ul li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.brbv-nav ul ul a { display: block; }
.brbv-nav ul ul li { width: 100%; }

/* ---------- Categorias / badges ---------- */
.brbv-cat {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  transition: all 0.18s ease;
}
.brbv-cat:hover { background: #059669; color: #fff; border-color: #059669; }

/* ---------- Cards ---------- */
.brbv-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.25s ease;
}
.brbv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  border-color: #a7f3d0;
}
.brbv-card img { transition: transform 0.4s ease; }
.brbv-card:hover img { transform: scale(1.04); }

/* ---------- Conteúdo do artigo (wp-block) ---------- */
.entry-content { font-size: 1.05rem; line-height: 1.8; color: #334155; }
.entry-content > * { margin-bottom: 1.5rem; }

.entry-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2.8rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid #10b981;
  display: inline-block;
}
.entry-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2.2rem;
  margin-bottom: 0.9rem;
}
.entry-content h4 { font-size: 1.12rem; font-weight: 700; color: #0f172a; margin-top: 1.8rem; margin-bottom: 0.7rem; }
.entry-content h5, .entry-content h6 { font-size: 1rem; font-weight: 700; color: #0f172a; margin-top: 1.5rem; margin-bottom: 0.6rem; }

.entry-content p { margin-bottom: 1.4rem; }
.entry-content strong { color: #0f172a; font-weight: 700; }
.entry-content em { color: #475569; }

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.6rem 0;
  padding-left: 1.5rem;
  display: grid;
  gap: 0.45rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li::marker { color: #059669; font-weight: 700; }

.entry-content figure.wp-block-table {
  margin: 2rem 0;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #fff;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.entry-content thead th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.entry-content tbody td {
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content tbody tr:hover { background: #f8fafc; }

.entry-content hr.wp-block-separator {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 2.5rem 0;
}

.entry-content blockquote {
  border-left: 4px solid #10b981;
  background: #f0fdf4;
  padding: 1.1rem 1.4rem;
  border-radius: 0 0.8rem 0.8rem 0;
  color: #166534;
  font-style: italic;
}

.entry-content a { color: #059669; text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: #047857; }

.entry-content img { border-radius: 0.9rem; height: auto; }
.entry-content .wp-block-image { margin: 2rem 0; }
.entry-content .wp-block-image img { width: 100%; }

/* ---------- Widgets ---------- */
.widget-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0f172a;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #10b981;
  display: inline-block;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 0.55rem 0; border-bottom: 1px solid #f1f5f9; }
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: #475569; font-size: 0.9rem; transition: color 0.15s; }
.widget ul li a:hover { color: #059669; }
.widget ul li .post-date { display: block; font-size: 0.75rem; color: #94a3b8; margin-top: 0.15rem; }
.widget .tag-cloud-link {
  display: inline-block;
  font-size: 0.75rem !important;
  background: #f1f5f9;
  color: #475569 !important;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin: 0.15rem;
}
.widget .tag-cloud-link:hover { background: #ecfdf5; color: #059669 !important; }

/* ---------- Paginação ---------- */
.pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: 2.5rem; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.18s;
}
.pagination .page-numbers:hover { border-color: #10b981; color: #059669; }
.pagination .page-numbers.current { background: #059669; border-color: #059669; color: #fff; }

/* ---------- Botões ---------- */
.brbv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #059669;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.3rem;
  border-radius: 0.7rem;
  transition: all 0.2s;
}
.brbv-btn:hover { background: #047857; color: #fff; box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3); }

/* ---------- Hero home ---------- */
.brbv-hero { position: relative; overflow: hidden; }
.brbv-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 44, 34, 0.9) 0%, rgba(2, 44, 34, 0.35) 55%, rgba(2, 44, 34, 0.15) 100%);
}
.brbv-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.brbv-footer a { color: #94a3b8; transition: color 0.15s; }
.brbv-footer a:hover { color: #10b981; }
.brbv-footer h4 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1rem;
}

/* ---------- Forms (busca) ---------- */
.brbv-search input[type='search'] { outline: none; }
.brbv-search input[type='search']:focus { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }

/* ---------- Comentários ---------- */
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment-body { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.9rem; padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.comment-list .comment-author { font-weight: 700; color: #0f172a; }
.comment-list .comment-metadata { font-size: 0.78rem; color: #94a3b8; }
.comment-form input[type='text'], .comment-form input[type='email'], .comment-form input[type='url'],
.comment-form textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: #10b981; }

/* ---------- Utilitários ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Animações */
@keyframes brbvFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.brbv-fade-up { animation: brbvFadeUp 0.6s ease both; }
