/* Custom Styles for QR Web Menu */

/* Hide scrollbar for horizontal nav */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

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

/* Scroll margin for sections to account for sticky header */
#food-section,
#drinks-section {
  scroll-margin-top: 80px; /* Adjust based on header height */
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid #e94560;
  outline-offset: 2px;
}

/* Modal animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-enter {
  animation: fadeIn 0.2s ease-out;
}

.modal-content-enter {
  animation: slideUp 0.3s ease-out;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Hide header when modal is open */
body.modal-open #main-header {
  display: none;
}

/* Touch-friendly tap targets */
button, a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Nav button active state */
.nav-btn.active {
  color: #e94560;
}

/* Language button active state */
.lang-btn.active {
  background-color: #e94560;
  color: white;
}

/* Menu images */
.menu-section img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Ensure modals don't cause horizontal scroll */
#promo-modal,
#birthday-modal {
  overscroll-behavior: contain;
}

/* Visual viewport adjustment for iOS */
@supports (padding: max(0px)) {
  header {
    padding-top: max(12px, env(safe-area-inset-top));
  }
  
  .back-btn {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  
  main {
    padding-bottom: max(80px, env(safe-area-inset-bottom));
  }
}

/* Reduced motion */
@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;
  }
}

/* High contrast mode */
@media (prefers-contrast: more) {
  :root {
    --border-color: white;
  }
}

/* Print styles */
@media print {
  header,
  #promo-modal,
  #birthday-modal {
    display: none !important;
  }
  
  main {
    padding-top: 0;
  }
  
  .menu-section {
    page-break-inside: avoid;
  }
}

/* Hero Landing Section */
#hero-landing {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
}

#hero-landing > div:first-child {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hero Navigation Buttons */
.hero-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.hero-nav-btn:focus-visible {
  outline: 2px solid #e94560;
  outline-offset: 2px;
}

/* Hero Language Buttons */
.hero-lang-btn {
  backdrop-filter: blur(8px);
}

/* Mobile responsive adjustments for hero */
@media (max-width: 480px) {
  .hero-nav-btn {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }
  
  .hero-lang-btn {
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
  }
}

@media (max-width: 360px) {
  .hero-nav-btn {
    font-size: 0.9375rem;
    padding: 0.875rem 1rem;
  }
  
  .hero-lang-btn {
    font-size: 0.8125rem;
    padding: 0.625rem 1rem;
  }
}

/* Scroll indicator animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Reduced motion for hero */
@media (prefers-reduced-motion: reduce) {
  .animate-bounce {
    animation: none;
  }
}