/* ═══════════════════════════════════════════════
   QR Menü Pro — Müşteri Menüsü CSS
   Lüks Fine-Dining Tasarımı
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  --gold:      #D4AF37;
  --gold2:     #F0CF60;
  --gold3:     #B89020;
  --dark:      #0C0A06;
  --dark2:     #141208;
  --dark3:     #1C1810;
  --dark4:     #241E14;
  --cream:     #F5EDD8;
  --cream2:    #EDE0C4;
  --brown:     #6B5A3E;
  --text:      #F0E8D0;
  --text2:     #C8B896;
  --text3:     #8A7660;
  --border:    rgba(212,175,55,.15);
  --border2:   rgba(212,175,55,.25);
  --glass:     rgba(20,18,8,.85);
  --radius:    18px;
  --radius-sm: 10px;
  --shadow:    0 8px 32px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 80px rgba(0,0,0,.8);
  --transition:.3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark) linear-gradient(180deg, var(--dark2) 0%, var(--dark) 100%) no-repeat fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--gold3); border-radius: 99px; }

/* ═══════════════════════
   HERO / HEADER
═══════════════════════ */
.hero {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--dark2);
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .45;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(12,10,6,.95) 0%, transparent 100%),
    radial-gradient(ellipse 100% 80% at 50% 0%,  rgba(12,10,6,.4)  0%, transparent 80%);
}
/* Dekoratif altın çizgiler */
.hero-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 60px,
      rgba(212,175,55,.03) 60px,
      rgba(212,175,55,.03) 61px
    );
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 20px 36px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.hero-logo {
  width: 80px; height: 80px;
  border-radius: 20px;
  object-fit: contain;
  margin: 0 auto 16px;
  background: var(--glass);
  border: 1px solid var(--border2);
  backdrop-filter: blur(10px);
  padding: 8px;
}
.hero-logo-placeholder {
  width: 80px; height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold3), var(--gold)) ;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 32px rgba(212,175,55,.3);
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
}
.hero-name span {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-slogan {
  font-size: .95rem;
  color: var(--text2);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-style: italic;
}

/* Dekoratif çizgi */
.hero-divider {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 16px auto;
  width: 200px;
}
.hero-divider::before, .hero-divider::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-divider::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero-divider span { color: var(--gold); font-size: .8rem; }

/* Table chip */
.table-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--glass);
  border: 1px solid var(--border2);
  backdrop-filter: blur(12px);
  padding: 7px 16px;
  border-radius: 99px;
  font-size: .82rem;
  color: var(--text2);
  letter-spacing: .04em;
}
.table-chip strong { color: var(--gold); }

/* ═══════════════════════
   STICKY CATEGORY NAV
═══════════════════════ */
.cat-nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, var(--dark2) 90%, transparent);
  padding: 16px 0 0;
  margin-bottom: -4px;
}

.cat-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-btn {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--dark3), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  color: var(--text3);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.cat-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold3), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}
.cat-btn .cat-icon { font-size: 1.2rem; position: relative; z-index: 1; }
.cat-btn .cat-label { position: relative; z-index: 1; }

.cat-btn:hover {
  border-color: var(--border2);
  color: var(--text);
  transform: translateY(-2px);
}
.cat-btn.active {
  border-color: var(--gold);
  color: #000;
  font-weight: 600;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212,175,55,.3);
}
.cat-btn.active::before { opacity: 1; }
.cat-btn.active .cat-icon, .cat-btn.active .cat-label { filter: brightness(0); }

/* ═══════════════════════
   MENU CONTENT
═══════════════════════ */
.menu-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 100px;
}

