﻿/* ============================================================
   NABUGABO HOLIDAY CENTER — MENU STYLES
   Restaurant menu, cart, food ordering
   ============================================================ */

/* ── MENU PAGE ── */
.menu-page { padding-top: 72px; }

.menu-hero {
  background: var(--gradient-forest);
  padding: var(--space-16) 0 var(--space-12);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.menu-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(160,130,80,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(196,154,53,0.2) 0%, transparent 60%);
}

.menu-hero__eyebrow { position: relative; z-index: 1; }
.menu-hero__title { position: relative; z-index: 1; font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: var(--weight-semibold); letter-spacing: -0.02em; margin-bottom: var(--space-4); }
.menu-hero__subtitle { position: relative; z-index: 1; color: rgba(255,255,255,0.75); font-size: var(--text-md); max-width: 480px; margin-inline: auto; }

/* ── CHECKED-IN BANNER ── */
.checkin-banner {
  background: var(--color-forest-dark);
  color: white;
  padding: var(--space-4) var(--padding-page);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  position: sticky;
  top: 72px;
  z-index: var(--z-raised);
}

.checkin-banner--locked {
  background: var(--color-charcoal);
  color: rgba(255,255,255,0.7);
}

.checkin-banner svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-sand-warm); }

.checkin-banner .btn { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }

/* ── MENU LAYOUT ── */
.menu-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-10);
  align-items: start;
}

/* ── CATEGORY NAV ── */
.menu-categories-nav {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-categories-nav::-webkit-scrollbar { display: none; }

.menu-cat-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: max-content;
}

.menu-cat-btn {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  cursor: pointer;
  background: transparent;
  border: 1.5px solid transparent;
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.menu-cat-btn:hover { border-color: var(--color-light); }
.menu-cat-btn.active { background: var(--color-forest-mid); color: white; border-color: var(--color-forest-mid); }

/* ── MENU SECTION ── */
.menu-section { margin-bottom: var(--space-10); }

.menu-section__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.menu-section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.menu-section__divider {
  flex: 1;
  height: 1px;
  background: var(--color-light);
}

/* ── MENU ITEM CARD ── */
.menu-item {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: var(--border-thin);
  position: relative;
}

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

.menu-item__content {}

.menu-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.menu-item__name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.menu-item__special-badge {
  font-size: 10px;
  font-weight: var(--weight-bold);
  color: var(--color-terracotta);
  background: rgba(192,82,42,0.10);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-item__description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

.menu-item__tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.dietary-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: var(--weight-semibold);
}

.dietary-tag--veg  { background: rgba(160,130,80,0.12); color: var(--color-forest-mid); }
.dietary-tag--vegan{ background: rgba(160,130,80,0.20); color: var(--color-forest-dark); }
.dietary-tag--gf   { background: rgba(196,154,53,0.12); color: var(--color-sand-dark); }
.dietary-tag--spicy{ background: rgba(192,57,43,0.12); color: var(--color-error); }

.menu-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.menu-item__img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.menu-item__time {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: var(--space-2);
}
.menu-item__time svg { width: 11px; height: 11px; }

.menu-item__price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.menu-item__price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-forest-dark);
}

/* ── ADD / QTY CONTROLS ── */
.qty-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  border: 1.5px solid var(--color-lake-mid);
  color: var(--color-lake-mid);
  cursor: pointer;
  background: white;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.qty-btn:hover { background: var(--color-lake-mid); color: white; }

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}

.add-btn {
  padding: var(--space-2) var(--space-3);
  background: var(--color-forest-mid);
  color: white;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  border: none;
  transition: background var(--duration-fast), transform var(--duration-fast) var(--ease-spring);
}
.add-btn:hover { background: var(--color-forest-dark); transform: scale(1.04); }
.add-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── CART SIDEBAR ── */
.cart-sidebar {
  position: sticky;
  top: 140px;
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
}

.cart-sidebar__header {
  background: var(--gradient-forest);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.cart-sidebar__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.cart-sidebar__count { background: rgba(255,255,255,0.2); padding: 2px 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: var(--weight-bold); }

.cart-sidebar__body  { padding: var(--space-5); max-height: 380px; overflow-y: auto; }
.cart-sidebar__empty { padding: var(--space-8); text-align: center; color: var(--text-muted); font-size: var(--text-sm); }

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: var(--border-thin);
}
.cart-item:last-child { border-bottom: none; }

.cart-item__name  { font-size: var(--text-sm); font-weight: var(--weight-medium); flex: 1; line-height: 1.3; }
.cart-item__price { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-forest-mid); white-space: nowrap; }
.cart-item__remove { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; background: none; border: none; border-radius: var(--radius-sm); transition: color var(--duration-fast), background var(--duration-fast); }
.cart-item__remove:hover { color: var(--color-error); background: rgba(192,57,43,0.08); }
.cart-item__remove svg { width: 14px; height: 14px; }

.cart-sidebar__footer {
  padding: var(--space-5) var(--space-6);
  border-top: var(--border-thin);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  color: var(--text-secondary);
}

.cart-summary-row--total {
  font-weight: var(--weight-semibold);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-primary);
  padding-top: var(--space-3);
  margin-top: var(--space-1);
  border-top: 1.5px solid var(--color-light);
}

.cart-locked-msg {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: rgba(45,41,38,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin: var(--space-5);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.6;
}

.cart-locked-msg svg { width: 18px; height: 18px; color: var(--color-lake-mid); flex-shrink: 0; margin-top: 1px; }

/* ── ORDER TRACKING ── */
.order-tracker {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
}

.tracker-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: var(--space-8) 0;
}

.tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.tracker-step__dot {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  background: var(--color-pale);
  border: 3px solid var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all var(--duration-base);
}

.tracker-step__dot svg { width: 20px; height: 20px; color: var(--color-muted); }

.tracker-step.done .tracker-step__dot {
  background: var(--color-forest-light);
  border-color: var(--color-forest-light);
}
.tracker-step.done .tracker-step__dot svg { color: white; }

.tracker-step.active .tracker-step__dot {
  background: var(--color-lake-mid);
  border-color: var(--color-lake-mid);
  animation: pulse-soft 2s ease-in-out infinite;
}
.tracker-step.active .tracker-step__dot svg { color: white; }

.tracker-step__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  margin-top: var(--space-3);
  text-align: center;
}

.tracker-step.active .tracker-step__label,
.tracker-step.done .tracker-step__label {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

.tracker-connector {
  flex: 1;
  height: 3px;
  background: var(--color-pale);
  align-self: center;
  position: relative;
  top: -12px;
  transition: background var(--duration-base);
}

.tracker-connector.done { background: var(--color-forest-light); }

@media (max-width: 768px) {
  .menu-layout { grid-template-columns: 1fr; }
  .cart-sidebar { position: static; order: -1; }
  .menu-item { grid-template-columns: 1fr 80px; }
  .menu-item__img { width: 72px; height: 72px; }
}
