/* Estilos para a página de Ajuda */

/* Configuração global da fonte */
.ajuda-container,
.ajuda-container * {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Manter monospace apenas para elementos de código */
.ia-exemplos code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.ajuda-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #f8f9fa;
  min-height: 100vh;
}

.ajuda-header {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: white;
  padding: 24px;
  text-align: center;
}

.ajuda-header h1 {
  margin: 0;
  font-size: 2.2em;
  font-weight: 600;
}

.ajuda-header p {
  margin: 8px 0 0 0;
  opacity: 0.9;
  font-size: 1.1em;
}

.ajuda-content {
  padding: 32px;
  max-height: calc(100vh - 300px);
  overflow-y: auto;
}

.ajuda-loading {
  text-align: center;
  margin-bottom: 32px;
}

.ajuda-loading-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.ajuda-loading-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.ajuda-loading-text {
  text-align: left;
}

.ajuda-loading-text h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.2em;
}

.ajuda-loading-text p {
  margin: 4px 0 0 0;
  color: #6b7280;
  font-size: 0.9em;
}

/* Seção da IA */
.ia-secao {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: 2px solid #1976d2;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.ia-secao h2 {
  margin: 0 0 16px 0;
  color: #1565c0;
  font-size: 1.8em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ia-secao p {
  margin: 0 0 24px 0;
  color: #1976d2;
  font-size: 1.1em;
  line-height: 1.6;
}

.ia-comandos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.ia-comando-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ia-comando-card h4 {
  margin: 0 0 12px 0;
  color: #1f2937;
  font-size: 1.2em;
  border-bottom: 2px solid #1976d2;
  padding-bottom: 8px;
}

.ia-comando-card p {
  margin: 0 0 16px 0;
  color: #4b5563;
  line-height: 1.5;
}

.ia-exemplos {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
}

.ia-exemplos h5 {
  margin: 0 0 12px 0;
  color: #374151;
  font-size: 1em;
}

.ia-exemplos ul {
  margin: 0;
  padding-left: 20px;
  color: #6b7280;
  line-height: 1.6;
}

.ia-exemplos code {
  background: #e5e7eb;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* Seções gerais */
.ajuda-secao {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ajuda-secao h3 {
  margin: 0 0 16px 0;
  color: #1f2937;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ajuda-secao p {
  margin: 0 0 20px 0;
  color: #6b7280;
  line-height: 1.6;
}

.ajuda-secao h4 {
  margin: 0 0 12px 0;
  color: #374151;
  font-size: 1.1em;
}

.ajuda-secao ul {
  margin: 0;
  padding-left: 20px;
  color: #6b7280;
  line-height: 1.6;
}

/* Seção de Dicas */
.dicas-secao {
  background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf1 100%);
  border: 2px solid #1976d2;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.dicas-secao h3 {
  margin: 0 0 20px 0;
  color: #1565c0;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dicas-secao ul {
  margin: 0;
  padding-left: 20px;
  color: #1976d2;
  line-height: 1.7;
  font-size: 1.05em;
}

.dicas-secao li {
  margin-bottom: 8px;
}

/* Seção de Permissões */
.permissoes-secao {
  background: linear-gradient(135deg, #f3f8ff 0%, #e1f5fe 100%);
  border: 2px solid #1976d2;
  border-radius: 16px;
  padding: 24px;
}

.permissoes-secao h3 {
  margin: 0 0 20px 0;
  color: #1565c0;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.permissoes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.permissao-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #1976d2;
}

.permissao-card h4 {
  margin: 0 0 16px 0;
  color: #1565c0;
  font-size: 1.2em;
  text-transform: capitalize;
}

.permissao-card ul {
  margin: 0;
  padding-left: 20px;
  color: #1976d2;
  line-height: 1.6;
}

/* Responsividade */
@media (max-width: 768px) {
  .ajuda-header h1 {
    font-size: 1.8em;
  }

  .ajuda-content {
    padding: 20px;
  }

  .ia-comandos-grid {
    grid-template-columns: 1fr;
  }

  .permissoes-grid {
    grid-template-columns: 1fr;
  }

  .ajuda-loading-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .ajuda-header {
    padding: 16px;
  }

  .ajuda-header h1 {
    font-size: 1.5em;
  }

  .ajuda-content {
    padding: 16px;
  }

  .ia-secao,
  .ajuda-secao,
  .dicas-secao,
  .permissoes-secao {
    padding: 16px;
  }
}

/* Scrollbar personalizada */
.ajuda-content::-webkit-scrollbar {
  width: 8px;
}

.ajuda-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.ajuda-content::-webkit-scrollbar-thumb {
  background: #1976d2;
  border-radius: 4px;
}

.ajuda-content::-webkit-scrollbar-thumb:hover {
  background: #1565c0;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ajuda-secao,
.ia-secao,
.dicas-secao,
.permissoes-secao {
  animation: fadeIn 0.6s ease-out;
}

/* Estados de hover */
.ia-comando-card:hover,
.permissao-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.ia-exemplos code:hover {
  background: #d1d5db;
  transition: background 0.2s ease;
}