/* ================================================================
   AI Tools Roadmap — CSS Principal
   Tema: Claro / Roadmap Matrix
   Autor: bracalente.com.br
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Cores base — Tema Claro */
  --bg-primary:      #f4f5f8;
  --bg-secondary:    #ffffff;
  --bg-header:       #e2e5ec;
  --bg-card:         #ffffff;
  --bg-card-hover:   #f8fafc;

  /* Texto */
  --text-primary:    #0f172a;
  --text-secondary:  #334155;
  --text-muted:      #64748b;
  --text-dim:        #94a3b8;

  /* Bordas */
  --border-subtle:   #cbd5e1;
  --border-light:    #94a3b8;
  --border-medium:   #64748b;

  /* Tipografia */
  --font-body:       'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:       'JetBrains Mono', monospace;

  /* Raio de borda */
  --radius-sm:       4px;
  --radius-md:       6px;
  --radius-lg:       10px;
  --radius-xl:       16px;
  --radius-full:     9999px;

  /* Sombras */
  --shadow-card:     0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover:    0 8px 24px rgba(0, 0, 0, 0.15);

  --header-height:   60px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  font-size: 14px;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: #dcdfe6;
  border-bottom: 2px solid #b0b7c3;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  font-size: 22px;
}

.logo-title {
  font-size: 16px;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 10px;
  color: #475569;
  font-family: var(--font-mono);
  font-weight: 700;
}

.header-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 7px 14px 7px 36px;
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: var(--radius-md);
  color: #0f172a;
  font-size: 13px;
  outline: none;
}

.header-search input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.header-search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 14px;
}

