/* ============================================================
   LO D'ALEX — MENU PAGE STYLES
   Category tabs, menu items, photo separators, coming soon
   ============================================================ */

/* === Menu Category Tabs (Sticky Bar) === */
.menu-tabs {
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
  background: rgba(10, 10, 8, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 var(--space-xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.menu-tabs::-webkit-scrollbar {
  display: none;
}

.menu-tabs__inner {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) 0;
  white-space: nowrap;
}

.menu-tab {
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-300);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast), background var(--duration-fast);
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.menu-tab:hover {
  color: var(--white);
}

.menu-tab.active {
  color: var(--gold);
  background: var(--gold-subtle);
}

/* === Menu Sections === */
.menu-section {
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.menu-section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.menu-section__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.menu-section__subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.menu-section__note {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gray-300);
  font-size: var(--text-sm);
  margin-top: var(--space-md);
}

.menu-subcategory {
  font-family: var(--font-display);
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  font-weight: 500;
  color: var(--gold);
  text-align: center;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === Menu Items (List Style) === */
.menu-list {
  max-width: 700px;
  margin: 0 auto;
}

.menu-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

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

.menu-item__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

.menu-item__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
}

.menu-item__dots {
  flex: 1;
  border-bottom: 1px dotted var(--gray-500);
  margin: 0 var(--space-sm);
  min-width: 30px;
  align-self: center;
  position: relative;
  top: -4px;
}

.menu-item__price {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
}

.menu-item__description {
  font-size: var(--text-sm);
  color: var(--gray-300);
  line-height: 1.6;
  font-style: italic;
}

/* Chef's Choice Diamond */
.chef-choice {
  color: var(--gold);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

/* === Cocktail Cards (Grid Style) === */
.cocktail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.cocktail-card {
  background: var(--dark-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  text-align: center;
  transition: border-color var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.cocktail-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
}

.cocktail-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.cocktail-card__ingredients {
  font-size: var(--text-sm);
  color: var(--gray-300);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.cocktail-card__price {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--gold);
}

/* === Executive Lunch Badge === */
.lunch-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xl);
}

.lunch-sides {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--glass-border);
}

.lunch-sides__tag {
  padding: 6px 14px;
  background: var(--glass-gold);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--gray-200);
}

/* ============================================================
   LUXURY ACCORDION MENU
   ============================================================ */

.menu-accordion {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-xl) var(--space-3xl);
}

/* --- Accordion Panel --- */
.accordion-panel {
  border-bottom: 1px solid rgba(200, 164, 74, 0.12);
  contain: content;
}

.accordion-panel:first-child {
  border-top: 1px solid rgba(200, 164, 74, 0.12);
}

/* --- Accordion Trigger (Category Card) --- */
.accordion-trigger {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 160px;
  padding: var(--space-2xl) var(--space-2xl);
  cursor: pointer;
  overflow: hidden;
  background: var(--dark-card);
  border: none;
  text-align: left;
  font-family: inherit;
  color: inherit;
  outline: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.accordion-trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

/* Background image */
.accordion-trigger__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.accordion-trigger__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.6s ease;
  opacity: 0.3;
  filter: saturate(0.8);
}

.accordion-trigger:hover .accordion-trigger__bg img {
  transform: scale(1.06);
  opacity: 0.5;
  filter: saturate(1);
}

.accordion-panel.open .accordion-trigger__bg img {
  opacity: 0.2;
  transform: scale(1.03);
}

/* Dark gradient overlay */
.accordion-trigger__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 8, 0.88) 0%,
    rgba(10, 10, 8, 0.6) 50%,
    rgba(10, 10, 8, 0.35) 100%
  );
  transition: background 0.6s ease;
}

.accordion-panel.open .accordion-trigger__overlay {
  background: linear-gradient(
    90deg,
    rgba(10, 10, 8, 0.92) 0%,
    rgba(10, 10, 8, 0.75) 50%,
    rgba(10, 10, 8, 0.6) 100%
  );
}

/* Content (label, title, count) */
.accordion-trigger__content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.accordion-trigger__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

