/* Syndicate Lounge — Shared Components */

/* ── Back Button ── */
.back-btn {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 16px));
  left: max(16px, env(safe-area-inset-left, 16px));
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px 0 12px;
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  text-decoration: none;
  z-index: 100;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.18s ease, background 0.2s, border-color 0.2s;
}

.back-btn:hover {
  opacity: 1;
  background: rgba(18, 16, 14, 0.8);
}

.back-btn:active {
  transform: scale(0.96);
}

.back-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .back-btn {
    height: 36px;
    padding: 0 14px 0 10px;
    font-size: 13px;
  }
  .back-btn svg { width: 18px; height: 18px; }
}

/* ── Footer ── */
.site-footer {
  background: var(--color-bg-footer);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: auto;
}

.site-footer__brand {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__copy {
  font-size: var(--text-sm);
  color: var(--color-text);
  text-align: center;
}

.site-footer__social {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text);
  transition: opacity 0.2s;
}

.site-footer__social a:hover { opacity: 0.7; }

.site-footer__social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 640px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md) var(--space-sm);
  }
}

/* ── Menu Page Layout ── */
.menu-page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-page, var(--page-pad)) var(--space-xl);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.menu-page__title {
  text-align: center;
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
  word-break: break-word;
}

.menu-page__divider {
  width: 100%;
  max-width: 420px;
  height: 1px;
  background: var(--color-text);
  border: none;
  margin: 0 auto var(--space-xl);
}

/* ── Menu Section (category) ── */
.menu-section {
  margin-bottom: var(--space-xl);
}

.menu-section__title {
  text-align: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

/* Subcategory within a section (e.g., Sweet and Sour within Классика) */
.menu-subsection__title {
  text-align: center;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
  color: var(--color-text-muted);
}

.menu-section__subtitle {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* ── Menu Item Row ── */
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-xs) 0;
  gap: var(--space-sm);
}

.menu-item__name {
  font-weight: 600;
  font-size: var(--text-base);
}

.menu-item__price {
  font-weight: 700;
  font-size: var(--text-base);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-item__vol {
  font-size: 12px;
  font-weight: 400;
  color: rgba(246, 247, 248, 0.35);
  letter-spacing: 0.04em;
  margin-left: 2px;
  white-space: nowrap;
}

.menu-item__ingredients {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* Item with ingredients (stacked layout) */
.menu-item--detailed {
  flex-direction: column;
  align-items: stretch;
}

.menu-item--detailed .menu-item__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .menu-page__title {
    font-size: 28px;
    letter-spacing: 0.05em;
  }
  .menu-section__title {
    font-size: var(--text-xl);
    letter-spacing: 0.1em;
  }
  .menu-subsection__title {
    font-size: var(--text-base);
  }
  .menu-page {
    padding: var(--space-xl) var(--space-sm) var(--space-lg);
  }
  .menu-item__name {
    font-size: var(--text-sm);
  }
  .menu-item__price {
    font-size: var(--text-sm);
  }
  .menu-item__ingredients {
    font-size: var(--text-xs);
  }
}
