/* Food Menu Page Specific Styles */
:root {
  --neon-color: #ffd700;
  --neon-glow: 0 0 10px rgba(255, 215, 0, 0.5);
  --text-color: #ffffff;
  --background-color: #0a0a0f;
  --card-bg: rgba(20, 20, 30, 0.8);
  --card-hover: rgba(40, 40, 55, 0.9);
  --accent-color: #ffd700;
  --success-color: #4caf50;
  --error-color: #f44336;
  --warning-color: #ff9800;
  --info-color: #2196f3;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --basket-width: 400px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

.neon-grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.2;
  background: 
    linear-gradient(90deg, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* Food Menu Container */
.food-menu-container {
  max-width: 1200px;
  margin: 80px auto 40px;
  padding: 0 20px;
  position: relative;
  transition: var(--transition);
}

/* Menu Actions */
.menu-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

/* Categories and Filters */
.menu-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0 10px;
}

.category-btn {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 6px 15px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-width: 80px;
  text-align: center;
}

.category-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-1px);
}

.category-btn.active {
  background: var(--accent-color);
  color: #000;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  font-weight: 600;
  padding: 6px 18px;
}

/* Dietary Filters */
.dietary-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 14px;
  border-radius: 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.filter-btn:hover::before {
  transform: translateX(100%);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filter-btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

.filter-btn.active {
  background: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
  font-weight: 600;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Veg/Vegan/GF Tags */
.dietary-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-veggie {
  background-color: #4caf50;
  color: #fff;
}

.tag-vegan {
  background-color: #2196f3;
  color: #fff;
}

.tag-gf {
  background-color: #ff9800;
  color: #000;
}

.menu-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.menu-header h1 {
  font-family: 'Amatic SC', cursive;
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.menu-header p {
  font-size: 1.2rem;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
}

/* Menu Categories */
.menu-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 auto 25px;
  padding: 0 20px;
  max-width: 600px;
}

.category-btn {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 6px 15px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-width: 80px;
  text-align: center;
}

.category-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-1px);
}

.category-btn.active {
  background: var(--accent-color);
  color: #000;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  font-weight: 600;
  padding: 6px 18px;
}

/* Menu Sections */
.menu-sections {
  position: relative;
  min-height: 500px;
}

.menu-section {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.menu-section.active {
  display: block;
}

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

/* Ensure proper spacing between sections */
.menu-section + .menu-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-section h2 {
  font-family: 'Amatic SC', cursive;
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.menu-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--neon-glow);
}

/* Add a subtle animation when category changes */
@keyframes slideIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.menu-header h1, 
.menu-header p,
.menu-section h2 {
  animation: slideIn 0.4s ease-out forwards;
}

/* Category-specific colors for better visual feedback */
.menu-section#snacks h2 { color: #ff9f43; }
.menu-section#meals h2 { color: #ff6b6b; }
.menu-section#drinks h2 { color: #54a0ff; }
.menu-section#sweets h2 { color: #a55eea; }
.menu-section#combos h2 { color: #26de81; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: transform, opacity;
}

/* Menu Item Transitions */
.menu-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
  will-change: transform, box-shadow, opacity, border-color;
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Staggered animation for menu items */
.menu-item {
  animation-delay: calc(var(--index, 0) * 0.05s);
}

/* Loading Skeleton */
@keyframes shimmer {
  0% { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}

.loading-skeleton {
  background: linear-gradient(to right, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

/* Focus styles for accessibility */
.category-btn:focus-visible,
.filter-btn:focus-visible,
.menu-item:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.3);
}

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

.menu-item {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  will-change: transform, opacity, box-shadow, border-color;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-item:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-color);
  z-index: 1;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.menu-item {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-color);
  background: var(--card-hover);
}

.menu-item:hover::before {
  opacity: 1;
}

.item-info h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--accent-color);
  font-weight: 600;
}

.item-info p {
  color: #ccc;
  margin-bottom: 15px;
  font-size: 0.95rem;
  min-height: 40px;
}

