/* ============================================================
   MENU PAGE — PREMIUM CATEGORY EXPERIENCE
   Elegant category-based visual enhancements (pure CSS)
   ============================================================ */

/* --- Enhanced category cards --- */
.menu-category {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.menu-category:hover {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.2);
}

/* --- Subtle gradient glow behind category header ---
   A decorative ::before element that creates a soft
   colored wash behind the header area
   --------------------------------------------------- */
.menu-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    180deg,
    rgba(198, 40, 40, 0.06) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Vegetarian categories get green glow */
.menu-category--vegetarian::before {
  background: linear-gradient(
    180deg,
    rgba(76, 175, 80, 0.06) 0%,
    transparent 100%
  );
}

/* --- Enhanced category header --- */
.menu-category__header {
  position: relative;
  z-index: 1;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-image: linear-gradient(
    to right,
    var(--color-accent) 0%,
    rgba(198, 40, 40, 0.2) 100%
  ) 1;
}

.menu-category--vegetarian .menu-category__header {
  border-image: linear-gradient(
    to right,
    var(--color-vegetarian) 0%,
    rgba(76, 175, 80, 0.2) 100%
  ) 1;
}

/* --- Larger, more decorative category icon --- */
.menu-category__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(198, 40, 40, 0.1);
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.menu-category__icon svg {
  width: 26px;
  height: 26px;
}

.menu-category:hover .menu-category__icon {
  transform: scale(1.05);
  background: rgba(198, 40, 40, 0.15);
}

.menu-category--vegetarian .menu-category__icon {
  background: rgba(76, 175, 80, 0.1);
  color: var(--color-vegetarian);
}

.menu-category--vegetarian:hover .menu-category__icon {
  background: rgba(76, 175, 80, 0.15);
}

/* --- Decorative corner accent ---
   A subtle geometric flourish in the top-right corner
   --------------------------------------------------- */
.menu-category::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    transparent 50%,
    rgba(198, 40, 40, 0.04) 50%,
    rgba(198, 40, 40, 0.08) 100%
  );
  border-radius: 0 var(--radius-lg) 0 0;
  pointer-events: none;
  z-index: 0;
}

.menu-category--vegetarian::after {
  background: linear-gradient(
    135deg,
    transparent 50%,
    rgba(76, 175, 80, 0.04) 50%,
    rgba(76, 175, 80, 0.08) 100%
  );
}


