/* ============================================
   Ratsstuben Germering - Menu (Speisekarte) Page Styles
   ============================================ */

/* This file contains menu-page-specific styles only.
   Common styles are in common.css */

/* ============================================
   Page Body Overrides
   ============================================ */

/* Common dark theme colors are used from common.css */

/* ============================================
   Hero Section
   ============================================ */

.speisekarte-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../imgs/gallery/NiceFishPlate.webp');
  background-size: cover;
  background-position: center;
  min-height: 280px;
  width: 100%;
  border-radius: 1.25rem !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.speisekarte-hero .display-4 {
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-size: 3rem;
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.shadow-text {
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

@media (max-width: 767px) {
  .speisekarte-hero {
    min-height: 220px;
  }
  
  .speisekarte-hero .display-4 {
    font-size: 2rem;
  }
}

/* ============================================
   Heading Styles (Legacy - replaced by hero)
   ============================================ */

/* Replaced by hero styles above */

/* ============================================
   PDF Container & Viewer
   ============================================ */

.pdf-header-actions .btn {
  padding-left: 2rem;
  padding-right: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdf-header-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.pdf-viewer-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #dee2e6;
  width: 100%;
}

.pdf-viewer-wrapper object {
  display: block;
  width: 100%;
  height: 80vh;
  min-height: 500px;
}

/* Fallback for browsers that don't support inline PDF */
.pdf-fallback {
  border: none;
}

.pdf-fallback .card-body {
  padding: 3rem 1rem;
}

.pdf-fallback p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
  .pdf-viewer-wrapper object {
    height: 60vh;
    min-height: 400px;
  }

  .pdf-header-actions .btn-lg {
    width: 100%;
    font-size: 1.05rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .reservation-cta {
    padding: 2.5rem 1.5rem !important;
  }

  .reservation-cta h3 {
    font-size: 1.75rem;
  }

  .reservation-cta p.lead {
    font-size: 1.1rem;
  }

  .reservation-cta .btn-lg {
    width: 100%;
    font-size: 1.1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================================
   Menu Items & Categories (HTML Version)
   ============================================ */

.menu-container {
  background-color: #2d2d2d;
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-section {
  margin-bottom: 4rem;
}

.menu-section:last-child {
  margin-bottom: 1rem;
}

.menu-category-title {
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1.75rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Accordion Toggle Styles */
.menu-section.collapsible .menu-category-title {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.menu-section.collapsible .menu-category-title:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.menu-category-title::after {
  content: '';
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-left: 1.5rem;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  display: none; /* Hidden by default */
}

.menu-section.collapsible .menu-category-title::after {
  display: inline-block;
}

.menu-section.active .menu-category-title::after {
  transform: rotate(-135deg);
}

.menu-content-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.menu-section.active .menu-content-wrapper {
  max-height: 2000px; /* High enough to contain the content */
  opacity: 1;
  margin-top: 2rem;
}

.menu-section:not(.collapsible) .menu-content-wrapper {
  max-height: none;
  opacity: 1;
  overflow: visible;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
  }
}

.menu-item {
  position: relative;
  transition: transform 0.2s ease;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.menu-item-name-wrapper {
  display: flex;
  align-items: baseline;
  flex: 1;
}

.menu-item-id {
  font-size: 0.75rem;
  font-family: monospace;
  color: rgba(255, 255, 255, 0.3);
  margin-right: 0.75rem;
  min-width: 1.5rem;
}

.menu-item-name {
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--color-white);
  margin-bottom: 0;
  line-height: 1.2;
}

.menu-item-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
  margin: 0 0.75rem;
  height: 1px;
}

.menu-item-price {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-white);
  white-space: nowrap;
}

.menu-item-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
  line-height: 1.5;
  padding-left: 2.25rem; /* Align with name when ID is present */
}

.menu-item-description:empty {
  display: none;
}

.menu-footer-note {
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 3rem;
  text-align: center;
}

/* Specific styling for drinks/bottles */
.menu-item-size {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 0.5rem;
  font-weight: normal;
}

.menu-item-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 1rem;
  margin-left: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  color: #fff;
  background-color: #6c757d; /* Default gray */
}

.menu-item-badge.badge-classic {
  background-color: #d4af37; /* Gold */
  color: #000;
}

.menu-item-badge.badge-origin {
  background-color: #2980b9; /* Blue */
}

.menu-item-badge.badge-special {
  background-color: #e67e22; /* Orange */
}

.menu-item-badge.badge-veggie {
  background-color: #27ae60; /* Green */
}

/* Featured Section Styling */
.menu-section:first-child:not(.collapsible) {
  background-color: rgba(212, 175, 55, 0.05); /* Very subtle gold tint */
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 5rem;
}

.menu-section:first-child:not(.collapsible) .menu-category-title {
  color: #d4af37;
  border-bottom-color: rgba(212, 175, 55, 0.3);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .menu-container {
    padding: 2rem 1.25rem;
  }
  
  .menu-category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* Fix for long dish names pushing layout */
  .menu-item-header {
    flex-wrap: wrap;
  }

  .menu-item-dots {
    display: none; /* Hide dots on mobile if name is long */
  }

  .menu-item-price {
    margin-left: auto;
    padding-top: 0.25rem;
  }

  .menu-item-name {
    font-size: 1.1rem;
  }

  .menu-item-description {
    padding-left: 0;
    margin-top: 0.5rem;
  }

  /* Fix for the long PDF download button text causing overflow */
  .btn {
    white-space: normal !important;
    word-wrap: break-word;
  }
}

/* ============================================
   Reservation CTA
   ============================================ */

.reservation-cta {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../imgs/gallery/Exteriror.webp');
  background-size: cover;
  background-position: center;
  border: none;
  width: 100%;
  border-radius: 1.25rem !important;
}

.reservation-cta h3 {
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.reservation-cta .btn-outline-light {
  border-width: 2px;
  font-weight: 600;
}

.reservation-cta .btn-outline-light:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}