/* Restaurant Menu Modal Overlay */

:root {
  /* Light Mode Variables */
  --menu-bg: #faf8f4;
  --menu-text: #2c2a26;
  --menu-muted: #6b6560;
  --menu-divider: #c8c0b0;
  --menu-font-serif: Georgia, 'Times New Roman', serif;
  --menu-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Mode Variables */
    --menu-bg: #1a1814;
    --menu-text: #e8e4dc;
    --menu-muted: #8a8178;
    --menu-divider: #3a3530;
  }
}

.menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 6000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-paper {
  background-color: var(--menu-bg);
  color: var(--menu-text);
  width: 100%;
  max-width: 650px;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  position: relative;
  
  /* Modal frame styles */
  padding: 2.5rem;
  border-radius: 4px;
  outline: 1px solid var(--menu-divider);
  outline-offset: -8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

@media (min-width: 600px) {
  .menu-paper {
    height: 90%;
  }
}

.menu-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-family: var(--menu-font-sans);
  font-size: 2rem;
  font-weight: 300;
  color: var(--menu-muted);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10;
  line-height: 1;
  padding: 0;
}
.menu-close-btn:hover {
  opacity: 1;
}

.menu-title {
  font-family: var(--menu-font-serif);
  text-align: center;
  font-size: 2.5rem;
  letter-spacing: 0.15em;
  margin-top: 20px;
  margin-bottom: 50px;
  color: var(--menu-text);
  text-transform: uppercase;
}

/* Subtitle beneath title */
.menu-title::after {
  content: "Private Collection";
  display: block;
  font-family: var(--menu-font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--menu-muted);
  margin-top: 12px;
  text-transform: uppercase;
}

/* Sections */
.menu-section {
  margin-bottom: 50px;
}

.menu-section-title {
  font-family: var(--menu-font-sans);
  text-align: center;
  font-variant: small-caps;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: var(--menu-text);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}

.menu-section-title::before,
.menu-section-title::after {
  content: '✦';
  flex: 1;
  display: flex;
  align-items: center;
  color: var(--menu-divider);
  font-size: 0.75em;
}

.menu-section-title::before {
  justify-content: flex-end;
  margin-right: 15px;
  background: linear-gradient(to right, transparent, var(--menu-divider) 0%, var(--menu-divider) calc(100% - 24px), transparent calc(100% - 24px));
  background-size: 100% 1px;
  background-position: center;
  background-repeat: no-repeat;
}

.menu-section-title::after {
  justify-content: flex-start;
  margin-left: 15px;
  background: linear-gradient(to left, transparent, var(--menu-divider) 0%, var(--menu-divider) calc(100% - 24px), transparent calc(100% - 24px));
  background-size: 100% 1px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Rows */
.menu-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--menu-divider);
  cursor: pointer;
  transition: opacity 0.2s;
}

.menu-row:hover {
  opacity: 0.8;
}

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

.menu-item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
}

.menu-item-name {
  font-family: var(--menu-font-serif);
  font-size: 1.3rem;
  font-weight: normal;
  color: var(--menu-text);
  margin: 0;
}

.menu-leader {
  flex-grow: 1;
  border-bottom: 2px dotted var(--menu-divider);
  margin: 0 12px;
  position: relative;
  top: -6px;
  opacity: 0.7;
}

.menu-item-year {
  font-family: var(--menu-font-serif);
  font-size: 1.2rem;
  font-weight: normal;
  color: var(--menu-text);
  white-space: nowrap;
}

.menu-item-subtitle {
  font-family: var(--menu-font-sans);
  font-size: 0.85rem;
  color: var(--menu-muted);
  margin-top: 6px;
}

.menu-item-notes {
  font-family: var(--menu-font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--menu-muted);
  margin-top: 14px;
  margin-left: 1rem;
  padding-top: 10px;
  border-top: 1px solid var(--menu-divider);
  display: none;
}

.menu-row.expanded .menu-item-notes {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-empty {
  text-align: center;
  font-family: var(--menu-font-sans);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--menu-muted);
}
