/* ==========================================================================
   NEXA DOCS — CSS Específico para Documentação e Roadmap
   ========================================================================== */

.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}

/* Sidebar de navegação rápida */
.docs-sidebar {
  position: sticky;
  top: 96px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.docs-sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.docs-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all var(--transition-fast);
  display: block;
}

.docs-nav-link:hover,
.docs-nav-link.active {
  color: var(--text-main);
  background: var(--bg-card);
}

.docs-nav-link.active {
  color: #a5b4fc;
  font-weight: 600;
  border-left: 2px solid var(--border-active);
}

/* Área de Conteúdo da Documentação */
.docs-content {
  min-width: 0;
}

.docs-section {
  margin-bottom: 64px;
  scroll-margin-top: 96px;
}

.docs-section h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.docs-section h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 28px 0 14px;
}

.docs-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}

.docs-section ul,
.docs-section ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.docs-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Alertas de Documentação */
.docs-callout {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  font-size: 0.94rem;
  line-height: 1.6;
}

.docs-callout-info {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
}

.docs-callout-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: #fde68a;
}

.docs-callout-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: #a7f3d0;
}

.callout-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Tabelas da Documentação */
.docs-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.docs-table th {
  background: var(--bg-card);
  color: var(--text-main);
  padding: 14px 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.docs-table td {
  padding: 14px 18px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges de Status do Roadmap */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-pill-ready {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-pill-progress {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-pill-planned {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Bloco de Código Completo */
.code-block-container {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0;
  overflow: hidden;
}

.code-block-header {
  background: var(--bg-card);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.code-block-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.code-block-pre {
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #e2e8f0;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question:hover {
  color: #a5b4fc;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Responsividade da Documentação */
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 32px;
  }
}
