/* ========================================
   NAVBAR STYLES
   Restaurant Website Generator
   ======================================== */

/* Navbar Container */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #335b3e;
  transition: all 0.3s ease;
  height: 80px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background: #41694b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.navbar-container {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
}

/* Logo */
.logo {
  flex-shrink: 0;
  z-index: 10000;
  height: 60px;
  display: flex;
  align-items: center;
  justify-self: start;
}

.logo img {
  height: 60px;
  width: auto;
  margin: 0;
  border-radius: 0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10000;
}

.mobile-menu-btn .hamburger-line {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.scrolled .mobile-menu-btn .hamburger-line {
  background: #fff;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.nav-link {
  color: #f7f7f4;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s;
  padding: 0.5rem;
}

.nav-link:hover {
  color: #fcf8f8;
}

.scrolled .nav-link {
  color: #f9faf9;
}

/* Order Button in Navbar */
.order-button {
  background: #fbe122;
  color: #1a1a1a;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 0.95rem;
  border: 3px solid #fbe122;
  box-shadow: 0 0 0 3px #fbe122, 0 0 0 6px transparent;
  animation: pulseYellow 2s infinite;
  z-index: 5;
  justify-self: end;
}

@keyframes pulseYellow {
  0% {
    box-shadow: 0 0 0 3px #fbe122, 0 0 0 6px rgba(251, 225, 34, 0);
  }
  50% {
    box-shadow: 0 0 0 3px #fbe122, 0 0 0 12px rgba(251, 225, 34, 0.3);
  }
  100% {
    box-shadow: 0 0 0 3px #fbe122, 0 0 0 6px rgba(251, 225, 34, 0);
  }
}

.order-button:hover {
  background: #e7cda0;
  border-color: #e7cda0;
  transform: translateY(-2px);
  animation: none;
  box-shadow: 0 0 0 3px #e7cda0, 0 0 0 8px rgba(231, 205, 160, 0.4);
}

.order-button.desktop-order {
  display: inline-block;
}

.order-button.mobile-order {
  display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
  
  .navbar-container {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    grid-template-columns: none;
  }
  
  .logo {
    height: 50px;
  }
  
  .logo img {
    height: 50px;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 240, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    gap: 2rem;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-links.active .nav-link {
    color: #333;
    font-size: 1.2rem;
  }
  
  .nav-links.active .nav-link:hover {
    color: #d4ddbd;
  }
  
  .order-button.desktop-order {
    display: none;
  }
  
  .order-button.mobile-order {
    display: inline-block;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    animation: none;
  }
}

/* Body Menu State */
body.menu-open {
  overflow: hidden;
}

@media (min-width: 769px) {
  body.menu-open {
    overflow: auto;
  }
}