/* Custom styles & animations for BrowsearchAI Landing Page */

@layer utilities {
  .animate-fadeIn {
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

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

/* Custom Scrollbar for results in Spotlight Demo */
#demoResultsList::-webkit-scrollbar {
  width: 6px;
}

#demoResultsList::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 4px;
}

#demoResultsList::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.8);
  border-radius: 4px;
}

#demoResultsList::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 1);
}

/* Selected item highlight in spotlight demo */
.demo-result-item {
  transition: all 0.12s ease-in-out;
  cursor: pointer;
}

.demo-result-item.selected {
  background-color: rgba(14, 165, 233, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
}

.demo-result-item:hover {
  background-color: rgba(30, 41, 59, 0.6);
}

.demo-result-item.selected:hover {
  background-color: rgba(14, 165, 233, 0.22);
}

/* Light Mode Styling for the Spotlight Demo preview frame when toggled */
#spotlightPreview.light-theme {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

#spotlightPreview.light-theme .bg-slate-900 {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

#spotlightPreview.light-theme input {
  color: #0f172a !important;
}

#spotlightPreview.light-theme input::placeholder {
  color: #94a3b8 !important;
}

#spotlightPreview.light-theme .text-white {
  color: #0f172a !important;
}

#spotlightPreview.light-theme .text-slate-400 {
  color: #64748b !important;
}

#spotlightPreview.light-theme .text-slate-500 {
  color: #94a3b8 !important;
}

#spotlightPreview.light-theme .demo-result-item {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

#spotlightPreview.light-theme .demo-result-item:hover {
  background-color: #f1f5f9 !important;
}

#spotlightPreview.light-theme .demo-result-item.selected {
  background-color: #e0f2fe !important;
  border-color: #38bdf8 !important;
}

#spotlightPreview.light-theme .border-slate-800 {
  border-color: #e2e8f0 !important;
}

/* Kbd styling */
kbd {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Subtle glow badge */
.glow-badge {
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

/* FAQ Active state transition */
.faq-item.active {
  border-color: rgba(56, 189, 248, 0.4);
  background-color: rgba(15, 23, 42, 0.7);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #38bdf8;
}

/* Smooth button transitions */
.billing-toggle {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