.price {
  display: inline-block;
  background: rgba(255, 215, 0, 0.1);
  color: var(--accent-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.item-size {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.item-size span {
  font-size: 0.85rem;
  color: #aaa;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
  background: rgba(10, 10, 15, 0.9);
  padding: 40px 0 20px;
  margin-top: 80px;
  position: relative;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.footer-section h3 {
  color: var(--accent-color);
  font-family: 'Amatic SC', cursive;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-section p {
  margin: 8px 0;
  color: #aaa;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  color: #ccc;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #666;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-header h1 {
    font-size: 3rem;
  }
  
  .menu-items {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .menu-header h1 {
    font-size: 2.5rem;
  }
  
  .category-btn {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
  
  .menu-item {
    padding: 15px;
  }
}

/* Adjust wrapper for food menu page */
body.food-menu-page .wrapper {
  background: var(--navbar-bg-gradient);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 0;
  height: var(--navbar-height);
  box-shadow: 0 0 10px 0 rgba(255, 79, 216, 0.5);
  overflow: visible;
}

body.food-menu-page .wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 3px solid var(--neon-blue);
  border-bottom: 3px solid var(--neon-pink);
  box-shadow: 0 0 10px var(--neon-blue), 0 0 14px var(--neon-pink) inset;
  display: block;
}

body.food-menu-page .wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 2px,
      transparent 4px
  );
  mix-blend-mode: screen;
  opacity: 0.25;
  display: block;
}

/* Menu Item Styles */
.food-menu-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.menu-title {
  font-family: 'Arvo', serif;
  text-align: center;
  color: #ffd700;
  font-size: 3rem;
  margin: 2rem 0 1.5rem;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
  position: relative;
  display: inline-block;
  width: 100%;
  letter-spacing: 2px;
}

.menu-subtitle {
  text-align: center;
  font-size: 1.4rem;
  margin: 0 auto 3rem;
  color: #ffd700;
  max-width: 800px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  position: relative;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.menu-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 3rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.menu-category {
  background: rgba(20, 20, 30, 0.6) !important;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.menu-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
  border-color: rgba(255, 215, 0, 0.4);
}

.menu-category h2 {
  font-family: 'Arvo', serif;
  color: #ffd700;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 0.8rem;
  margin-bottom: 1.8rem;
  font-size: 1.8rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  position: relative;
  display: inline-block;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  min-height: 100%;
  margin: 0;
  line-height: 1.6;
  padding-top: 0;
  font-family: "Lexend", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.menu-item {
  margin-bottom: 1.8rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menu-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.menu-item-content {
  flex: 1;
}

.menu-item h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.menu-item p {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.price {
  color: #ffd700;
  font-weight: bold;
  font-size: 1.2rem;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  display: block;
  margin-top: 0.5rem;
}

.allergy-notice {
  max-width: 800px;
  margin: 4rem auto 2rem;
  padding: 1.5rem;
  background: rgba(20, 20, 30, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
}

.allergy-notice p {
  margin: 0;
  color: #ffd700;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Adjust main content position to account for fixed navbar */
main.food-menu-container {
  margin-top: calc(var(--navbar-height) + 2rem);
  margin-bottom: 2rem;
  min-height: calc(100vh - var(--navbar-height) - 4rem);
  position: relative;
  z-index: 1;
  padding-top: 1rem;
}

/* Add to Basket Button */
.add-to-basket {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.add-to-basket:hover {
  background: var(--neon-color);
  color: #000;
  transform: scale(1.1);
}

.add-to-basket i {
  font-size: 0.9rem;
}

/* Item Added Animation */
@keyframes itemAdded {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.item-added {
  animation: itemAdded 0.5s ease;
  border-color: var(--neon-color) !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Basket Sidebar Z-index Fix */
.basket-sidebar {
  z-index: 1001; /* Above navbar */
}

.basket-overlay {
  z-index: 1000; /* Below sidebar but above navbar */
}

/* Responsive Design */
@media (max-width: 992px) {
  .basket-sidebar {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .food-menu-container {
    padding: 1rem;
    margin: 1rem;
  }
  
  .menu-categories {
    grid-template-columns: 1fr;
  }
  
  .basket-icon {
    margin-left: 1rem;
    font-size: 1.3rem;
  }
  
  .menu-title {
    font-size: 2rem;
  }
  
  .menu-category {
    padding: 1rem;
  }
}

/* Animation for menu items */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-category {
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.menu-category:nth-child(1) { animation-delay: 0.1s; }
.menu-category:nth-child(2) { animation-delay: 0.2s; }
.menu-category:nth-child(3) { animation-delay: 0.3s; }
.menu-category:nth-child(4) { animation-delay: 0.4s; }