/* --- Enhanced menu items --- */
.menu-item {
  position: relative;
  z-index: 1;
  padding-left: 4px;
  padding-right: 4px;
  margin-left: -4px;
  margin-right: -4px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* --- Price styling enhancement --- */
.menu-item__price {
  position: relative;
}

/* --- Bestseller badge inline with item name --- */
.menu-item__bestseller {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 6px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  line-height: 1.4;
}


/* --- Variant display (Klein/Groß, Brot/Dürüm) --- */
.menu-item__variants {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.menu-item__variant {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.menu-item__variant-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.menu-item__variant-label {
  font-size: 0.75rem;
  color: rgba(245, 245, 245, 0.45);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-item__variant-price {
  font-family: var(--font-heading, 'Bebas Neue', sans-serif);
  font-size: 1.0625rem;
  color: var(--color-accent, #c62828);
  letter-spacing: 0.02em;
}

/* Variant badges */
.menu-item__variant-badges {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu-item__vbadge {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.menu-item__vbadge--veg {
  background: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
}

.menu-item__vbadge--vegan {
  background: rgba(46, 125, 50, 0.18);
  color: #66bb6a;
}

.menu-item__vbadge--best {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.menu-item__vbadge--new {
  background: rgba(33, 150, 243, 0.15);
  color: #42a5f5;
}

.menu-item__vbadge--spicy {
  background: rgba(198, 40, 40, 0.15);
  color: #ef5350;
}


/* --- Modal variant rows --- */
.modal__variants {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.modal__variant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.modal__variant-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.modal__variant-label {
  font-size: 0.9375rem;
  color: rgba(245, 245, 245, 0.7);
  font-weight: 500;
}

.modal__variant-price {
  font-family: var(--font-heading, 'Bebas Neue', sans-serif);
  font-size: 1.25rem;
  color: var(--color-accent, #c62828);
  letter-spacing: 0.02em;
}

/* --- Subtle separator between categories ---
   Using .menu-grid gap + refined visual spacing
   --------------------------------------------- */
.menu-grid {
  gap: clamp(1.25rem, 3vw, 1.75rem);
}


/* --- Category-specific accent colors via ID ---
   These override the default red accent for each category
   ------------------------------------------------------- */

/* Döner — warm amber red (default, no override needed) */

/* Dürüm — warm wood tone */
#category-durum::before {
  background: linear-gradient(180deg, rgba(139, 94, 60, 0.06) 0%, transparent 100%);
}
#category-durum .menu-category__icon {
  background: rgba(139, 94, 60, 0.12);
  color: #b07848;
}
#category-durum .menu-category__header {
  border-image: linear-gradient(to right, #8B5E3C 0%, rgba(139, 94, 60, 0.2) 100%) 1;
}
#category-durum::after {
  background: linear-gradient(135deg, transparent 50%, rgba(139, 94, 60, 0.04) 50%, rgba(139, 94, 60, 0.08) 100%);
}

/* Lahmacun — earthy orange */
#category-lahmacun::before {
  background: linear-gradient(180deg, rgba(230, 81, 0, 0.05) 0%, transparent 100%);
}
#category-lahmacun .menu-category__icon {
  background: rgba(230, 81, 0, 0.1);
  color: #e65100;
}
#category-lahmacun .menu-category__header {
  border-image: linear-gradient(to right, #e65100 0%, rgba(230, 81, 0, 0.2) 100%) 1;
}
#category-lahmacun::after {
  background: linear-gradient(135deg, transparent 50%, rgba(230, 81, 0, 0.04) 50%, rgba(230, 81, 0, 0.08) 100%);
}

/* Pizza & Pide — rich orange */
#category-pizza-pide::before {
  background: linear-gradient(180deg, rgba(255, 111, 0, 0.05) 0%, transparent 100%);
}
#category-pizza-pide .menu-category__icon {
  background: rgba(255, 111, 0, 0.1);
  color: #ff6f00;
}
#category-pizza-pide .menu-category__header {
  border-image: linear-gradient(to right, #ff6f00 0%, rgba(255, 111, 0, 0.2) 100%) 1;
}
#category-pizza-pide::after {
  background: linear-gradient(135deg, transparent 50%, rgba(255, 111, 0, 0.04) 50%, rgba(255, 111, 0, 0.08) 100%);
}

/* Jumbo Pizza — deeper orange */
#category-jumbo-pizza::before {
  background: linear-gradient(180deg, rgba(230, 81, 0, 0.05) 0%, transparent 100%);
}
#category-jumbo-pizza .menu-category__icon {
  background: rgba(230, 81, 0, 0.1);
  color: #ef6c00;
}
#category-jumbo-pizza .menu-category__header {
  border-image: linear-gradient(to right, #ef6c00 0%, rgba(230, 81, 0, 0.2) 100%) 1;
}
#category-jumbo-pizza::after {
  background: linear-gradient(135deg, transparent 50%, rgba(230, 81, 0, 0.04) 50%, rgba(230, 81, 0, 0.08) 100%);
}

/* Salate — fresh green */
#category-salate::before {
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.05) 0%, transparent 100%);
}
#category-salate .menu-category__icon {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}
#category-salate .menu-category__header {
  border-image: linear-gradient(to right, #4CAF50 0%, rgba(76, 175, 80, 0.2) 100%) 1;
}
#category-salate::after {
  background: linear-gradient(135deg, transparent 50%, rgba(76, 175, 80, 0.04) 50%, rgba(76, 175, 80, 0.08) 100%);
}

/* Snacks & Beilagen — warm golden */
#category-snacks::before,
#category-snacks-beilagen::before {
  background: linear-gradient(180deg, rgba(255, 183, 77, 0.05) 0%, transparent 100%);
}
#category-snacks .menu-category__icon,
#category-snacks-beilagen .menu-category__icon {
  background: rgba(255, 183, 77, 0.1);
  color: #ffb74d;
}
#category-snacks .menu-category__header,
#category-snacks-beilagen .menu-category__header {
  border-image: linear-gradient(to right, #ffb74d 0%, rgba(255, 183, 77, 0.2) 100%) 1;
}
#category-snacks::after,
#category-snacks-beilagen::after {
  background: linear-gradient(135deg, transparent 50%, rgba(255, 183, 77, 0.04) 50%, rgba(255, 183, 77, 0.08) 100%);
}

