/* ===================================================================
 * Steakhouse 1.0.0 - Menu Page CSS
 *
 * Styles for the traditional menu page layout with category strip
 * ------------------------------------------------------------------- */

:root {
  --bg: #000000;
  --bg-elevated: #262022;
  --bg-elevated-alt: #211a1c;
  --accent: #f3c77b;
  --accent-soft: #f5d9a4;
  --text-main: #f6f0e9;
  --text-muted: #b7a69b;
  --border-subtle: #3b3133;
  --card-radius: 14px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Screen reader only: Hidden visually but accessible to screen readers */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1a1a1a 0, var(--bg) 45%, #000000 100%);
  color: var(--text-main);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Menu Top Overlay Bar */
.menu-top-overlay {
  padding: 16px 24px;
  animation: slideDownFromTop 0.5s ease-out;
}

.menu-top-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Home Button Styles */
.home-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.home-button:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.home-button svg {
  flex-shrink: 0;
}

/* Language Dropdown positioning in menu */
.menu-languages-section {
  display: flex;
  align-items: center;
}

/* Animation for slide down */
@keyframes slideDownFromTop {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.menu-page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal overflow */
}

@media (min-width: 768px) {
  .menu-page-wrapper {
    padding: 0 40px;
  }
}

@media (min-width: 1400px) {
  .menu-page-wrapper {
    max-width: 1400px;
    padding: 0 60px;
  }
}

/* HEADER */
.menu-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 15px;
}

.logo-mark {
  width: 150px;
  height: 150px;

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
  flex-shrink: 0; /* Prevent logo from shrinking */
}

.menu-title-block .logo-mark {
  width: 160px;
  height: 160px;
}

.menu-title-block .logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 100px;
}

.logo-text span {
  display: block;
  line-height: 1.15;
}

.logo-text .top {
  font-size: 14px;
}

.logo-text .bottom {
  font-size: 11px;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-button,
.pill-language {
  border-radius: 999px;
  border: 1px solid #ffffff33;
  background: transparent;
  color: var(--text-main);
  padding: 6px 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pill-button:hover,
.pill-language:hover {
  background: #ffffff10;
  border-color: #ffffff55;
}

.pill-language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: #ffffff50;
}

.pill-language-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #e63b2e 65%, #113eaa 100%);
}

/* PAGE TITLE */
.menu-title-block {
  margin-bottom: 32px;
}

.menu-title-header {
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  align-items: flex-start; /* Default to left alignment */
  gap: 20px; /* Reduce gap for vertical spacing */
  margin-bottom: 14px;
}

.menu-title-block .logo {
  align-self: center; /* Center the logo */
  margin: 0;
  flex-shrink: 0;
}

.menu-title-block h1 {
  font-family: "Playfair Display", serif;
  font-size: 44px;
  letter-spacing: 0.12em;
  text-transform: capitalize;
  margin: 0;
  color: #b8941f;
  align-self: flex-start; /* Align menu text to the left */
  text-shadow:
    0 0 1px rgba(0,0,0,0.2),
    0 1px 2px rgba(0,0,0,0.3),
    0 2px 4px rgba(0,0,0,0.2),
    0 4px 8px rgba(0,0,0,0.15),
    0 8px 16px rgba(0,0,0,0.1);
  filter: drop-shadow(2px 3px 4px rgba(0,0,0,0.25));
  word-break: break-word; /* Prevent long text overflow */
}

.menu-subtitle-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid #ffffff22;
  color: var(--accent-soft);
  background: linear-gradient(90deg, #ffffff05, #f3c77b22, #ffffff05);
}

/* CATEGORY SCROLLER */
.category-strip-wrapper {
  margin-bottom: 40px;
  padding-top: 3px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  padding-bottom: 10px;
  box-shadow: none;
  /* Create stacking context for gradients */
}

/* Remove fade gradients */
.category-strip-wrapper::before,
.category-strip-wrapper::after {
  display: none;
}

.category-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 3px 40px 6px;
  scrollbar-width: thin;
  scrollbar-color: #5a4b43 transparent;
  position: relative;
}

.category-strip::-webkit-scrollbar {
  height: 6px;
}

.category-strip::-webkit-scrollbar-thumb {
  background: #5a4b43;
  border-radius: 999px;
}

.category-card {
  min-width: 110px;
  max-width: 120px;
  background: radial-gradient(circle at top left, #69402d 0, #2d1f21 40%, #171114 100%);
  border-radius: 16px;
  padding: 6px 6px 8px;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.65);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.9);
  border-color: #f3c77b88;
  z-index: 1;
}

