/* DEALS HUB - Premium Custom Glassmorphism Stylesheet */

/* Typography Overrides */
body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

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

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 9999px;
  border: 2px solid rgba(15, 23, 42, 0.8);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.6);
}

/* Glassmorphism Presets */
.glass-panel {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover:hover {
  background: rgba(23, 37, 84, 0.65);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
}

.glass-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.2s ease-in-out;
}

.glass-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
  background: rgba(15, 23, 42, 0.8);
}

/* Glowing Highlights & Buttons */
.btn-glow-blue {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow-blue::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: 0.5s;
}

.btn-glow-blue:hover::before {
  left: 100%;
}

.btn-glow-blue:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.btn-glow-purple:hover {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Subtle Shimmer Effect for Hero */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-bg {
  background: linear-gradient(
    90deg,
    rgba(30, 41, 59, 0.5) 25%,
    rgba(51, 65, 85, 0.6) 37%,
    rgba(30, 41, 59, 0.5) 63%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Sequential Grid Entrances */
.product-grid-item {
  opacity: 0;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Dynamic Radial Background Glows */
.radial-glow-blue {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

.radial-glow-purple {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

.radial-glow-emerald {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Custom Utilities for Slide Drawer */
.cart-drawer-open {
  transform: translateX(0);
}

.cart-drawer-closed {
  transform: translateX(100%);
}

/* Toast Notifications styling override */
.toast-notification {
  animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Checkout Progress Animation */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 0 25px rgba(59, 130, 246, 0.7); }
}

.pulse-glow-blue {
  animation: pulseGlow 2s infinite;
}