/* Getränke — cool blue-grey */
#category-getranke::before {
  background: linear-gradient(180deg, rgba(144, 164, 174, 0.06) 0%, transparent 100%);
}
#category-getranke .menu-category__icon {
  background: rgba(144, 164, 174, 0.1);
  color: #90a4ae;
}
#category-getranke .menu-category__header {
  border-image: linear-gradient(to right, #90a4ae 0%, rgba(144, 164, 174, 0.2) 100%) 1;
}
#category-getranke::after {
  background: linear-gradient(135deg, transparent 50%, rgba(144, 164, 174, 0.04) 50%, rgba(144, 164, 174, 0.08) 100%);
}


/* --- Toppings section refinement --- */
.toppings {
  position: relative;
  z-index: 1;
}

.toppings__heading {
  opacity: 0.5;
  font-size: 0.85rem;
}


/* ============================================================
   FOOD SHOWCASE — Visible editorial image strip
   ============================================================ */

.food-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.625rem, 1.5vw, 1rem);
  margin: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.food-showcase__item {
  position: relative;
  overflow: hidden;
  border-radius: clamp(0.625rem, 1.2vw, 0.875rem);
  aspect-ratio: 16 / 10;
  background: var(--color-charcoal, #2b2b2b);
}

.food-showcase__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.food-showcase__item:hover img {
  transform: scale(1.05);
}

/* Gradient overlay for label readability */
.food-showcase__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(17, 17, 17, 0.6) 100%
  );
  pointer-events: none;
  border-radius: inherit;
}

.food-showcase__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  font-family: var(--font-heading, 'Bebas Neue', sans-serif);
  font-size: clamp(0.9375rem, 1.5vw, 1.25rem);
  color: rgba(245, 245, 245, 0.95);
  letter-spacing: 0.12em;
  z-index: 1;
  pointer-events: none;
}

/* Subtle border glow */
.food-showcase__item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease;
}

.food-showcase__item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Responsive: 2 columns on tablet */
@media (max-width: 768px) {
  .food-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: horizontal scroll on small mobile */
@media (max-width: 480px) {
  .food-showcase {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.625rem;
    padding-bottom: 0.5rem;
  }

  .food-showcase__item {
    flex: 0 0 72%;
    scroll-snap-align: center;
    aspect-ratio: 16 / 10;
  }

  /* Hide scrollbar */
  .food-showcase::-webkit-scrollbar {
    display: none;
  }
  .food-showcase {
    scrollbar-width: none;
  }
}


/* --- Button reset for showcase items --- */
button.food-showcase__item {
  cursor: pointer;
  padding: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font: inherit;
  text-align: left;
  color: inherit;
}


/* ============================================================
   FOOD LIGHTBOX
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox__img {
  display: block;
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__caption {
  margin-top: 1rem;
  font-family: var(--font-heading, 'Bebas Neue', sans-serif);
  font-size: 1.25rem;
  color: rgba(245, 245, 245, 0.85);
  letter-spacing: 0.15em;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: rgba(245, 245, 245, 0.7);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
  z-index: 1;
}

.lightbox__close:hover {
  color: #fff;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 245, 245, 0.8);
  font-size: 2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 1;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.lightbox__prev {
  left: 1.25rem;
}

.lightbox__next {
  right: 1.25rem;
}

@media (max-width: 600px) {
  .lightbox__prev,
  .lightbox__next {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }

  .lightbox__prev {
    left: 0.5rem;
  }

  .lightbox__next {
    right: 0.5rem;
  }

  .lightbox__close {
    top: 0.5rem;
    right: 0.75rem;
  }
}


/* ============================================================
   ENHANCED CATEGORY TABS
   ============================================================ */

.category-tabs {
  gap: 8px;
}

.category-tab--active {
  box-shadow: 0 0 12px rgba(198, 40, 40, 0.2);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  /* Smaller icon box on mobile */
  .menu-category__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .menu-category__icon svg {
    width: 22px;
    height: 22px;
  }

  /* Subtler corner accent */
  .menu-category::after {
    width: 50px;
    height: 50px;
  }

  /* Less intense gradient wash */
  .menu-category::before {
    height: 80px;
    opacity: 0.7;
  }
}

@media (max-width: 480px) {
  .menu-category::after {
    display: none;
  }

  .menu-category::before {
    height: 60px;
    opacity: 0.5;
  }

  .menu-item__variant-label {
    font-size: 0.6875rem;
  }

  .menu-item__variant-price {
    font-size: 0.9375rem;
  }

  .menu-item__vbadge {
    font-size: 0.55rem;
    padding: 1px 5px;
  }
}
