/* ============================================
   FAQ Section - Modern Design
   ============================================ */

.faq-section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.02) 50%, transparent 100%);
}

.faq-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: linear-gradient(135deg, rgba(26, 26, 36, 0.8), rgba(18, 18, 26, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
}

.faq-item:hover::before {
  opacity: 1;
}

.faq-item.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.05));
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.15), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: none;
  border: none;
  color: var(--text1);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.faq-item.active .faq-question {
  color: var(--primary-light);
}

.faq-question-text {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  padding-right: 16px;
}

.faq-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-light);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.faq-item.active .faq-number {
  background: var(--gradient-1);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.faq-icon-wrapper {
  width: 32px;
  height: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item:hover .faq-icon-wrapper {
  border-color: rgba(99, 102, 241, 0.4);
}

.faq-item.active .faq-icon-wrapper {
  background: var(--gradient-1);
  border-color: transparent;
  transform: rotate(180deg);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.faq-icon {
  width: 16px;
  height: 16px;
  color: var(--text3);
  transition: color 0.3s ease;
}

.faq-item.active .faq-icon {
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 28px 28px 80px;
  opacity: 1;
}

.faq-answer-content {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid rgba(99, 102, 241, 0.3);
}

.faq-item.active .faq-answer-content {
  border-left-color: var(--primary);
}

.faq-answer p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
}

.faq-answer p strong {
  color: var(--primary-light);
  font-weight: 600;
}

/* Search/Filter badges */
.faq-categories {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.faq-category {
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-category:hover {
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text1);
}

.faq-category.active {
  background: var(--gradient-1);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 0;
  }
  
  .faq-question {
    padding: 20px;
    font-size: 15px;
  }
  
  .faq-question-text {
    gap: 12px;
  }
  
  .faq-number {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 20px 20px 64px;
  }
  
  .faq-answer-content {
    padding-left: 16px;
  }
  
  .faq-answer p {
    font-size: 14px;
  }
  
  .faq-categories {
    gap: 8px;
    margin-bottom: 32px;
  }
  
  .faq-category {
    padding: 8px 16px;
    font-size: 13px;
  }
}