.header-stats {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.stat-badge {
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  font-family: var(--font-mono);
}

/* ================================================================
   TITLE HERO BAR (Compacto)
   ================================================================ */
.hero-section {
  padding: 16px 20px 8px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-title {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 13px;
  color: #475569;
  max-width: 800px;
}

/* ================================================================
   FILTER & CONTROLS BAR
   ================================================================ */
.filter-bar {
  padding: 10px 20px;
  background: #ffffff;
  border-bottom: 1px solid #cbd5e1;
}

.filter-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.filter-label {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.filter-chip {
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.filter-chip.active {
  background: #1e293b;
  border-color: #0f172a;
  color: #ffffff;
  font-weight: 700;
}

.filter-clear {
  margin-left: auto;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: none;
}

.filter-clear.visible { display: inline-flex; }

/* Controles de visualização */
.legend-section {
  padding: 8px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.view-mode-toggle {
  display: flex;
  gap: 2px;
  background: #e2e8f0;
  padding: 2px;
  border-radius: var(--radius-sm);
}

.view-btn {
  padding: 5px 12px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.view-btn.active {
  background: #2563eb;
  color: #ffffff;
}

/* Seleção de Idioma (i18n) */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: var(--radius-sm);
}

.lang-btn {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  font-family: var(--font-body);
}

.lang-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.lang-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.legend-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  font-family: var(--font-mono);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #334155;
  font-weight: 600;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.free        { background: #16a34a; }
.legend-dot.freemium    { background: #d97706; }
.legend-dot.paid        { background: #dc2626; }
.legend-dot.open-source { background: #2563eb; }

.btn-pdf {
  padding: 5px 14px;
  background: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

/* ================================================================
   ROADMAP MATRIX LAYOUT
   ================================================================ */
.roadmap-wrapper {
  padding: 16px 20px 40px;
  overflow-x: auto;
}

/* Matriz Container Principal */
.paul-jerimy-matrix {
  display: flex;
  gap: 12px;
  min-width: 1200px;
  align-items: stretch;
}

/* Eixo Y da Esquerda (Faixas de Nível: AVANÇADO, INTERMEDIÁRIO, INICIANTE) */
.matrix-y-axis {
  display: flex;
  flex-direction: column;
  width: 44px;
  flex-shrink: 0;
}

.matrix-y-spacer {
  height: 52px; /* Alinha perfeitamente com a altura do cabeçalho da coluna */
  flex-shrink: 0;
}

.y-axis-band {
  flex: 1;
  background: #cbd5e1;
  border: 1px solid #94a3b8;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px 0;
}

.y-axis-band:last-child {
  margin-bottom: 0;
}

.y-axis-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  color: #1e293b;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

/* Colunas dos Domínios (Categorias na Vertical) */
.matrix-column {
  flex: 1;
  min-width: 170px;
  background: var(--col-bg, #ffffff);
  border: 2px solid var(--col-color, #64748b);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Cabeçalho da Coluna do Domínio */
.matrix-column-header {
  padding: 8px 10px;
  background: var(--col-color, #64748b);
  color: #ffffff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.matrix-column-header .cat-icon {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

/* Zonas de Nível dentro da Coluna */
.matrix-level-zone {
  flex: 1;
  padding: 8px;
  border-bottom: 1px dashed var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.matrix-level-zone:last-child {
  border-bottom: none;
}

.level-tag {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

/* TILES / CARDS DAS FERRAMENTAS */
.matrix-tool-tile {
  background: var(--col-color, #2563eb);
  color: #ffffff;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.matrix-tool-tile:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
  z-index: 10;
  filter: brightness(1.1);
}

.matrix-tile-name {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.matrix-tile-domain {
  font-size: 9.5px;
  opacity: 0.85;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.matrix-tile-pricing {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}

.matrix-tool-tile:hover .matrix-tile-pricing {
  transform: scale(1.4);
}

/* Cores por tipo de licença */
.matrix-tile-pricing.pricing-open-source { background: #4ade80; } /* Verde — Open Source */
.matrix-tile-pricing.pricing-free        { background: #60a5fa; } /* Azul  — Gratuito    */
.matrix-tile-pricing.pricing-freemium    { background: #fbbf24; } /* Âmbar — Freemium    */
.matrix-tile-pricing.pricing-paid        { background: #f87171; } /* Vermelho — Pago     */

/* ================================================================
   CYBER TOOLTIP POPOVER (On Hover)
   ================================================================ */
.tool-tooltip {
  position: fixed;
  z-index: 10000;
  width: 320px;
  background: #0f172a;
  color: #f8fafc;
  border: 2px solid var(--accent-cyan, #00d4ff);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 150ms ease, transform 150ms ease;
  display: none;
}

.tool-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.tooltip-top-bar {
  height: 4px;
  background: var(--category-color, #2563eb);
  border-radius: 2px 2px 0 0;
  margin: -16px -16px 12px -16px;
}

.tooltip-name {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.tooltip-domain {
  font-size: 11px;
  color: #38bdf8;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.tooltip-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 12px;
}

.tooltip-action {
  display: inline-block;
  padding: 8px 14px;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 800;
  font-size: 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  pointer-events: all;
}

/* ================================================================
   MOBILE DRAWER
   ================================================================ */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
}

.mobile-drawer-overlay.open { display: block; }

/* ============================================================
   TAXONOMY ENTERPRISE (index2.html)
   ============================================================ */
.macro-domain-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  margin-bottom: 32px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.macro-domain-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #cbd5e1;
}

.macro-title {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.macro-standard-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

/* Tooltip Ficha de Governança Enterprise */
.taxonomy-governance-tooltip {
  position: absolute;
  z-index: 9999;
  width: 360px;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid #334155;
  display: none;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  overflow: hidden;
}

.taxonomy-governance-tooltip.visible {
  opacity: 1;
}

.gov-top-bar {
  height: 4px;
  width: 100%;
}

.gov-content {
  padding: 16px;
}

.gov-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.gov-subtitle {
  font-size: 11px;
  color: #38bdf8;
  font-family: var(--font-mono);
}

.gov-badge-pricing {
  font-size: 10px;
  font-weight: 800;
  background: #334155;
  color: #fbbf24;
  padding: 2px 6px;
  border-radius: 4px;
}

.gov-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 10px 0;
}

.gov-grid {
  background: #1e293b;
  padding: 10px;
  border-radius: 6px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #334155;
}

.gov-item {
  color: #cbd5e1;
}

.gov-item strong {
  color: #f8fafc;
}

.gov-link {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  text-decoration: none;
}
.gov-link:hover {
  text-decoration: underline;
}

.mobile-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 501;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-drawer.open { transform: translateY(0); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: #e2e8f0;
  border-top: 1px solid #cbd5e1;
  padding: 24px 20px;
  text-align: center;
  font-size: 12px;
  color: #475569;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-section { flex-direction: column; align-items: flex-start; }
  .header-search { display: none; }
  .mobile-drawer { display: block; }
  .tool-tooltip { display: none !important; }
}

/* ================================================================
   LEGENDA DE PRICING
   ================================================================ */
.legend-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 20px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.legend-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: var(--font-mono);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

/* Dots da legenda — mesmas cores dos dots nos cards */
.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.legend-dot.open-source { background: #4ade80; } /* Verde  — Open Source */
.legend-dot.free        { background: #60a5fa; } /* Azul   — Gratuito    */
.legend-dot.freemium    { background: #fbbf24; } /* Âmbar  — Freemium    */
.legend-dot.paid        { background: #f87171; } /* Vermelho — Pago      */

/* ================================================================
   🔥 AI PULSE — OBSERVATÓRIO DE INTELIGÊNCIA TECNOLÓGICA
   ================================================================ */
.ai-pulse-section {
  background: #090d16;
  color: #f8fafc;
  border-top: 2px solid #1e293b;
  border-bottom: 2px solid #1e293b;
  padding: 40px 20px;
}

.pulse-container {
  max-width: 1200px;
  margin: 0 auto;
}

.pulse-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.pulse-badge-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  font-family: var(--font-mono);
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.pulse-title {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.pulse-sub {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

.pulse-meta-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.pulse-source-tag {
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.pulse-source-tag.live {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.pulse-source-tag.demo {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.pulse-timestamp {
  font-size: 11px;
  color: #64748b;
  font-family: var(--font-mono);
}

/* Toolbar de Filtros */
.pulse-toolbar {
  background: #111827;
  border: 1px solid #1f293d;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pulse-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pulse-group-label {
  font-size: 10px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #64748b;
  min-width: 65px;
}

.pulse-filter-type,
.pulse-filter-pricing,
.pulse-filter-trend,
.pulse-filter-period {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pulse-filter-type:hover,
.pulse-filter-pricing:hover,
.pulse-filter-trend:hover,
.pulse-filter-period:hover {
  background: #334155;
  color: #ffffff;
}

.pulse-filter-type.active,
.pulse-filter-pricing.active,
.pulse-filter-trend.active,
.pulse-filter-period.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

/* AI TREND MAP CANVAS */
.trend-map-wrapper {
  background: radial-gradient(circle at center, #111827 0%, #030712 100%);
  border: 1px solid #1e293b;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.trend-map-header {
  margin-bottom: 20px;
}

.trend-map-title {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.trend-map-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.trend-map-canvas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 280px;
  padding: 20px;
}

.trend-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(8px);
  border: 2px solid #334155;
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.trend-node:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  z-index: 10;
}

.trend-node.large {
  padding: 16px 26px;
  flex: 1 1 210px;
  min-height: 90px;
  border-width: 2px;
}

.trend-node.medium {
  padding: 12px 20px;
  flex: 1 1 160px;
  min-height: 75px;
}

.trend-node.compact {
  padding: 10px 14px;
  flex: 1 1 120px;
  min-height: 60px;
}

.trend-node.open-source { border-color: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.15); }
.trend-node.free        { border-color: #3b82f6; box-shadow: 0 0 12px rgba(59, 130, 246, 0.15); }
.trend-node.freemium    { border-color: #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.15); }
.trend-node.paid        { border-color: #ef4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.15); }

.node-score {
  font-size: 10px;
  font-weight: 900;
  font-family: var(--font-mono);
  background: rgba(254, 243, 199, 0.1);
  color: #fbbf24;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.node-name {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.node-type {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #94a3b8;
  margin-top: 2px;
  text-transform: uppercase;
}

/* Pulse Cards Grid */
.pulse-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.pulse-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.pulse-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.pulse-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pulse-badge-score {
  font-size: 11px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #fbbf24;
}

.pulse-pricing-tag {
  font-size: 9px;
  font-weight: 900;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
}

.pulse-pricing-tag.open-source { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.pulse-pricing-tag.free        { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.pulse-pricing-tag.freemium    { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.pulse-pricing-tag.paid        { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.pulse-card-title {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 2px;
}

.pulse-card-domain {
  font-size: 11px;
  color: #60a5fa;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.pulse-card-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 14px;
}

.btn-inspect {
  background: #1e293b;
  color: #60a5fa;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-inspect:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
}

/* Transparência Box */
.pulse-transparency-box {
  background: rgba(30, 41, 59, 0.4);
  border: 1px dashed #334155;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-top: 32px;
}

.pulse-transparency-box h4 {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.pulse-transparency-box p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

/* DRAWER PAINEL LATERAL DE DETALHES */
.pulse-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pulse-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.pulse-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: #0f172a;
  color: #f8fafc;
  border-left: 1px solid #1e293b;
  z-index: 501;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
}

.pulse-drawer.open {
  transform: translateX(0);
}

.p-drawer-header {
  padding: 20px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pulse-type-badge {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #94a3b8;
  background: #1e293b;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.p-drawer-title {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  margin-top: 8px;
}

.p-drawer-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
}

.p-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.p-drawer-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

.p-scores-container {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

.p-score-item {
  margin-bottom: 12px;
}

.p-score-item:last-child {
  margin-bottom: 0;
}

.p-score-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 4px;
}

.p-score-bar-bg {
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  overflow: hidden;
}

.p-score-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.p-score-bar-fill.hot       { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.p-score-bar-fill.community { background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
.p-score-bar-fill.relevance { background: linear-gradient(90deg, #10b981, #06b6d4); }

.confidence-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.confidence-tag.high   { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.confidence-tag.medium { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.confidence-tag.low    { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.p-drawer-section {
  margin-bottom: 20px;
}

.domain-chip {
  font-size: 11px;
  font-family: var(--font-mono);
  background: #1e293b;
  color: #60a5fa;
  padding: 4px 8px;
  border-radius: 4px;
}

.p-why-list {
  list-style: none;
  padding: 0;
}

.p-why-list li {
  font-size: 12px;
  color: #94a3b8;
  padding: 6px 0;
  border-bottom: 1px solid #1e293b;
  position: relative;
  padding-left: 18px;
}

.p-why-list li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  top: 6px;
  font-size: 10px;
}

.related-chip {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.related-chip:hover {
  background: #2563eb;
  color: #ffffff;
}

.btn-drawer-action {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-drawer-action.official { background: #2563eb; color: #ffffff; }
.btn-drawer-action.github   { background: #334155; color: #ffffff; }

@media (max-width: 768px) {
  .pulse-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 85vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }

  .pulse-drawer.open {
    transform: translateY(0);
  }
}

