/* Header da página de ajuda */
.help-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: white;
  margin: -2rem -2rem 2rem -2rem;
  padding: 2rem;
  border-radius: 0 0 1rem 1rem;
}

.help-title-section h1 {
  color: white !important;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
}

.help-title-section h1 i {
  margin-right: 0.75rem;
  color: #ffffff;
}

.help-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 800px;
}

/* Seção de pesquisa */
.help-search-section {
  margin-bottom: 2rem;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 74, 143, 0.1);
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 4px 25px rgba(0, 74, 143, 0.2);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 1rem;
  font-size: 1.1rem;
}

.help-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.25rem 0;
  background: transparent;
  color: var(--text-color);
}

.help-search-input::placeholder {
  color: var(--text-muted);
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}

.clear-search-btn:hover {
  background-color: var(--light-color);
  color: var(--danger-color);
}

.search-results-info {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Container principal */
.help-content {
  max-width: 1000px;
  margin: 0 auto;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Items do FAQ */
.faq-item {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0, 74, 143, 0.1);
  transform: translateY(-2px);
}

/* Detalhes e Summary */
.faq-details {
  width: 100%;
}

.faq-summary {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: white;
  transition: all 0.3s ease;
  position: relative;
}

.faq-summary:hover {
  background: linear-gradient(135deg, #003a70 0%, var(--primary-color) 100%);
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.2rem;
  margin-right: 1rem;
  color: white;
  flex-shrink: 0;
}

.faq-title {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
  margin-left: 1rem;
}

/* Conteúdo do FAQ */
.faq-content {
  padding: 2rem;
  background: #fafbfc;
  border-top: 1px solid var(--border-color);
  line-height: 1.7;
}

/* Highlights e alertas */
.faq-highlight {
  background: var(--primary-bg-color);
  border: 1px solid var(--primary-border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.faq-highlight-info {
  background: var(--info-bg-color);
  border-color: var(--info-border-color);
  color: #0c5460;
}

.faq-highlight-success {
  background: var(--success-bg-color);
  border-color: var(--success-border-color);
  color: #155724;
}

.faq-highlight-warning {
  background: var(--warning-bg-color);
  border-color: var(--warning-border-color);
  color: #856404;
}

.faq-highlight i {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.faq-warning {
  background: var(--danger-bg-color);
  border: 1px solid var(--danger-border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-top: 1.5rem;
  color: #721c24;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.faq-warning i {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.faq-tip {
  background: #e8f5e8;
  border: 1px solid #c3e6cb;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-top: 1.5rem;
  color: #155724;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.faq-tip i {
  margin-top: 0.1rem;
  flex-shrink: 0;
  color: #28a745;
}

.faq-info {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-top: 1.5rem;
  color: var(--text-color);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.faq-info i {
  margin-top: 0.1rem;
  flex-shrink: 0;
  color: var(--info-color);
}

/* Passos e listas */
.faq-steps {
  margin: 1.5rem 0;
}

.faq-steps h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-steps ol {
  padding-left: 1.5rem;
  margin: 0;
}

.faq-steps li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.faq-steps ul {
  margin: 0.5rem 0 0 1rem;
  padding-left: 1rem;
}

.faq-steps ul li {
  margin-bottom: 0.4rem;
}

/* Links */
.faq-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.faq-link:hover {
  color: #003a70;
  border-bottom-color: #003a70;
  text-decoration: none;
}

/* Códigos e elementos especiais */
code {
  background: var(--light-color);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

/* Níveis de acesso */
.access-levels {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.access-level {
  background: white;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.access-level strong {
  color: var(--primary-color);
  min-width: 100px;
}

.access-level i {
  width: 16px;
}

/* Seção especial */
.faq-special {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.faq-special h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-special ul {
  margin: 0.5rem 0 0 1.5rem;
  padding: 0;
}

.faq-special li {
  margin-bottom: 0.5rem;
}

/* Texto colorido */
.text-success {
  color: var(--success-color) !important;
}

.text-danger {
  color: var(--danger-color) !important;
}

/* Sem resultados */
.no-results {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-top: 2rem;
}

.no-results-content i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
}

.no-results-content h3 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.no-results-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Responsividade */
@media (max-width: var(--breakpoint-sm)) {
  .help-header {
    margin: -1rem -1rem 1.5rem -1rem;
    padding: 1.5rem 1rem;
  }

  .help-title-section h1 {
    font-size: 1.6rem;
  }

  .help-description {
    font-size: 1rem;
  }

  .search-input-wrapper {
    padding: 0.6rem 1rem;
  }

  .faq-summary {
    padding: 1rem;
    flex-wrap: wrap;
  }

  .faq-title {
    font-size: 1rem;
  }

  .faq-content {
    padding: 1.5rem;
  }

  .faq-steps ol,
  .faq-steps ul {
    padding-left: 1rem;
  }

  .access-levels {
    gap: 0.5rem;
  }

  .access-level {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .access-level strong {
    min-width: auto;
  }
}

@media (max-width: var(--breakpoint-xs)) {
  .help-header {
    margin: -1rem -0.5rem 1rem -0.5rem;
    padding: 1.25rem 1rem;
  }

  .help-title-section h1 {
    font-size: 1.4rem;
  }

  .search-input-wrapper {
    padding: 0.5rem 0.75rem;
  }

  .help-search-input {
    font-size: 0.9rem;
  }

  .faq-summary {
    padding: 0.75rem;
  }

  .faq-icon {
    font-size: 1rem;
    margin-right: 0.75rem;
  }

  .faq-title {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .faq-content {
    padding: 1rem;
  }

  .faq-highlight,
  .faq-warning,
  .faq-tip,
  .faq-info {
    padding: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .faq-special {
    padding: 1rem;
  }

  .no-results {
    padding: 2rem 1rem;
  }

  .no-results-content i {
    font-size: 2.5rem;
  }
}

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

.faq-item {
  animation: fadeIn 0.3s ease-out;
}

/* Estados dos details */
.faq-details[open] .faq-summary {
  background: linear-gradient(135deg, #003a70 0%, var(--primary-color) 100%);
}

.faq-details[open] .faq-content {
  animation: fadeIn 0.3s ease-out;
}

/* Melhorar a experiência de foco */
.faq-summary:focus {
  outline: 2px solid rgba(0, 74, 143, 0.3);
  outline-offset: 2px;
}

.help-search-input:focus {
  outline: none;
}

/* Scroll suave para elementos em foco */
html {
  scroll-behavior: smooth;
}
