/* ═══════════════════════════════════════════════════════════════════════════
   CASINO RESTAURANT QR MENU — Public Stylesheet
   Theme: Luxury Dark · Gold · Deep Red
═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ────────────────────────────────────────────────────────── */
:root {
  --bg-0:       #06060c;
  --bg-1:       #0e0e1a;
  --bg-2:       #14142a;
  --bg-card:    #1b1b30;
  --bg-card-h:  #22223a;

  --gold:       #c9a84c;
  --gold-l:     #e8d08a;
  --gold-d:     #8f6c28;
  --gold-glow:  rgba(201,168,76,.18);

  --red:        #7a1414;
  --red-l:      #a82020;

  --text-1:     #f0e6d3;
  --text-2:     #b8a07a;
  --text-3:     #6e5e40;

  --border:     rgba(201,168,76,.18);
  --border-h:   rgba(201,168,76,.45);

  --radius-s:   6px;
  --radius-m:   12px;
  --radius-l:   20px;

  --shadow-card: 0 4px 24px rgba(0,0,0,.55);
  --shadow-gold: 0 0 20px rgba(201,168,76,.25);

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --nav-h:      64px;
  --transition: .25s ease;
}

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ─── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; }

.gold-text   { color: var(--gold); }
.serif       { font-family: var(--font-serif); }

/* ─── Ornament divider ─────────────────────────────────────────────────────── */
.ornament {
  display: flex; align-items: center; gap: 12px;
  color: var(--gold); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  margin: 0 auto;
}
.ornament::before,
.ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--gold-d), transparent); }

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE — Restaurant / Bar Split
═══════════════════════════════════════════════════════════════════════════ */
.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 24px 16px 40px;
}

/* Decorative background layers */
.landing__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%,   rgba(201,168,76,.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 100%,  rgba(122,20,20,.15)  0%, transparent 70%),
    linear-gradient(180deg, #06060c 0%, #0e0e1a 100%);
}

.landing__bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   transparent, transparent 39px, rgba(201,168,76,.03) 40px),
    repeating-linear-gradient(90deg,  transparent, transparent 39px, rgba(201,168,76,.03) 40px);
}

.landing__logo {
  position: relative; z-index: 1;
  text-align: center;
  margin-bottom: 12px;
}

.landing__logo-mark {
  width: 80px; height: 80px;
  margin: 0 auto 16px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 32px var(--gold-glow), inset 0 0 16px rgba(201,168,76,.05);
  position: relative;
}
.landing__logo-mark::before {
  content: '';
  position: absolute; inset: 5px;
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 50%;
}

.landing__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 6vw, 3rem);
  letter-spacing: .05em;
  color: var(--gold-l);
  text-shadow: 0 2px 24px rgba(201,168,76,.3);
}

.landing__subtitle {
  font-size: .85rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 6px;
}

.landing__divider {
  position: relative; z-index: 1;
  width: min(320px, 85%);
  margin: 28px auto;
}

.landing__prompt {
  position: relative; z-index: 1;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
}

/* Section cards */
.section-cards {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: min(480px, 100%);
}

.section-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(145deg, var(--gold-glow), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.section-card:hover, .section-card:focus-visible {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}
.section-card:hover::before { opacity: 1; }
.section-card:active { transform: translateY(0); }

.section-card__icon {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

.section-card__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-l);
  letter-spacing: .04em;
}

.section-card__desc {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Footer note */
.landing__footer {
  position: relative; z-index: 1;
  margin-top: 40px;
  text-align: center;
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--text-3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MENU PAGE
═══════════════════════════════════════════════════════════════════════════ */

/* ─── Sticky Navigation ────────────────────────────────────────────────────── */
.menu-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,6,12,.92);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex; align-items: center;
}

.menu-nav__inner {
  display: flex; align-items: center;
  width: 100%; padding: 0 16px;
  gap: 12px;
}

.menu-nav__back {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1rem;
  transition: var(--transition);
}
.menu-nav__back:hover { background: var(--gold-glow); border-color: var(--gold); }

.menu-nav__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-l);
  flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Language switcher */
.lang-switcher {
  display: flex; gap: 4px; flex-shrink: 0;
}

.lang-btn {
  padding: 4px 7px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-2);
  background: transparent;
  transition: var(--transition);
  min-width: 32px;
  text-align: center;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--gold-d);
  border-color: var(--gold);
  color: var(--gold-l);
}

