/* Custom Styles for Trạm Nướng Bất Ổn */

body {
  background:
    radial-gradient(circle at top left, rgba(255, 106, 0, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(255, 194, 71, 0.12), transparent 30rem),
    #111111;
}

/* Hero Section Pseudo-elements */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.96) 0%, rgba(17, 17, 17, 0.75) 44%, rgba(17, 17, 17, 0.35) 100%),
    url("../restaurant-space/background-baner.jpg");
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -120px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.38), transparent 62%);
  z-index: -1;
  animation: pulseFire 4s ease-in-out infinite;
}

@keyframes pulseFire {
  0%, 100% {
    transform: scale(1);
    opacity: .8;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* Mobile Navigation Drawer Override */
@media (max-width: 980px) {
  .nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #1a1a1a;
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
    gap: 16px;
    z-index: 40;
  }
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: 0.25s ease;
}

.lightbox-dot.active {
  background: #ff6a00 !important; /* primary color */
  transform: scale(1.3);
}

/* Menu Popup Styles */
.menu-popup {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.menu-popup.active {
  opacity: 1;
  pointer-events: all;
}

.menu-popup-content {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 28px;
  width: min(100%, 780px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: zoomInPopup 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomInPopup {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.menu-popup-header {
  padding: 20px 24px;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-popup-header h3 {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.menu-popup-close-x {
  background: none;
  border: none;
  color: #b5b5b5;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.25s ease;
}

.menu-popup-close-x:hover {
  color: #ff6a00;
}

.menu-popup-grid {
  padding: 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  flex-grow: 1;
  min-height: 0;
}

#menu-popup .menu-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#menu-popup .menu-card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

#menu-popup .menu-card > div {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#menu-popup .menu-card > div > div:last-child {
  margin-top: auto;
}

@media (max-width: 640px) {
  .menu-popup-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
}

.menu-popup-footer {
  padding: 18px 24px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: flex-end;
}

.menu-popup-btn-close {
  min-height: 40px !important;
  font-size: 14px;
  padding: 0 20px;
}