.menu-section { margin-bottom: 48px; }
.section-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.section-header::after {
  content: '';
  position: absolute; bottom: -1px; left: 0;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-icon { font-size: 1.6rem; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
}
.section-count {
  margin-left: auto;
  font-size: .78rem;
  color: var(--text3);
  background: var(--dark3);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 99px;
}

/* ── Product Grid ── */
.products-grid {
  display: grid;
  gap: 14px;
}

.product-card {
  background: linear-gradient(145deg, var(--dark3), var(--dark2));
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.product-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
}
.product-card.featured {
  border-color: rgba(212,175,55,.35);
  background: linear-gradient(135deg, var(--dark3), rgba(212,175,55,.05));
}
.product-card.featured::before {
  display: none;
}

/* Card Body */
.product-body {
  flex: 1;
  padding: 16px 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
}
.product-desc {
  font-size: .82rem;
  color: var(--text2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.product-badge {
  font-size: .68rem; font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.product-detail {
  font-size: .72rem;
  color: var(--text3);
  display: flex; align-items: center; gap: 4px;
}

/* Price */
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}
.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}
.product-old-price {
  font-size: .78rem;
  color: var(--text3);
  text-decoration: line-through;
  margin-right: 2px;
}

/* Card Image */
.product-image-wrap {
  width: 110px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.product-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-image-wrap img { transform: scale(1.08); }
.product-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--dark4), var(--dark3));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

/* ═══════════════════════
   PRODUCT MODAL
═══════════════════════ */
.product-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: flex-end;
  padding: 0;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
@media (min-width: 600px) {
  .product-modal-overlay { align-items: center; padding: 20px; }
}
.product-modal-overlay.open { opacity: 1; pointer-events: all; }

.product-modal {
  background: linear-gradient(180deg, var(--dark3), var(--dark2));
  border: 1px solid var(--border2);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
@media (min-width: 600px) {
  .product-modal {
    max-width: 560px;
    border-radius: var(--radius);
    transform: translateY(30px) scale(.96);
    margin: 0 auto;
  }
}
.product-modal-overlay.open .product-modal { transform: none; }

.modal-product-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.modal-no-img {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, var(--dark4), var(--dark2));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}

.modal-body {
  padding: 24px 22px;
}
.modal-close-btn {
  position: sticky; top: 0;
  display: flex; justify-content: flex-end;
  padding: 12px 16px;
  background: linear-gradient(180deg, var(--dark3) 70%, transparent);
  margin-bottom: -40px;
  z-index: 5;
}
.modal-close-btn button {
  width: 36px; height: 36px;
  background: rgba(0,0,0,.6);
  border: 1px solid var(--border2);
  border-radius: 50%;
  color: var(--text);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  transition: background var(--transition);
}
.modal-close-btn button:hover { background: rgba(212,175,55,.2); }

.modal-product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
  line-height: 1.2;
}
.modal-product-desc {
  color: var(--text2);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Modal details row */
.modal-details {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.modal-detail-chip {
  display: flex; align-items: center; gap: 5px;
  background: var(--dark4);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: .78rem;
  color: var(--text2);
}

.modal-allergens {
  background: rgba(212,175,55,.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.modal-allergens-title { font-size: .72rem; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.modal-allergens-list { font-size: .82rem; color: var(--text2); }

.modal-price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.modal-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
}
.modal-price-old {
  font-size: .9rem; color: var(--text3);
  text-decoration: line-through; margin-right: 6px;
}

/* ═══════════════════════
   SEARCH BAR
═══════════════════════ */
.search-bar {
  padding: 16px 16px 0;
  max-width: 800px;
  margin: 0 auto;
}
.search-input-wrapper {
  position: relative;
}
.search-input-wrapper input {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 16px 13px 44px;
  border-radius: 14px;
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input-wrapper input::placeholder { color: var(--text3); }
.search-input-wrapper input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.1);
}
.search-icon-el {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text3); font-size: 1.1rem; pointer-events: none;
}
.search-clear {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text3); background: none; border: none;
  font-size: 1rem; cursor: pointer; padding: 4px;
  display: none;
}
.search-clear.visible { display: block; }

/* ═══════════════════════
   MENU TABS (Menü Seçici)
═══════════════════════ */
.menu-tabs {
  display: flex; gap: 6px;
  overflow-x: auto;
  padding: 16px 16px 0;
  max-width: 800px;
  margin: 0 auto;
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--dark3), rgba(255,255,255,0.02));
  color: var(--text3);
  font-size: .85rem; font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}
.menu-tab:hover { border-color: var(--border2); color: var(--text); }
.menu-tab.active {
  background: linear-gradient(135deg, var(--gold3), var(--gold));
  border-color: var(--gold);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212,175,55,.25);
}

/* ═══════════════════════
   INFO FOOTER BAR
═══════════════════════ */
.info-bar {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 16px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.info-chip {
  display: flex; align-items: center; gap: 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: 'Inter', sans-serif;
  color: var(--text2);
  flex: 1; min-width: 200px;
  transition: all var(--transition);
}
.info-chip:hover {
  background: rgba(255,255,255,0.02);
  border-color: rgba(212,175,55,0.2);
}
.info-chip .info-icon { font-size: 1.4rem; color: var(--gold); display:flex; align-items:center; opacity:0.9; }
.info-chip .info-content { flex: 1; min-width: 0; display:flex; flex-direction:column; gap:4px; }
.info-chip .info-label { font-size: .75rem; color: var(--text3); text-transform: none; letter-spacing: 0; font-weight: 400; display:block; }
.info-chip .info-value { font-weight: 500; color: var(--text); font-family: 'Inter', sans-serif; font-size: .95rem; letter-spacing: 0; }

/* ═══════════════════════
   FOOTER
═══════════════════════ */
.site-footer {
  text-align: center;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--border);
  background: var(--dark2);
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.footer-text { font-size: .78rem; color: var(--text3); margin-bottom: 14px; }
.footer-social { display: flex; justify-content: center; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--dark3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.social-btn:hover {
  border-color: var(--gold);
  background: rgba(212,175,55,.1);
  transform: translateY(-2px);
}
.footer-credit { margin-top: 20px; font-size: .7rem; color: var(--text3); }

/* ═══════════════════════
   EMPTY / LOADING STATES
═══════════════════════ */
.empty-menu {
  text-align: center;
  padding: 80px 20px;
  color: var(--text3);
}
.empty-menu .icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-menu h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--text2); margin-bottom: 8px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%  { background-position: -400px 0; }
  100%{ background-position:  400px 0; }
}

.fade-in { animation: fadeUp .4s ease both; }

/* Staggered product cards */
.product-card { animation: fadeUp .4s ease both; }
.product-card:nth-child(2) { animation-delay: .05s; }
.product-card:nth-child(3) { animation-delay: .10s; }
.product-card:nth-child(4) { animation-delay: .15s; }
.product-card:nth-child(5) { animation-delay: .20s; }
.product-card:nth-child(n+6) { animation-delay: .25s; }

/* Search highlight */
.highlight { background: rgba(212,175,55,.25); border-radius: 3px; padding: 0 2px; }

/* ── Responsive ── */
@media(max-width: 480px) {
  .hero { min-height: 280px; }
  .hero-name { font-size: 1.8rem; }
  .product-image-wrap { width: 90px; }
  .product-name { font-size: .95rem; }
  .products-grid { gap: 10px; }
}

@media(min-width: 640px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-card { flex-direction: column; }
  .product-image-wrap { width: 100%; height: 180px; }
  .product-body { padding: 16px; }
}

@media(min-width: 900px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* PWA safe area */
@supports(padding-bottom: env(safe-area-inset-bottom)) {
  .menu-wrap { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
