/**
 * The Lakehouse Pizza Bar & Grill — Subpages & Special Components
 * File: website_assets/lakehouse/v2/css/pages.css
 */

/* ==========================================================================
   Menu Page Styles
   ========================================================================== */
.menu-controls-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: clamp(32px, 5vw, 48px);
}

.menu-search-box {
  width: min(100%, 480px);
  position: relative;
}

.menu-search-input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: var(--fs-small);
  transition: all var(--transition-normal);
}

.menu-search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px var(--gold-glow);
  background: #222228;
}

.menu-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary);
  pointer-events: none;
}

.category-pills-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.category-pill {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.category-pill:hover,
.category-pill.active {
  background: var(--gold-primary);
  color: #101012;
  border-color: var(--gold-light);
  box-shadow: var(--shadow-gold);
}

/* Mobile & Tablet: Horizontal swipeable category pill bar */
@media (max-width: 768px) {
  .menu-controls-wrap {
    width: 100%;
    margin-bottom: 24px;
    gap: 12px;
  }

  .menu-search-box {
    width: 100%;
    max-width: 100%;
  }

  .menu-search-input {
    padding: 12px 18px 12px 42px;
    font-size: 13.5px;
  }

  .category-pills-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    width: calc(100% + 32px);
    max-width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    padding: 4px 16px 12px 16px;
    gap: 8px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-snap-type: x proximity;
  }

  .category-pills-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
  }

  .category-pill {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 50px;
    scroll-snap-align: center;
  }
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

/* Dish Quick-View Modal */
.dish-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.dish-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.dish-modal-content {
  width: min(100%, 720px);
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-normal);
}

.dish-modal-backdrop.active .dish-modal-content {
  transform: scale(1) translateY(0);
}

.dish-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
  z-index: 10;
}

.dish-modal-close:hover {
  color: var(--gold-primary);
}

.dish-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-md);
  align-items: center;
}

.dish-modal-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
  background: var(--bg-secondary);
}

.dish-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 650px) {
  .dish-modal-content {
    padding: 20px 16px;
    max-height: 92vh;
  }
  .dish-modal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dish-modal-img-wrap {
    height: 200px;
  }
  .dish-modal-actions {
    margin-top: 16px;
  }
}

/* ==========================================================================
   Gallery Page Styles
   ========================================================================== */
.gallery-masonry {
  column-count: 3;
  column-gap: var(--space-md);
}

@media (max-width: 992px) {
  .gallery-masonry { column-count: 2; }
}

@media (max-width: 576px) {
  .gallery-masonry { column-count: 1; }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-elevated), 0 0 20px var(--gold-glow);
}

.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(16, 16, 18, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
}

.gallery-item-tag {
  font-size: var(--fs-tiny);
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Vanilla Lightbox */
.vanilla-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.vanilla-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  margin-top: 14px;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close { top: 20px; right: 24px; font-size: 26px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold-primary);
  color: #101012;
}

/* ==========================================================================
   Reviews Page Styles
   ========================================================================== */
.review-score-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
  max-width: 600px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  box-shadow: var(--shadow-subtle);
}

.review-stars-gold {
  color: #F1C40F;
  font-size: 1.5rem;
  letter-spacing: 4px;
  margin-bottom: 6px;
}

.review-score-num {
  font-size: 3.2rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.review-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all var(--transition-normal);
}

.review-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated), 0 0 20px var(--gold-glow);
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  padding-top: var(--space-xs);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: var(--gold-dark);
  color: var(--text-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
