@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --background: 218 38% 97%; /* #F4F7FC */
  --foreground: 222 47% 11%; /* #0F172A */
  --card: 0 0% 100%;        /* #FFFFFF */
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 37 100% 61%;   /* #ffb53a */
  --primary-foreground: 222 47% 11%;
  --secondary: 40 100% 66%; /* #ffc254 */
  --secondary-foreground: 222 47% 11%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 40 100% 96%;
  --accent-foreground: 37 100% 61%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 214 32% 91%;    /* #E2E8F0 */
  --input: 214 32% 91%;
  --ring: 37 100% 61%;
  --radius: 1rem;
  --success: 152 76% 36%;
  --success-foreground: 0 0% 100%;
  --discount: 38 92% 50%;
  --discount-foreground: 0 0% 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #F4F7FC;
  color: #0F172A;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.font-display {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-weight: 800;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Floating reaction animation on click */
@keyframes sparkFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-24px) scale(1.3);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-44px) scale(1.5);
    opacity: 0;
  }
}

.spark-floating-icon {
  position: absolute;
  pointer-events: none;
  animation: sparkFloat 0.75s ease-out forwards;
  z-index: 50;
  font-size: 1.25rem;
}

/* Smooth modal transitions */
.hidden {
  display: none !important;
}

.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  transition: opacity 0.25s ease-out;
}

.modal-backdrop[style*="display: none"] {
  display: none !important;
  pointer-events: none !important;
}

.modal-content {
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

/* Slider transitions */
.banner-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Toaster Sonner Custom Styling */
.toast-notification {
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.toast-visible {
  transform: translateY(0);
  opacity: 1;
}

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

.animate-shimmer {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

/* Line clamp support */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
