/*
 * JoDeals - Custom Stylesheet
 */

/* Custom Variables */
:root {
  --primary-red: #ff4d4d;
  --primary-red-rgb: 255, 77, 77;
}

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

/* Card hover animation (scale + shadow) */
.deal-card {
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.deal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 2px rgba(var(--primary-red-rgb), 0.1);
}

/* Pulse highlight animation for Featured badge */
@keyframes featured-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(255, 77, 77, 0);
  }
}

.pulse-badge {
  animation: featured-pulse 2s infinite ease-in-out;
}

/* Countdown element spacing */
.countdown-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(229, 231, 235, 0.5);
}

/* Scrollbar styling for favorites list */
#favorites-list-container::-webkit-scrollbar {
  width: 6px;
}

#favorites-list-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#favorites-list-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

#favorites-list-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mobile responsive fixes */
@media (max-width: 640px) {
  .hero-heading {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

/* Drawer overlays */
#favorites-drawer-overlay.active {
  display: block;
}

/* Utilities */
.text-xxs {
  font-size: 0.65rem;
}

/* Modern UI refinements & transitions */
.transition-all-custom {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle micro-animations for pages and components */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Compact global scrollbars for lists and dashboards */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

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

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

.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

