/* FAQ Page Styles (ported from React faq.css) */

.faq-page {
  background: transparent;
  min-height: 100vh;
  padding: 40px 0 60px;
}

.faq-page .boxed-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.2rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.faq-search {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.search-input-wrapper {
  position: relative;
  max-width: 500px;
  width: 100%;
}

.search-input-wrapper svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1px solid #667eea;
  border-radius: 12px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.faq-view-all-btn {
  display: block;
  width: 100%;
  padding: 16px;
  margin-top: 20px;
  background: var(--ds-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.faq-view-all-btn:hover {
  background: var(--ds-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.faq-view-all-btn:active {
  transform: translateY(0);
}

.faq-item.hidden-for-ui {
  display: none;
}

.faq-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.faq-categories {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.faq-categories h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.category-btn svg {
  flex-shrink: 0;
}

.category-btn:hover {
  background: rgba(79, 70, 229, 0.12);
  color: #4F46E5;
}

.category-btn.active {
  background: #4F46E5;
  color: #ffffff;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.faq-question:hover {
  color: #1e56a3;
}

.faq-answer {
  padding: 0 32px 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  animation: fadeInFaq 0.3s ease;
}

.faq-answer p {
  color: #4b5563;
  line-height: 1.7;
  margin-top: 20px;
  font-size: 15px;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.no-results h3 {
  font-size: 1.25rem;
  margin-top: 16px;
  margin-bottom: 4px;
}

.no-results p {
  margin: 0;
}

.faq-contact {
  text-align: center;
}

.faq-contact h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.faq-contact p {
  color: #6b7280;
  margin-bottom: 16px;
}

@keyframes fadeInFaq {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .faq-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-header h1 {
    font-size: 2.25rem;
  }

  .faq-page .boxed-container {
    padding: 0 1rem;
  }
}

/* Dark mode */
.dark .faq-categories,
.dark .faq-item {
  background: var(--dark-surface-a20);
  border-color: var(--dark-surface-a30);
  box-shadow: var(--dark-shadow-md);
}

.dark .faq-question {
  color: #e5e7eb;
}

.dark .faq-answer {
  border-top-color: var(--dark-surface-a40);
}

.dark .faq-answer p {
  color: #cbd5e1;
}

.dark .category-btn {
  color: #cbd5e1;
}

.dark .category-btn:hover {
  background: rgba(129, 140, 248, 0.2);
  color: #e5e7eb;
}

.dark .category-btn.active {
  background: var(--dark-tint-primary-a10);
  color: #0b1220;
}

.dark .page-header h1 {
  color: #f9fafb;
}

.dark .page-header p,
.dark .faq-contact p {
  color: #9ca3af;
}

.dark .faq-contact h3 {
  color: #e5e7eb;
}