.accordion-trigger__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin: 0;
  transition: color 0.4s ease;
}

.accordion-trigger:hover .accordion-trigger__title {
  color: var(--gold-light);
}

.accordion-panel.open .accordion-trigger__title {
  color: var(--gold);
}

.accordion-trigger__count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray-300);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--space-xs);
  display: block;
}

/* Icon (gold circle with +) */
.accordion-trigger__icon {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(200, 164, 74, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              color 0.4s ease,
              text-shadow 0.4s ease;
  margin-left: var(--space-xl);
  animation: icon-cascade 6s ease-in-out infinite,
             icon-breathe 3s ease-in-out infinite;
}

/* Cascade animation — strong wave that flows top to bottom */
@keyframes icon-cascade {
  0%, 15%, 100% {
    box-shadow:
      0 0 4px rgba(191, 155, 81, 0.1),
      0 0 10px rgba(191, 155, 81, 0.05);
    border-color: rgba(200, 164, 74, 0.3);
    color: var(--gold);
    text-shadow: none;
  }
  7% {
    box-shadow:
      0 0 10px rgba(191, 155, 81, 0.5),
      0 0 25px rgba(191, 155, 81, 0.2),
      0 0 45px rgba(191, 155, 81, 0.08);
    border-color: rgba(200, 164, 74, 0.7);
    color: #D4AF37;
    text-shadow: 0 0 8px rgba(191, 155, 81, 0.6);
  }
}

/* Breathe animation — constant soft subtle pulse on all icons */
@keyframes icon-breathe {
  0%, 100% {
    box-shadow:
      0 0 3px rgba(191, 155, 81, 0.08),
      0 0 8px rgba(191, 155, 81, 0.04);
  }
  50% {
    box-shadow:
      0 0 5px rgba(191, 155, 81, 0.18),
      0 0 12px rgba(191, 155, 81, 0.08);
  }
}

/* Cascade delays — light flows from top to bottom */
.accordion-panel:nth-child(1) .accordion-trigger__icon { animation-delay: 0s; }
.accordion-panel:nth-child(2) .accordion-trigger__icon { animation-delay: 0.4s; }
.accordion-panel:nth-child(3) .accordion-trigger__icon { animation-delay: 0.8s; }
.accordion-panel:nth-child(4) .accordion-trigger__icon { animation-delay: 1.2s; }
.accordion-panel:nth-child(5) .accordion-trigger__icon { animation-delay: 1.6s; }
.accordion-panel:nth-child(6) .accordion-trigger__icon { animation-delay: 2.0s; }
.accordion-panel:nth-child(7) .accordion-trigger__icon { animation-delay: 2.4s; }
.accordion-panel:nth-child(8) .accordion-trigger__icon { animation-delay: 2.8s; }
.accordion-panel:nth-child(9) .accordion-trigger__icon { animation-delay: 3.2s; }
.accordion-panel:nth-child(10) .accordion-trigger__icon { animation-delay: 3.6s; }
.accordion-panel:nth-child(11) .accordion-trigger__icon { animation-delay: 4.0s; }

.accordion-trigger:hover .accordion-trigger__icon {
  border-color: var(--gold);
  background: rgba(200, 164, 74, 0.08);
  animation: none;
  box-shadow:
    0 0 10px rgba(191, 155, 81, 0.3),
    0 0 25px rgba(191, 155, 81, 0.12);
}

.accordion-panel.open .accordion-trigger__icon {
  transform: rotate(45deg);
  background: rgba(200, 164, 74, 0.12);
  border-color: var(--gold);
  animation: none;
  box-shadow: none;
}

/* --- Accordion Body (Expand/Collapse) --- */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  will-change: grid-template-rows;
}

.accordion-panel.open .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-body__inner {
  overflow: hidden;
  padding: 0 var(--space-2xl);
  opacity: 0;
  transform: translateY(10px);
  transition: padding 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease 0.15s,
              transform 0.5s ease 0.15s;
}

.accordion-panel.open .accordion-body__inner {
  padding: var(--space-xl) var(--space-2xl) var(--space-3xl);
  opacity: 1;
  transform: translateY(0);
}

