/* Custom styles for Wish Boutique */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar styles */
.navbar-scrolled {
  background: rgba(13, 13, 13, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 196, 119, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Gold gradient text utility */
.text-gold-gradient {
  background: linear-gradient(135deg, #F5D78E 0%, #E8C477 50%, #D4A853 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #E8C477, #B8923F);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #F5D78E, #D4A853);
}

/* Selection color */
::selection {
  background: rgba(232, 196, 119, 0.3);
  color: #fff;
}

/* Map filter for dark theme */
.map-dark {
  filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* Subtle shimmer animation for gold elements */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Pulse animation for the live indicator */
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* Image hover overlay */
.collection-card:hover .collection-overlay {
  opacity: 1;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #E8C477;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
  }
}
