/**
 * Ophraxx Moderation - FAQ Page Styles
 * Matching homepage aesthetic
 */

/* ===== FAQ HERO SECTION ===== */
.faq-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: var(--space-3xl) 0;
  position: relative;
  z-index: 1;
  margin-top: 80px;
}

.faq-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease;
}

.faq-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.faq-hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

/* ===== SEARCH BOX ===== */
.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-box i {
  position: absolute;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 1.125rem;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: var(--space-md) var(--space-lg) var(--space-md) calc(var(--space-lg) * 2.5);
  background: rgba(30, 30, 46, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: all var(--transition-base);
}

.search-box input::placeholder {
  color: var(--text-tertiary);
}

.search-box input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(30, 30, 46, 0.7);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* ===== CATEGORY SECTION ===== */
.category-section {
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.02);
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.25rem;
  background: rgba(30, 30, 46, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.category-btn:hover {
  background: rgba(30, 30, 46, 0.7);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.category-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.category-btn i {
  font-size: 0.875rem;
}

/* ===== FAQ CONTENT SECTION ===== */
.faq-content-section {
  padding: var(--space-3xl) 0;
  position: relative;
  z-index: 1;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

/* ===== FAQ ITEMS ===== */
.faq-item {
  background: rgba(30, 30, 46, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.faq-item.hidden {
  display: none;
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-base);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-question-content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
}

.faq-icon {
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.faq-item.active .faq-icon {
  background: var(--gradient-primary);
  color: white;
}

.faq-question h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.faq-toggle {
  width: 32px;
  height: 32px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.faq-item.active .faq-toggle {
  background: var(--gradient-primary);
  color: white;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease;
}

.faq-answer-content {
  padding: 0 var(--space-lg) var(--space-lg) calc(var(--space-lg) + 40px + var(--space-md));
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer-content p {
  margin: 0 0 var(--space-sm) 0;
}

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

.faq-answer-content ul {
  margin: var(--space-sm) 0;
  padding-left: var(--space-lg);
}

.faq-answer-content li {
  margin-bottom: var(--space-xs);
}

.faq-answer-content code {
  padding: 2px 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  color: var(--primary-light);
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
}

.faq-answer-content a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-base);
}

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

/* Category Badge */
.faq-category-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-sm);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 500px;
  margin: 0 auto;
}

.no-results-icon {
  width: 80px;
  height: 80px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 2rem;
  color: var(--primary-light);
}

.no-results h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.no-results p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

/* ===== HELP SECTION ===== */
.help-section {
  padding: var(--space-3xl) 0;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  z-index: 1;
}

.help-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.help-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
  animation: float 6s ease-in-out infinite;
}

.help-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.help-card p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.help-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== HIGHLIGHT SEARCH TERMS ===== */
.highlight {
  background: rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item {
  animation: slideDown 0.3s ease;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .faq-hero {
    min-height: 60vh;
    padding: var(--space-2xl) 0;
  }

  .faq-hero-title {
    font-size: 2rem;
  }

  .faq-hero-description {
    font-size: 1rem;
  }

  .category-nav {
    gap: var(--space-xs);
  }

  .category-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .category-btn span {
    display: none;
  }

  .faq-question {
    padding: var(--space-md);
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  .faq-answer-content {
    padding: 0 var(--space-md) var(--space-md) calc(var(--space-md) + 40px + var(--space-sm));
  }

  .help-card {
    padding: var(--space-xl);
  }

  .help-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .help-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .search-box input {
    padding: var(--space-sm) var(--space-md) var(--space-sm) calc(var(--space-md) * 2.5);
    font-size: 0.9375rem;
  }

  .faq-icon {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  .faq-toggle {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .faq-answer-content {
    padding: 0 var(--space-sm) var(--space-md) var(--space-sm);
  }
}