/* Custom styles for WIchoacana Mexican Dessert Bar */

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

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

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #115e59;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0d9488;
}

/* Selection color */
::selection {
  background: rgba(20, 184, 166, 0.3);
  color: #f8fafc;
}

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

/* Image loading optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent layout shift */
img, video, svg {
  max-width: 100%;
}

/* Animation for floating badge */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile menu transitions */
#mobile-menu {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Hover effects for cards */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Text rendering optimization */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
