/* ═══════════════════════════════════════════════════
   InterFilm — FAQ (noir / orange)
   ═══════════════════════════════════════════════════ */

.faq-page {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.faq-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 15% -5%, rgba(247, 127, 0, 0.14), transparent 60%),
    radial-gradient(700px 360px at 85% 8%, rgba(255, 149, 0, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(247, 127, 0, 0.03) 0%, transparent 28%);
  pointer-events: none;
}

.faq-page::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

/* ── Hero ── */
.faq-hero {
  position: relative;
  z-index: 1;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  border-bottom: 1px solid rgba(247, 127, 0, 0.12);
}

.faq-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.faq-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.75rem;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.faq-back:hover {
  border-color: rgba(247, 127, 0, 0.45);
  background: rgba(247, 127, 0, 0.08);
  color: #fff;
}

.faq-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(247, 127, 0, 0.35);
  background: rgba(247, 127, 0, 0.08);
  color: #ff9500;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.faq-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f77f00;
  box-shadow: 0 0 10px rgba(247, 127, 0, 0.8);
}

.faq-hero-title {
  font-family: 'Bebas Neue', var(--ff-head);
  font-size: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.95;
  margin-bottom: 0.85rem;
}

.faq-hero-title span {
  color: #f77f00;
  text-shadow: 0 0 32px rgba(247, 127, 0, 0.35);
}

.faq-hero-lead {
  max-width: 560px;
  color: var(--text2);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.faq-hero-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.faq-search {
  flex: 1 1 280px;
  position: relative;
}

.faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: var(--ff-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.faq-search-input:focus {
  border-color: rgba(247, 127, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(247, 127, 0, 0.12);
}

.faq-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 600;
}

.faq-stat strong {
  color: #ff9500;
  font-weight: 800;
}

/* ── Layout ── */
.faq-shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 4rem;
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

/* ── Sidebar ── */
.faq-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.faq-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(20, 20, 28, 0.95), rgba(12, 12, 16, 0.98));
  overflow: hidden;
}

.faq-card-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(247, 127, 0, 0.1);
}

.faq-card-title {
  font-family: 'Bebas Neue', var(--ff-head);
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.faq-card-title span {
  color: #f77f00;
}

.faq-card-body {
  padding: 16px 18px 18px;
}

.faq-discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  background: #5865f2;
  color: #fff;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.faq-discord-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.faq-discord-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.faq-ask-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff9500;
  margin-bottom: 10px;
}

.faq-ask-input {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: var(--ff-body);
  font-size: 13.5px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-ask-input:focus {
  border-color: rgba(247, 127, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(247, 127, 0, 0.1);
}

.faq-ask-btn {
  width: 100%;
  justify-content: center;
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f77f00, #ff9500);
  color: #fff;
  font-family: 'Bebas Neue', var(--ff-head);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(247, 127, 0, 0.28);
}

.faq-ask-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(247, 127, 0, 0.38);
}

.faq-tip-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-tip-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text2);
}

.faq-tip-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: #f77f00;
}

/* ── Main content ── */
.faq-content {
  min-width: 0;
}

.faq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.faq-cat-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.faq-cat-btn:hover {
  border-color: rgba(247, 127, 0, 0.35);
  color: #fff;
}

.faq-cat-btn.active {
  border-color: rgba(247, 127, 0, 0.55);
  background: rgba(247, 127, 0, 0.14);
  color: #ff9500;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.faq-item:hover {
  border-color: rgba(247, 127, 0, 0.22);
  background: rgba(247, 127, 0, 0.03);
}

.faq-item.open {
  border-color: rgba(247, 127, 0, 0.45);
  background: linear-gradient(135deg, rgba(247, 127, 0, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.faq-question {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: none;
  background: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-family: var(--ff-body);
  transition: background 0.15s;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-q-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 127, 0, 0.12);
  border: 1px solid rgba(247, 127, 0, 0.25);
  color: #ff9500;
  flex-shrink: 0;
}

.faq-q-icon svg {
  width: 18px;
  height: 18px;
}

.faq-q-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.faq-q-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.faq-q-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 149, 0, 0.85);
}

.faq-icon-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.faq-icon-ring svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 2.5;
  transition: transform 0.3s, stroke 0.25s;
}

.faq-item.open .faq-icon-ring {
  background: rgba(247, 127, 0, 0.18);
  border-color: rgba(247, 127, 0, 0.45);
  transform: rotate(180deg);
}

.faq-item.open .faq-icon-ring svg {
  stroke: #ff9500;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-answer-inner {
  padding: 0 20px 20px 70px;
  border-top: 1px solid rgba(247, 127, 0, 0.1);
}

.faq-answer-inner p {
  margin: 16px 0 0;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.8;
}

.faq-answer-inner p strong {
  color: #fff;
  font-weight: 700;
}

.faq-answer-inner p a {
  color: #ff9500;
  text-decoration: none;
  font-weight: 600;
}

.faq-answer-inner p a:hover {
  text-decoration: underline;
}

.faq-answer-inner ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.75;
}

.faq-answer-inner li + li {
  margin-top: 6px;
}

.faq-no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 3rem 1.5rem;
  border-radius: 16px;
  border: 1px dashed rgba(247, 127, 0, 0.25);
  background: rgba(247, 127, 0, 0.04);
}

.faq-no-results.visible {
  display: flex;
}

.faq-no-results-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 127, 0, 0.12);
  border: 1px solid rgba(247, 127, 0, 0.25);
  color: #ff9500;
}

.faq-no-results-title {
  font-family: 'Bebas Neue', var(--ff-head);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.faq-no-results-text {
  max-width: 360px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text2);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .faq-shell {
    grid-template-columns: 1fr;
  }

  .faq-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .faq-hero {
    padding-top: 1rem;
    padding-bottom: 1.75rem;
  }

  .faq-shell {
    padding-top: 1.5rem;
    padding-bottom: 5rem;
  }

  .faq-question {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 16px 14px;
  }

  .faq-q-icon {
    width: 32px;
    height: 32px;
  }

  .faq-q-label {
    font-size: 14px;
  }

  .faq-answer-inner {
    padding: 0 14px 16px 14px;
  }

  .faq-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .faq-cats::-webkit-scrollbar {
    display: none;
  }

  .faq-cat-btn {
    flex-shrink: 0;
  }
}
