/* FAQ Styles - Reusable Design for GREED PROTOCOL */

.faq-section {
  width: 100%;
  margin: 80px 0 60px 0;
  padding: 0;
  font-family: 'Courier New', monospace;
}

.faq-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--terminal-border, #00ff88);
  position: relative;
}

.faq-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--terminal-border, #00ff88);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.faq-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--terminal-text, #00ff88);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.faq-subtitle {
  font-size: 1rem;
  color: var(--terminal-text-dim, #00cc66);
  opacity: 0.8;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--terminal-card, #111111);
  border: 1px solid var(--terminal-border, #00ff88);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.1);
}

.faq-item:hover {
  border-color: var(--terminal-text-bright, #00ffaa);
  box-shadow: 0 4px 16px rgba(0, 255, 136, 0.2);
  transform: translateY(-2px);
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.05) 0%, rgba(0, 255, 136, 0.02) 100%);
  transition: all 0.3s ease;
  user-select: none;
}

.faq-question:hover {
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
}

.faq-question-text {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--terminal-text, #00ff88);
  line-height: 1.6;
  padding-right: 20px;
}

.faq-question-icon {
  font-size: 1.2rem;
  color: var(--terminal-border, #00ff88);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(0, 255, 136, 0.02);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 25px 20px;
}

.faq-answer-content {
  padding-top: 20px;
  font-size: 1rem;
  color: var(--terminal-text-dim, #00cc66);
  line-height: 1.8;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}

.faq-item.active .faq-answer-content {
  opacity: 1;
}

.faq-answer-content p {
  margin: 0 0 15px 0;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-answer-content a {
  color: var(--terminal-text-bright, #00ffaa);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 136, 0.3);
  transition: all 0.3s ease;
}

.faq-answer-content a:hover {
  color: var(--terminal-text, #00ff88);
  border-bottom-color: var(--terminal-border, #00ff88);
  text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .faq-section {
    margin: 60px 0 40px 0;
    padding: 0;
  }

  .faq-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .faq-question {
    padding: 18px 20px;
  }

  .faq-question-text {
    font-size: 1rem;
    padding-right: 15px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 18px;
  }

  .faq-answer-content {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .faq-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  .faq-subtitle {
    font-size: 0.9rem;
  }

  .faq-question {
    padding: 15px;
  }

  .faq-question-text {
    font-size: 0.95rem;
    padding-right: 10px;
  }

  .faq-item.active .faq-answer {
    padding: 0 15px 15px;
  }
}

/* Animation for FAQ items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item {
  animation: fadeInUp 0.5s ease forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }
.faq-item:nth-child(7) { animation-delay: 0.7s; }
.faq-item:nth-child(8) { animation-delay: 0.8s; }
