/* =============================================================
   faq.css — Page FAQ (Foire Aux Questions)
   ============================================================= */

/* ── Header ──────────────────────────────────────────────── */

.faq-page-header {
  text-align: center;
  padding: 58px 20px 8px;
  position: relative;
}

.faq-page-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent, #e63946);
  margin: 12px auto 0;
  border-radius: 2px;
}

.faq-page-title {
  font-family: "Oswald", "Arial Black", Arial, sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.faq-page-subtitle {
  color: #666;
  font-size: 0.95rem;
  margin: 10px 0 0;
  font-style: italic;
}

/* ── Jack Frost mascot ───────────────────────────────────── */

.faq-mascot {
  position: fixed;
  bottom: 80px;
  right: 18px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  gap: 4px;
}

.faq-mascot img {
  width: 78px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.faq-mascot-bubble {
  background: #ffffff;
  border: 2px solid #4a90d9;
  border-radius: 12px 12px 0 12px;
  padding: 7px 11px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.4;
  box-shadow: 2px 2px 0 #4a90d9;
  white-space: nowrap;
}

/* ── Content wrapper ─────────────────────────────────────── */

.faq-wrap {
  max-width: 780px;
  margin: 24px auto 0;
  padding: 0 20px 100px;
}

/* ── Category headers ────────────────────────────────────── */

.faq-category {
  font-family: "Oswald", "Arial Black", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e63946;
  border-left: 4px solid #e63946;
  padding: 9px 14px;
  margin: 36px 0 10px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
}

.faq-category:first-of-type {
  margin-top: 8px;
}

/* ── Accordion items ─────────────────────────────────────── */

.faq-item {
  background: rgba(255, 255, 255, 0.93);
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.2s;
  backdrop-filter: blur(6px);
}

.faq-item:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

.faq-item.open {
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.14);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.93rem;
  color: #1a1a1a;
  user-select: none;
  gap: 12px;
  transition: background 0.15s;
}

.faq-question:hover {
  background: rgba(230, 57, 70, 0.04);
}

.faq-arrow {
  color: #e63946;
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(90deg);
}

/* ── Answer panel ────────────────────────────────────────── */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.38s ease,
    padding 0.38s ease;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 700px;
  padding: 2px 20px 18px;
}

.faq-answer p {
  color: #444;
  line-height: 1.75;
  font-size: 0.91rem;
  margin: 0 0 6px;
}

/* ── Discord button ──────────────────────────────────────── */

.faq-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865f2;
  color: #fff;
  border-radius: 8px;
  padding: 9px 18px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 10px;
  transition:
    transform 0.15s,
    opacity 0.15s;
  pointer-events: all;
}

.faq-discord-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.faq-discord-btn::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("../assets/buttons/discord.svg") center / contain no-repeat;
  filter: brightness(0) invert(1);
}

/* ── Team list ───────────────────────────────────────────── */

.faq-team {
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.faq-team li {
  color: #444;
  font-size: 0.91rem;
  line-height: 1.5;
  position: relative;
  padding: 8px 12px 8px 28px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 7px;
  border-left: 3px solid #e63946;
  backdrop-filter: blur(4px);
}

.faq-team li::before {
  content: "◆";
  color: #e63946;
  font-size: 0.5rem;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.faq-team li strong {
  color: #1a1a1a;
  display: block;
  margin-bottom: 1px;
}

/* ── Back button ─────────────────────────────────────────── */

.faq-back {
  text-align: center;
  padding: 28px 0 8px;
}

/* ── Dark mode ───────────────────────────────────────────── */

body.darkmode .faq-page-title {
  color: #f0f0f0;
}

body.darkmode .faq-page-subtitle {
  color: #aaa;
}

body.darkmode .faq-category {
  background: rgba(30, 30, 30, 0.93);
  color: #e63946;
}

body.darkmode .faq-item {
  background: rgba(30, 30, 30, 0.93);
}

body.darkmode .faq-question {
  color: #f0f0f0;
}

body.darkmode .faq-question:hover {
  background: rgba(230, 57, 70, 0.07);
}

body.darkmode .faq-answer p {
  color: #ccc;
}

body.darkmode .faq-team li {
  color: #ccc;
  background: rgba(40, 40, 40, 0.75);
  border-left-color: #e63946;
}

body.darkmode .faq-team li strong {
  color: #f0f0f0;
}

body.darkmode .faq-mascot-bubble {
  background: #2a2a2a;
  color: #f0f0f0;
  border-color: #6ab0f5;
  box-shadow: 2px 2px 0 #6ab0f5;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 480px) {
  .faq-mascot {
    display: none;
  }

  .faq-question {
    font-size: 0.86rem;
    padding: 14px 16px;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-item.open .faq-answer {
    padding: 2px 16px 16px;
  }

  .faq-category {
    font-size: 0.9rem;
  }
}
