/* FAQ Custom Styling integrated with Destiny Hub Design System */
.faq-search-block {
  background: var(--card);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--glow);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.faq-search-block::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.faq-search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 20px auto 0;
}

.faq-search-input {
  width: 100%;
  padding: 16px 24px 16px 54px;
  background: rgba(8, 7, 14, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.faq-search-input:focus {
  border-color: var(--purple);
  outline: none;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
  background: rgba(8, 7, 14, 0.85);
}

.faq-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--muted);
  pointer-events: none;
}

/* Tab Selector */
.faq-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.faq-tab-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  color: var(--muted);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  backdrop-filter: var(--blur);
}

.faq-tab-btn:hover {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--text);
}

.faq-tab-btn.active {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--purple);
  color: var(--text);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

/* Accordion list container */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.faq-section {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.4s ease;
}

.faq-section.active {
  display: flex;
}

.faq-item {
  background: var(--card);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow);
}

.faq-item.active {
  border-color: var(--border-glow);
  background: rgba(15, 13, 22, 0.9);
  box-shadow: var(--glow);
}

.faq-question {
  padding: 22px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  gap: 16px;
  transition: color 0.3s;
}

.faq-item:hover .faq-question {
  color: var(--gold);
}

.faq-question-text {
  flex: 1;
}

.faq-icon-indicator {
  font-size: 0.8rem;
  color: var(--gold);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.faq-item.active .faq-icon-indicator {
  transform: rotate(180deg);
  color: var(--pink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 28px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
  opacity: 0;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
  opacity: 0.95;
  padding: 22px 28px;
  border-top-color: rgba(226, 184, 83, 0.08);
}

/* Bullet list inside answers */
.faq-answer ul {
  margin: 12px 0 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-answer li {
  list-style-type: disc;
  color: var(--muted);
}

.faq-answer li strong {
  color: var(--text);
}

.faq-answer p {
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* No search results display */
.faq-no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  animation: fadeIn 0.3s ease;
}

.faq-no-results-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .faq-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .faq-tab-btn {
    padding: 12px;
    font-size: 0.88rem;
  }
  .faq-question {
    padding: 18px 20px;
    font-size: 0.95rem;
  }
  .faq-item.active .faq-answer {
    padding: 18px 20px;
  }
  .faq-page-title {
    font-size: 1.6rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}
.faq-page-heading {
  text-align: center;
  margin-bottom: 10px;
}

.faq-page-title {
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.faq-page-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.faq-search-title,
.faq-empty-title {
  font-weight: 800;
  color: var(--text);
}

.faq-search-title {
  font-size: 1.2rem;
}

.faq-empty-title {
  margin-bottom: 8px;
}

.faq-empty-copy {
  color: var(--muted);
  font-size: 0.9rem;
}