/* ==========================================================================
   Help Center / FAQ page
   Breadcrumb, filter-bar, game-tabs and seo-text are not part of base.css —
   they normally live in index.styles.css, so this page replicates the same
   rules to stay visually consistent without loading index.styles.css.
   ========================================================================== */

/* ---------- Breadcrumb (shared pattern) ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.breadcrumb a:hover {
  color: var(--gold-300);
}
.breadcrumb-sep {
  color: var(--text-muted);
}
.breadcrumb-current {
  color: var(--gold-300);
  font-weight: 600;
}

/* ---------- Page heading ---------- */
.help-hero {
  padding: 16px 0 4px;
  max-width: 860px;
}
.help-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}
.help-lead {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 720px;
}

/* ---------- Filter bar / category tabs (shared pattern) ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px auto 24px;
}

.game-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 5px;
}
.game-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.game-tab:hover {
  color: var(--gold-300);
  background: rgba(229, 179, 88, 0.08);
}
.game-tab.active {
  background: var(--gold-gradient);
  color: var(--text-inverse);
}

.help-categories {
  width: 100%;
  justify-content: flex-start;
}

/* ---------- FAQ accordion ---------- */
.help-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 4px 20px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.faq-item[open] {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-gold-glow);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 34px 18px 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  position: relative;
  display: flex;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::marker {
  content: "";
}
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%) rotate(45deg);
  border-right: 2px solid var(--gold-400);
  border-bottom: 2px solid var(--gold-400);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq-item summary:hover {
  color: var(--gold-300);
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.faq-answer {
  padding: 0 0 20px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 860px;
}
.faq-answer p + p {
  margin-top: 10px;
}

.faq-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  padding: 40px 0;
}

/* ---------- Contact block ---------- */
.help-contact {
  margin: 48px auto 56px;
}
.help-contact-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.help-contact-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.help-contact-body {
  flex: 1;
  min-width: 0;
}
.help-contact-body p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 8px;
  max-width: 640px;
}
.help-contact-email {
  font-size: 13px;
  color: var(--text-muted) !important;
}
.help-contact-email a {
  color: var(--gold-400);
  font-weight: 700;
}
.help-contact-email a:hover {
  text-decoration: underline;
}
.help-contact-card .btn {
  flex-shrink: 0;
}

/* ---------- SEO text block (shared pattern, optional use) ---------- */
.seo-text {
  margin: 56px auto 24px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
}
.seo-text h2 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.seo-text p + p {
  margin-top: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .help-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .help-title {
    font-size: 24px;
  }
  .help-contact-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .help-contact-card .btn {
    width: 100%;
    justify-content: center;
  }
  .faq-item {
    padding: 2px 16px;
  }
  .faq-item summary {
    font-size: 14px;
    padding: 14px 30px 14px 0;
  }
}
