/* ================================================================
   La Nuit Shanghai — Content Class Library
   Used by admin-authored HTML on subpages (menus, corporate,
   cabaret, offer). Loaded by both the public site and the admin
   live preview so what operators see matches what visitors see.
   ================================================================ */

:root {
  --lns-gold: #b09553;
  --lns-gold-soft: #c9b06e;
  --lns-text: #ffffff;
  --lns-muted: #a1a1aa;
}

/* ---------- General content blocks ---------- */

.section-title {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.875rem;
  color: var(--lns-gold);
  margin: 0 0 1.5rem;
  text-align: center;
}

.body-text {
  color: var(--lns-muted);
  font-weight: 300;
  line-height: 1.8;
  font-size: 1.125rem;
}

.text-gold { color: var(--lns-gold); }
.text-center { text-align: center; }

.content-padded { padding: 3rem 1.5rem; }

.content-block {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.gold-border-frame {
  border: 1px solid var(--lns-gold);
  padding: 2.5rem;
  margin: 2rem 0;
}

.premium-frame {
  border: 1px solid rgba(176, 149, 83, 0.75);
  padding: clamp(2rem, 5vw, 4rem);
  margin: 2.5rem auto;
  max-width: 980px;
  background: rgba(8, 8, 8, 0.72);
}

.premium-frame .body-text + .body-text,
.premium-frame .event-section + .event-section {
  margin-top: 1.5rem;
}

.event-heading {
  color: var(--lns-gold);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 2rem;
  text-align: center;
}

.event-subheading {
  color: var(--lns-gold-soft);
  font-size: 0.78rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
}

.event-copy {
  color: var(--lns-muted);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
  margin: 0;
}

.cta-group {
  margin-top: 3rem;
  text-align: center;
}

.cta-lead {
  color: var(--lns-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 300;
  margin: 0 0 1.75rem;
}

.image-full {
  position: relative;
  width: 100%;
  display: block;
  margin: 2rem 0;
}
.image-full img {
  width: 100%;
  height: auto;
  display: block;
}

.cta-gold {
  display: inline-block;
  background: var(--lns-gold);
  color: #000;
  padding: 0.85rem 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s;
}
.cta-gold:hover { background: var(--lns-gold-soft); }

/* ---------- Menu-specific classes ---------- */

.menu-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 3rem auto;
}

.menu-frame-card {
  position: relative;
  min-height: 320px;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.35rem, 3vw, 2.35rem);
  overflow: hidden;
  background: #060606;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.menu-frame-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-image);
  background-size: cover;
  background-position: center;
  opacity: 1;
  transform: scale(1.02);
}

.menu-frame-card > * {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.82);
}

.menu-card-title {
  color: var(--lns-gold);
  font-size: clamp(1.35rem, 2.15vw, 2rem);
  line-height: 1.45;
  letter-spacing: clamp(0.12em, 0.9vw, 0.28em);
  text-transform: uppercase;
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
  margin: 0;
}

.menu-card-line {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--lns-gold);
  margin: 1.25rem auto;
}

.menu-card-copy {
  color: var(--lns-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
  margin: 0 0 1.5rem;
}

/* ---------- Gallery classes ---------- */

.gallery-tabs {
  margin: 1.25rem auto 0;
}

.gallery-tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gallery-tab-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  margin: 1.25rem auto 2.75rem;
}

.gallery-tab-labels label {
  color: var(--lns-gold);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.6;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid transparent;
  opacity: 0.68;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.gallery-tab-labels label:hover {
  opacity: 1;
}

.gallery-panel {
  display: none;
}

.gallery-tabs > .gallery-tab-input:nth-of-type(1):checked ~ .gallery-tab-labels label:nth-child(1),
.gallery-tabs > .gallery-tab-input:nth-of-type(2):checked ~ .gallery-tab-labels label:nth-child(2),
.gallery-tabs > .gallery-tab-input:nth-of-type(3):checked ~ .gallery-tab-labels label:nth-child(3) {
  border-color: var(--lns-gold);
  color: var(--lns-gold-soft);
  opacity: 1;
}

.gallery-tabs > .gallery-tab-input:nth-of-type(1):checked ~ .gallery-tab-panels .gallery-panel:nth-child(1),
.gallery-tabs > .gallery-tab-input:nth-of-type(2):checked ~ .gallery-tab-panels .gallery-panel:nth-child(2),
.gallery-tabs > .gallery-tab-input:nth-of-type(3):checked ~ .gallery-tab-panels .gallery-panel:nth-child(3) {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.75rem;
  margin: 2.75rem auto 3rem;
}

.gallery-item {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #060606;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.course-header {
  font-size: 2rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  color: var(--lns-gold);
  margin: 3rem 0 0.75rem;
  position: relative;
}
.course-header::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background: var(--lns-gold);
  margin: 0.75rem auto 0;
}

.gold-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--lns-gold) 30%,
    var(--lns-gold) 70%,
    transparent
  );
  margin: 2.5rem auto;
  max-width: 480px;
}

.diamond-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0;
  color: var(--lns-gold);
}
.diamond-divider::before,
.diamond-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--lns-gold)
  );
  max-width: 200px;
  margin: 0 1rem;
}
.diamond-divider::after {
  background: linear-gradient(
    to left,
    transparent,
    var(--lns-gold)
  );
}
.diamond-divider span {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(176, 149, 83, 0.15);
}
.menu-item:last-child { border-bottom: 0; }

.item-name {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lns-text);
  font-size: 0.95rem;
}

.item-desc {
  grid-column: 1 / 2;
  color: var(--lns-muted);
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 0.25rem;
}

.item-price {
  color: var(--lns-gold);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-align: right;
  align-self: start;
}

/* Dietary badges */
.badge-vegetarian,
.badge-vegan,
.badge-gf {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.15rem 0.45rem;
  margin-left: 0.5rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  vertical-align: middle;
}
.badge-vegetarian { color: #7fb069; }
.badge-vegan { color: #5a9b3e; }
.badge-gf { color: var(--lns-gold); }

.menu-addon {
  background: rgba(176, 149, 83, 0.08);
  border-left: 2px solid var(--lns-gold);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--lns-muted);
}
.menu-addon strong {
  color: var(--lns-gold);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
}

.menu-footer-notes {
  font-size: 0.75rem;
  color: #71717a;
  font-style: italic;
  text-align: center;
  margin-top: 3rem;
  line-height: 1.6;
}

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

  .menu-frame-card {
    min-height: 280px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .gallery-tab-labels {
    gap: 0.75rem 1.25rem;
  }

  .gallery-tab-labels label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 640px) {
  .content-padded {
    padding: 2rem 0;
  }

  .premium-frame {
    padding: 1.75rem;
  }

  .event-heading {
    letter-spacing: 0.05em;
  }

  .menu-card-title {
    letter-spacing: 0.12em;
  }
}
