/* help_center.css — support hub styling */

.help-card {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 24, 0.86);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: var(--app-max-width, min(1200px, 96vw));
  margin: 0 auto;
}

.help-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.help-header h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 4.6vw, 2.6rem);
  font-family: var(--font-display);
}

.help-header p {
  max-width: 45ch;
  color: var(--color-text-muted);
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.faq-section {
  display: grid;
  gap: 0.8rem;
}

.faq-section details {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(15, 20, 34, 0.78);
  padding: 0.95rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.faq-section summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
}

.faq-section summary::marker {
  display: none;
}

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

.faq-section summary::after {
  content: '\203A';
  position: absolute;
  right: 0;
  transform: rotate(90deg);
  transition: transform 0.25s ease;
}

.faq-section details[open] summary::after {
  transform: rotate(-90deg);
}

.faq-section p {
  margin: 0.75rem 0 0;
  color: var(--color-text-muted);
}

.support-resources {
  display: grid;
  gap: 0.8rem;
}

.support-resources h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.support-resources ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.support-resources a {
  color: var(--color-accent);
}

.help-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
}

.help-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .help-card {
    padding: clamp(24px, 6vw, 36px);
  }

  .help-header {
    flex-direction: column;
  }

  .help-actions {
    width: 100%;
  }

  .help-actions .btn {
    flex: 1 1 160px;
  }

  .help-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.light-mode .help-header p {
  color: var(--color-text-muted);
}

body.light-mode .faq-section details {
  border-color: var(--color-border);
  background: rgba(238, 244, 255, 0.6);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

body.light-mode .faq-section p {
  color: var(--color-text);
}

body.light-mode .support-resources a {
  color: var(--color-link);
}

body.light-mode .support-resources a:hover {
  color: var(--color-link-hover);
}

body.light-mode .help-footer {
  color: var(--color-text-muted);
}
