/* Interactive homepage FAQ - accordion, search, filters */

.bi-faq-interactive .bi-faq-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bi-faq-search-wrap {
  position: relative;
  width: min(480px, 100%);
}

.bi-faq-search {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bi-faq-search:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.bi-faq-search::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.bi-faq-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(167, 139, 250, 0.85);
  font-size: 1rem;
  pointer-events: none;
}

.bi-faq-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.bi-faq-cat {
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.bi-faq-cat:hover {
  background: rgba(124, 58, 237, 0.18);
  transform: translateY(-1px);
}

.bi-faq-cat.is-active {
  background: rgba(124, 58, 237, 0.3);
  border-color: rgba(167, 139, 250, 0.7);
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.25);
  color: #fff;
}

.bi-faq-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5rem;
}

.bi-faq-meta strong {
  color: rgba(255, 255, 255, 0.85);
}

.bi-faq-random,
.bi-faq-expand-all {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.bi-faq-random:hover,
.bi-faq-expand-all:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.45);
}

.bi-faq-interactive .blockint-faq__dl,
.bi-faq-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.85rem !important;
  margin: 0;
  padding: 0;
}

.bi-faq-item {
  margin: 0;
  list-style: none;
}

.bi-faq-item.is-hidden {
  display: none !important;
}

.bi-faq-item.is-highlight {
  animation: bi-faq-highlight 1.2s ease;
}

@keyframes bi-faq-highlight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
  40% { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.55); }
}

.bi-faq-item summary.blockint-faq__question {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  list-style: none;
  margin: 0 !important;
  user-select: none;
}

.bi-faq-item summary.blockint-faq__question::-webkit-details-marker {
  display: none;
}

.bi-faq-item summary.blockint-faq__question::marker {
  display: none;
  content: '';
}

.bi-faq-item-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #a78bfa;
  font-size: 0.95rem;
  transition: transform 0.25s ease, background 0.25s;
}

.bi-faq-item[open] .bi-faq-item-icon {
  transform: rotate(8deg) scale(1.08);
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.35);
  color: #67e8f9;
}

.bi-faq-q-text {
  flex: 1;
  min-width: 0;
}

.bi-faq-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: transform 0.3s ease, background 0.2s;
}

.bi-faq-chevron::before {
  content: '+';
  font-weight: 700;
  line-height: 1;
}

.bi-faq-item[open] .bi-faq-chevron {
  transform: rotate(45deg);
  background: rgba(124, 58, 237, 0.25);
  color: #fff;
}

.bi-faq-item .blockint-faq__answer {
  margin-top: 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: bi-faq-answer-in 0.35s ease;
}

.bi-faq-item .blockint-faq__answer a {
  color: #a78bfa;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bi-faq-item .blockint-faq__answer a:hover {
  color: #67e8f9;
}

.bi-faq-copy {
  margin-top: 0.65rem;
  border: none;
  background: transparent;
  color: rgba(167, 139, 250, 0.75);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.bi-faq-copy:hover {
  color: #a78bfa;
}

.bi-faq-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

@keyframes bi-faq-answer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
  .bi-faq-interactive .blockint-faq__dl,
  .bi-faq-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bi-faq-item .blockint-faq__answer,
  .bi-faq-item.is-highlight {
    animation: none !important;
  }
}