/* ─── Category Tab Bar ─────────────────────────────────────────────────────── */
.cat-bar {
  position: sticky; top: var(--nav-h); z-index: 99;
  background: rgba(14,14,26,.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-bar::-webkit-scrollbar { display: none; }

.cat-bar__list {
  display: flex;
  padding: 10px 16px;
  gap: 10px;
  min-width: max-content;
}

.cat-tab {
  padding: 7px 18px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  background: transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.cat-tab:hover, .cat-tab.active {
  background: linear-gradient(135deg, var(--gold-d), var(--red));
  border-color: var(--gold);
  color: var(--gold-l);
  box-shadow: 0 2px 12px rgba(201,168,76,.2);
}

/* ─── Menu Body ────────────────────────────────────────────────────────────── */
.menu-body {
  padding: 24px 16px 80px;
  max-width: 900px;
  margin: 0 auto;
}

/* Category section */
.menu-section {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--nav-h) + 56px);
}

.menu-section__header {
  margin-bottom: 20px;
}

.menu-section__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-l);
  margin-bottom: 10px;
}

/* Items grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

@media (min-width: 480px) {
  .items-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
}

@media (min-width: 768px) {
  .items-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* Item card */
.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.item-card:hover, .item-card:focus-visible {
  border-color: var(--border-h);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.item-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.item-card__img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: var(--text-3);
}

.item-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.item-card__badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-d), var(--red));
  color: var(--gold-l);
  border-radius: 999px;
  align-self: flex-start;
}

.item-card__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-1);
  line-height: 1.3;
}

.item-card__desc {
  font-size: .78rem;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.item-card__footer {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.item-card__price {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── CSS coin icon (replaces 🪙 emoji — works on all browsers) ─────────────── */
.coin-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #f5e07a, #c9a84c 52%, #8f6c28 100%);
  border: 1.5px solid #c9a84c;
  box-shadow: 0 1px 5px rgba(0,0,0,.45), inset 0 1px 2px rgba(255,255,255,.25);
  vertical-align: middle;
  position: relative;
}
.coin-icon::after {
  content: '₾';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: rgba(100,60,10,.75);
  font-family: sans-serif;
  line-height: 1;
}

/* Larger coin in modal price */
.modal__price .coin-icon {
  width: 24px;
  height: 24px;
}
.modal__price .coin-icon::after {
  font-size: 11px;
}

/* ─── Item Detail Modal ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.open {
  opacity: 1; pointer-events: all;
}

.modal {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-top-left-radius: var(--radius-l);
  border-top-right-radius: var(--radius-l);
  width: 100%; max-width: 560px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-d) transparent;
}
.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal__drag {
  width: 40px; height: 4px;
  background: var(--border-h);
  border-radius: 2px;
  margin: 12px auto 0;
}

.modal__img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.modal__body {
  padding: 20px 20px 36px;
  color: var(--text-1);
}

.modal__badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-d), var(--red));
  color: var(--gold-l);
  border-radius: 999px;
  margin-bottom: 12px;
}

.modal__name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--gold-l);
  margin-bottom: 8px;
}

.modal__price {
  display: none;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.modal__section-title {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
  margin-top: 18px;
}

.modal__text {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* In-modal language switcher */
.modal__lang-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.modal__lang-btn {
  padding: 6px 16px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid rgba(201,168,76,.5);
  border-radius: 999px;
  color: #c9a84c;
  background: rgba(201,168,76,.08);
  transition: var(--transition);
  cursor: pointer;
}
.modal__lang-btn:hover {
  background: rgba(201,168,76,.18);
  color: var(--gold-l);
}
.modal__lang-btn.active {
  background: linear-gradient(135deg, var(--gold-d), var(--red));
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 2px 10px rgba(201,168,76,.25);
}

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 1.2rem;
  transition: var(--transition);
}
.modal__close:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ─── Empty State ──────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-3);
}
.empty-state__icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state__text { font-size: .9rem; letter-spacing: .05em; }

/* ─── Scroll to top button ─────────────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 24px; right: 20px; z-index: 150;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-d), var(--red));
  border-radius: 50%;
  color: var(--gold-l);
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  transform: translateY(8px);
}
.scroll-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }

/* ─── RTL support for Hebrew ───────────────────────────────────────────────── */
[dir="rtl"] .menu-nav__inner { flex-direction: row-reverse; }
[dir="rtl"] .cat-bar__list   { flex-direction: row-reverse; }
[dir="rtl"] .item-card__badge { align-self: flex-end; }

/* ─── Responsive tweaks ────────────────────────────────────────────────────── */
@media (max-width: 360px) {
  .section-cards { grid-template-columns: 1fr; max-width: 240px; }
  .section-card { padding: 24px 12px; }
}

@media (min-width: 600px) {
  .modal-overlay { align-items: center; }
  .modal {
    border-radius: var(--radius-l);
    max-height: 85dvh;
  }
}

/* ─── Utility animations ───────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .4s ease forwards; }

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-h) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ─── Google Fonts fallback (load via HTML link tag) ───────────────────────── */
@supports (font-variation-settings: normal) {
  body { font-synthesis: none; }
}