/* Gold accent line at top of expanded content */
.accordion-body__inner::before {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: var(--space-2xl);
}

/* Center the menu-list inside accordion */
.accordion-body .menu-list {
  max-width: 720px;
  margin: 0 auto;
}

.accordion-body .cocktail-grid {
  max-width: 960px;
  margin: 0 auto;
}

/* --- Responsive Images --- */
.accordion-trigger__bg img,
.cocktail-card img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   DISH GALLERY (Menu Page)
   ============================================================ */
.dish-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 6px;
}

.dish-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  cursor: pointer;
}

.dish-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s ease;
  filter: brightness(0.95) saturate(1);
}

.dish-gallery__item:hover img {
  transform: scale(1.08);
  filter: brightness(1.05) saturate(1.15);
}

/* Gold glow from bottom on hover */
.dish-gallery__item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(200, 164, 74, 0.45) 0%,
    rgba(200, 164, 74, 0.2) 25%,
    rgba(200, 164, 74, 0.05) 50%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: var(--radius-sm);
}

.dish-gallery__item:hover::before {
  opacity: 1;
}

/* Gold border on hover */
.dish-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color 0.5s ease;
  pointer-events: none;
  z-index: 2;
}

.dish-gallery__item:hover::after {
  border-color: rgba(200, 164, 74, 0.4);
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
  .dish-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
}

/* Small phones: tighter gap */
@media (max-width: 480px) {
  .dish-gallery {
    gap: 3px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .accordion-body,
  .accordion-body__inner,
  .accordion-trigger__bg img,
  .accordion-trigger__icon {
    transition-duration: 0.01ms !important;
  }
}

/* === Chef's Pick Badge === */
.chefs-pick {
  display: inline-block;
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-left: 8px;
  opacity: 0.8;
}

/* === Pairing Suggestion === */
.menu-item__pairing {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.72rem;
  color: rgba(191, 155, 81, 0.5);
  margin-top: 4px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* === Reserve CTA Between Sections === */
@media (max-width: 768px) {
  .menu-reserve-cta { display: none; }
}

/* === Dish Preview Eye Button === */
.dish-preview-wrap {
  position: relative;
}

.dish-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  border: none;
  background: none;
  padding: 2px;
  cursor: pointer;
  color: rgba(191, 155, 81, 0.45);
  transition: color 0.4s ease, filter 0.4s ease;
  animation: cam-breathe 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes cam-breathe {
  0%, 100% {
    color: rgba(191, 155, 81, 0.35);
    filter: drop-shadow(0 0 0px transparent);
  }
  50% {
    color: rgba(191, 155, 81, 0.6);
    filter: drop-shadow(0 0 4px rgba(191, 155, 81, 0.25));
  }
}

.dish-eye:hover {
  color: var(--gold);
  animation: none;
  filter: drop-shadow(0 0 6px rgba(191, 155, 81, 0.4));
}

/* When preview is open, camera glows solid */
.dish-preview-wrap.show-preview .dish-eye {
  color: var(--gold);
  animation: none;
  filter: drop-shadow(0 0 5px rgba(191, 155, 81, 0.35));
}

/* Dish Preview Image */
.dish-preview {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease;
  opacity: 0;
  overflow: hidden;
}

.dish-preview-wrap.show-preview .dish-preview {
  grid-template-rows: 1fr;
  opacity: 1;
}

.dish-preview img {
  min-height: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  margin-top: 16px;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
  border: 1px solid rgba(191, 155, 81, 0.15);
  box-shadow:
    0 0 6px rgba(191, 155, 81, 0.1),
    0 0 15px rgba(191, 155, 81, 0.05);
}

/* Mobile: smaller aspect ratio */
@media (max-width: 768px) {
  .dish-preview img {
    aspect-ratio: 4/3;
  }
}

/* Mobile: preview takes full width */
@media (max-width: 480px) {
  .dish-preview img {
    max-width: 100%;
  }
  .dish-eye {
    top: 12px;
    width: 28px;
    height: 28px;
  }
  .dish-eye svg {
    width: 13px;
    height: 13px;
  }
}
