/* FAQ Page Styles */

.faq-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Table of Contents */
.faq-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 48px;
}

.faq-toc h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.faq-toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.faq-toc a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.faq-toc a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* FAQ Category Section */
.faq-category {
  margin-bottom: 48px;
}

.faq-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.faq-category-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.faq-category-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* FAQ Item (Accordion) */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

.faq-question h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.faq-item.open .faq-toggle {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer-inner p {
  margin-bottom: 12px;
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.faq-answer-inner strong {
  color: var(--text);
}

.faq-answer-inner ol,
.faq-answer-inner ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.faq-answer-inner li {
  margin-bottom: 6px;
}

/* Pro Badge */
.pro-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 8px;
}

/* Steps in answers */
.faq-steps {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 12px 0;
}

.faq-steps ol {
  margin: 0;
  padding-left: 20px;
}

.faq-steps li {
  margin-bottom: 8px;
}

.faq-steps li:last-child {
  margin-bottom: 0;
}

/* CTA Section */
.faq-cta {
  text-align: center;
  margin-top: 64px;
  padding: 48px 32px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.03) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
}

.faq-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.faq-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.faq-cta .btn {
  display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-page {
    padding-top: 100px;
  }

  .faq-header h1 {
    font-size: 2rem;
  }

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

  .faq-question {
    padding: 16px 18px;
  }

  .faq-answer-inner {
    padding: 0 18px 16px;
  }

  .faq-category-header {
    gap: 12px;
  }

  .faq-category-icon {
    width: 36px;
    height: 36px;
  }

  .faq-category-header h2 {
    font-size: 1.25rem;
  }
}
