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

#gk-test-series-app {
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#gk-test-series-app h1, 
#gk-test-series-app h2, 
#gk-test-series-app h3, 
#gk-test-series-app h4 {
  font-family: 'Outfit', sans-serif;
}

/* Custom modern scrollbars */
#gk-test-series-app ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

#gk-test-series-app ::-webkit-scrollbar-track {
  background: transparent;
}

#gk-test-series-app ::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.3);
  border-radius: 9999px;
}

#gk-test-series-app ::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.5);
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Option Select Pulsing border */
@keyframes option-pulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.6);
  }
}

.selected-option-pulse {
  animation: option-pulse 2s infinite ease-in-out;
}

/* Modal Fade-In */
@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-modal {
  animation: modal-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Slide In Toast */
@keyframes toast-slide-in {
  from {
    transform: translateY(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.animate-toast {
  animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Skeleton Loading Shimmer */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-bg {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.dark .shimmer-bg {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

/* Circular Progress bar SVG draw */
@keyframes stroke-draw {
  from {
    stroke-dashoffset: 283;
  }
  to {
    stroke-dashoffset: var(--dashoffset, 0);
  }
}

.animate-stroke {
  stroke-dasharray: 283;
  animation: stroke-draw 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Success Checkmark Draw */
@keyframes checkmark-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.animate-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkmark-draw 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

/* Smooth Accordion Height Transition Helper */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion-content.open {
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Floating Card Hover Effect */
.hover-card-premium {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.1);
}

.dark .hover-card-premium:hover {
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

/* Animated Grid Items */
@keyframes item-fade-in {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-item {
  animation: item-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Streak Fire Glow */
@keyframes fire-glow {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(249, 115, 22, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.8));
  }
}

.streak-glow {
  animation: fire-glow 2s infinite ease-in-out;
}
