/**
 * BoardGamesBot — Help Center Page Styles
 * Follows Design System tokens for Dark and Light themes.
 */

.help-page-shell {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.help-hero {
  text-align: center;
  margin-bottom: 3.5rem;
}

.help-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill, 9999px);
  background: var(--primary-soft, rgba(99, 102, 241, 0.12));
  color: var(--primary, #6366f1);
  border: 1px solid var(--primary-border, rgba(99, 102, 241, 0.3));
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.help-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text, #f8fafc);
  margin-bottom: 0.85rem;
  letter-spacing: -0.025em;
}

.help-hero__title-accent {
  background: linear-gradient(135deg, var(--primary, #6366f1) 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.help-hero__lead {
  font-size: 1.125rem;
  color: var(--text-muted, #94a3b8);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* Category Cards Grid */
.help-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .help-categories {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.help-category-card {
  background: var(--surface, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: var(--radius-xl, 1.25rem);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  text-decoration: none;
  color: inherit;
}

.help-category-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-border, rgba(99, 102, 241, 0.5));
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.3);
}

.help-category-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
  color: var(--primary, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-category-card__icon .ds-mso {
  font-size: 1.5rem;
}

.help-category-card__body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text, #f8fafc);
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.help-category-card__body h3 .ds-mso {
  font-size: 1.1rem;
  color: var(--text-muted, #94a3b8);
  opacity: 0.7;
}

.help-category-card__body p {
  font-size: 0.92rem;
  color: var(--text-muted, #94a3b8);
  margin: 0;
  line-height: 1.5;
}

/* Detailed Help Guide Sections */
.help-guides {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-bottom: 4.5rem;
}

.help-guide-block {
  scroll-margin-top: 6rem;
  background: var(--surface, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: var(--radius-xl, 1.25rem);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

@media (max-width: 640px) {
  .help-guide-block {
    padding: 1.5rem 1.25rem;
  }
}

.help-guide-block__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border, #334155);
}

.help-guide-block__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
  color: var(--primary, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-guide-block__icon .ds-mso {
  font-size: 1.4rem;
}

.help-guide-block__head h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text, #f8fafc);
  margin: 0;
  letter-spacing: -0.015em;
}

.help-guide-articles {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.help-guide-article {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.help-guide-article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text, #f8fafc);
  margin: 0;
}

.help-guide-article p {
  font-size: 0.96rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.65;
  margin: 0;
}

.help-guide-article code {
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary, #818cf8);
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  font-weight: 600;
}

.help-guide-article a {
  color: var(--primary, #818cf8);
  text-decoration: none;
  font-weight: 600;
}

.help-guide-article a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.help-faq {
  margin-bottom: 4.5rem;
}

.help-faq__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text, #f8fafc);
  text-align: center;
  margin-bottom: 2rem;
}

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

.help-faq-item {
  background: var(--surface, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: var(--radius-lg, 0.75rem);
  padding: 1.15rem 1.35rem;
  transition: border-color 0.2s ease;
}

.help-faq-item[open] {
  border-color: var(--primary-border, rgba(99, 102, 241, 0.3));
}

.help-faq-item summary {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #f8fafc);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

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

.help-faq-item summary::after {
  content: 'expand_more';
  font-family: 'Material Symbols Outlined';
  font-size: 1.4rem;
  color: var(--text-muted, #94a3b8);
  transition: transform 0.2s ease;
}

.help-faq-item[open] summary::after {
  transform: rotate(180deg);
}

.help-faq-item p {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.6;
}

/* Contact Form Section */
.help-contact-section {
  background: var(--surface, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: var(--radius-xl, 1.25rem);
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-card);
}

@media (max-width: 640px) {
  .help-contact-section {
    padding: 1.75rem 1.25rem;
  }
}

.help-contact-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.help-contact-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text, #f8fafc);
  margin: 0 0 0.5rem;
}

.help-contact-header p {
  font-size: 1.02rem;
  color: var(--text-muted, #94a3b8);
  margin: 0;
}

.help-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 38rem;
  margin: 0 auto;
}

.help-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .help-form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.help-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.help-form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text, #f8fafc);
}

.help-form-input,
.help-form-select,
.help-form-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--surface) 70%, black);
  border: 1px solid var(--border, #334155);
  border-radius: var(--radius-md, 0.5rem);
  color: var(--text, #f8fafc);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.help-form-input:focus,
.help-form-select:focus,
.help-form-textarea:focus {
  border-color: var(--primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.help-form-textarea {
  resize: vertical;
  min-height: 8rem;
}

.help-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill, 9999px);
  background: linear-gradient(135deg, var(--primary, #6366f1) 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.help-form-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Alert messages */
.help-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md, 0.5rem);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.help-alert--success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.help-alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.help-direct-contact {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-muted, #94a3b8);
}

.help-direct-contact a {
  color: var(--primary, #6366f1);
  font-weight: 600;
  text-decoration: none;
}

.help-direct-contact a:hover {
  text-decoration: underline;
}
