/* FAQ Spiral Component Styles */

.faq-spiral-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #000000;
  color: #ffffff;
  font-family: "Inter", sans-serif;
}

/* Background Spiral */
.faq-spiral-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

.faq-spiral-canvas {
  width: 100%;
  height: 100%;
  max-width: 800px;
  max-height: 800px;
}

.faq-spiral-canvas svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  filter: blur(0.5px);
}

/* Main Content */
.faq-spiral-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 20px;
  flex: 1;
}

/* Header */
.faq-header {
  margin-bottom: 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.faq-title {
  font-family: "Outfit", sans-serif;
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.2;
  color: #ffffff;
}

.faq-subtitle {
  font-size: 16px;
  color: #9da3b4;
  margin: 0;
  line-height: 1.6;
}

.faq-search-wrapper {
  flex: 1;
  min-width: 300px;
}

.faq-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
}

.faq-search::placeholder {
  color: #9da3b4;
}

.faq-search:focus {
  outline: none;
  border-color: #8b5cf6;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* FAQ Section */
.faq-section {
  margin-bottom: 80px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* FAQ Item */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-item-header {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: all 0.2s ease;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
}

.faq-item-header:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.faq-item-header:focus {
  outline: none;
  background-color: rgba(139, 92, 246, 0.1);
}

.faq-item-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.faq-item-number {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #8b5cf6;
  font-size: 14px;
  min-width: 24px;
  margin-top: 2px;
}

.faq-item-question {
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  color: #ffffff;
}

.faq-item-toggle {
  font-size: 24px;
  color: #8b5cf6;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item-header[aria-expanded="true"] .faq-item-toggle {
  transform: rotate(45deg);
}

.faq-item-answer {
  max-height: 500px;
  overflow: hidden;
  transition: all 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item-answer p {
  margin: 0;
  padding: 0 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #9da3b4;
  animation: fadeIn 0.3s ease forwards;
}

.faq-item-answer[style*="display: none"] {
  max-height: 0;
  border-top: none;
}

.faq-item-answer[style*="display: block"] {
  padding: 20px 0;
}

.faq-item-answer[style*="display: block"] p {
  padding: 20px 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Footer */
.faq-footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #9da3b4;
  margin-top: auto;
}

/* Control Panel */
.faq-control-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 320px;
  max-height: 80vh;
  background-color: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  overflow-y: auto;
  z-index: 10000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.faq-panel-title {
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #ffffff;
}

.faq-panel-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-control-group label {
  font-size: 12px;
  font-weight: 600;
  color: #9da3b4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-control-group input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #8b5cf6, #3b82f6);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.faq-control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.faq-control-group input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ffffff;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.faq-control-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #8b5cf6;
}

.faq-control-group select {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  cursor: pointer;
}

.faq-control-group select:focus {
  outline: none;
  border-color: #8b5cf6;
}

.faq-control-group select option {
  background-color: #030305;
  color: #ffffff;
}

.faq-control-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.faq-btn-secondary {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.faq-btn-secondary:active {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .faq-spiral-content {
    padding: 40px 16px;
  }

  .faq-header {
    flex-direction: column;
    gap: 20px;
  }

  .faq-title {
    font-size: 32px;
  }

  .faq-search-wrapper {
    min-width: unset;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-item-header {
    padding: 16px;
  }

  .faq-item-left {
    gap: 12px;
  }

  .faq-item-question {
    font-size: 14px;
  }

  .faq-item-answer p {
    font-size: 13px;
  }

  .faq-control-panel {
    width: calc(100vw - 40px);
    right: 20px;
    bottom: 20px;
    max-height: 60vh;
  }
}
