@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  color: #1f2937;
  margin: 0;
  padding: 0;
}

/* Theme transition for smooth switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* FAQ Navigation Active States */
.faq-nav-item.active {
  background-color: rgba(147, 51, 234, 0.1);
}

.faq-nav-item.active span {
  color: rgb(147, 51, 234);
  font-weight: 600;
}

.faq-nav-item:hover {
  background-color: rgba(147, 51, 234, 0.2);
}

.faq-nav-item:hover span {
  color: rgb(196, 181, 253);
}

/* Enhanced light mode styles */
.light-mode-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.light-mode-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

/* Dark mode card enhancements */
.dark-mode-card {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border: 1px solid #4b5563;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

.dark-mode-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

/* Header styling */
header {
  background: rgba(255, 255, 255, 0.8) !important;
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(10px);
}

/* Dark mode toggle button styles */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: #e5e7eb;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
}

.theme-toggle.dark {
  background: #475569;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.theme-toggle.dark::before {
  transform: translateX(30px);
  background: #1e293b;
}

/* FAQ Section Styling */
.faq-nav {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.faq-nav-item {
  display: block;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #6b7280;
}

.faq-nav-item span {
  font-weight: 500;
}

/* FAQ Content Area */
.faq-content {
  padding-left: 2rem;
}

@media (max-width: 1024px) {
  .faq-content {
    padding-left: 0;
    margin-top: 2rem;
  }
}

/* FAQ Categories */
.faq-category {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.faq-category h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1f2937;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

/* FAQ Items */
.faq-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  margin: 0;
}

.faq-question:hover {
  background-color: #f9fafb;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: bold;
  color: #7c3aed;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: #6b7280;
  line-height: 1.6;
  display: none;
}

.faq-answer.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .faq-nav-item {
    text-align: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  .faq-question {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.85rem;
  }
  
  .theme-toggle {
    width: 50px;
    height: 25px;
  }
  
  .theme-toggle::before {
    width: 19px;
    height: 19px;
    top: 3px;
    left: 3px;
  }
  
  .theme-toggle.dark::before {
    transform: translateX(25px);
  }
}

/* Animation for smooth reveals */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar styling for FAQ navigation */
.faq-nav::-webkit-scrollbar {
  width: 6px;
}

.faq-nav::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.faq-nav::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.faq-nav::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Utility Classes */
.text-purple-600 {
  color: #7c3aed;
}

.bg-purple-50 {
  background-color: #faf5ff;
}

.border-purple-200 {
  border-color: #e9d5ff;
}

.hover\:bg-purple-100:hover {
  background-color: #f3e8ff;
}

.hover\:text-purple-700:hover {
  color: #6d28d9;
}

/* Focus States for Accessibility */
.faq-question:focus,
.theme-toggle:focus,
.faq-nav-item:focus {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced button styles */
.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #7c3aed;
  border: 2px solid #7c3aed;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #7c3aed;
  color: white;
  transform: translateY(-2px);
}