.category-card.active {
  border-color: var(--accent);
  background: radial-gradient(circle at top, #846041 0, #352224 40%, #151015 100%);
  z-index: 2;
  position: relative;
  margin-top: -3px;
  padding-top: 9px;
}

.category-thumb {
  height: 70px;
  border-radius: 10px;
  margin-bottom: 5px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff88;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.category-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: center;
  color: var(--text-main);
  margin-top: 2px;
}

/* MENU SECTION SHELL */
.menu-section-shell {
  margin-top: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1b1517, #1c1618);
  box-shadow: var(--shadow-soft);
  border: 1px solid #ffffff10;
  padding: 28px 26px 10px;
}

@media (min-width: 900px) {
  .menu-section-shell {
    padding: 32px 34px 16px;
  }
}

.menu-section-header {
  text-align: center;
  margin-bottom: 18px;
}

.menu-section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  letter-spacing: 0.14em;
  text-transform: capitalize;
  margin-bottom: 6px;
}

.menu-section-header .note {
  font-size: 11px;
  color: var(--text-muted);
}

.menu-group {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.menu-group:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.menu-group-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 6px;
}

.menu-group-subtitle {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 12px;
  margin-top: 24px;
}

.menu-items-list {
  list-style: none;
}

.menu-item-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #ffffff0f;
  transition: background-color 0.2s ease;
}

/* Desktop multi-column layout */
@media (min-width: 1200px) {
  .menu-items-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
  }

  .menu-item-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 0;
    /* Remove bottom borders for cleaner look */
    border-bottom: none;
    transition: background-color 0.2s ease;
  }

  /* Add hover effect for menu items */
  .menu-item-row:hover {
    background-color: rgba(243, 199, 123, 0.05);
    border-radius: 8px;
    margin: 0 -8px;
    padding: 12px 8px;
  }

  /* Remove the column divider line */
  .menu-items-list > li:nth-child(even) {
    border-left: none;
    padding-left: 24px;
  }

  .menu-items-list > li:nth-child(odd) {
    padding-right: 24px;
  }

  /* Cleaner spacing between rows in desktop */
  .menu-item-row {
    margin-bottom: 8px;
  }

  .menu-item-row:last-child {
    margin-bottom: 0;
  }
}

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

/* Drinks Two-Column Layout */
.drinks-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.drinks-column {
  display: flex;
  flex-direction: column;
}

.drinks-column-full {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}

/* Responsive: single column on mobile */
@media (max-width: 768px) {
  .drinks-two-column {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.menu-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-item-name {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-main);
}

/* Featured menu item name (e.g., PIDE AU FROMAGE) */
.menu-item-name-featured {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d63333;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.menu-item-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 4px;
}

.menu-item-price {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  align-self: center;
  color: var(--accent-soft);
}

.menu-cooking-options {
  margin: 16px 0;
  padding: 12px;
  background: rgba(243, 199, 123, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(243, 199, 123, 0.3);
}

.cooking-title {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.cooking-options {
  font-size: 11px;
  color: var(--text-muted);
}

.menu-section-footer {
  margin-top: 22px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding-bottom: 80px; /* Space for back-to-top button */
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(243, 199, 123, 0.2), rgba(243, 199, 123, 0.1));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(243, 199, 123, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, rgba(243, 199, 123, 0.3), rgba(243, 199, 123, 0.2));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(243, 199, 123, 0.3);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-soft);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 900px) {
  .menu-title-header {
    gap: 20px;
    padding: 0 20px;
  }

  .menu-title-block .logo-mark {
    width: 140px;
    height: 140px;
  }

  .menu-title-block h1 {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .menu-title-header {
    gap: 16px;
    padding: 0 16px;
  }

  .menu-title-block .logo-mark {
    width: 100px;
    height: 100px;
  }

  .menu-title-block h1 {
    font-size: 24px;
  }
}

@media (max-width: 400px) {
  .menu-title-header {
    gap: 12px;
  }

  .menu-title-block .logo-mark {
    width: 90px;
    height: 90px;
  }

  .menu-title-block h1 {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .logo-text {
    display: none;
  }

  .menu-header {
    margin-bottom: 0px;
  }

  .menu-title-header {
    gap: 8px;
    padding: 0 16px;
  }

  .menu-title-block .logo-mark {
    width: 120px;
    height: 120px;
  }

  .menu-title-block h1 {
    font-size: 22px;
  }

  .category-card {
    min-width: 85px;
  }

  .menu-section-shell {
    padding: 22px 16px 12px;
  }

  /* Mobile styles for top overlay */
  .menu-top-overlay {
    padding: 12px 16px;
  }

  .home-button span {
    display: none; /* Hide text on mobile */
  }

  .menu-page-wrapper {
    padding: 0px 0px 0px;
  }
}
