/* Custom styles that complement Tailwind */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #14171b;
}
::-webkit-scrollbar-thumb {
  background: #ff5a2b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff8054;
}

/* Selection color */
::selection {
  background: rgba(255, 90, 43, 0.3);
  color: #f6f6f7;
}

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

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

/* Nav link hover underline effect */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ff8054;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after {
  width: 60%;
}

/* Beer card shimmer effect on hover */
.card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.5s ease;
}
.card-hover:hover::before {
  left: 100%;
}

/* Photo gallery animation */
section[class*="bg-charcoal-900"] > div {
  animation: scrollGallery 30s linear infinite;
}
@keyframes scrollGallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile menu transition */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open {
  max-height: 500px;
}

/* Loading state for images */
img {
  background: linear-gradient(135deg, #e2e3e5 0%, #c4c6ca 100%);
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
img[src] {
  animation: none;
  background: none;
}
