/*!
 * front.css
 * Version: 1.2.0 (2025-11-15)
 * - Çift görselli menü fotoğraflarına fade + zoom geçiş animasyonu eklendi (show-alt).
 * - Back to top butonuna liquid glass görünümü + scroll tabanlı görünürlük sınıfı (is-visible) eklendi.
 */

/* ===========================
   SIMPLE MENU GRID – CORE UI (STABLE)
   Tema’dan olabildiğince bağımsız
   =========================== */

/* Temel sarmalayıcı */
.smgp-menu-wrapper {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #111827;
  --radius: 14px;

  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin-top: 10px; /* üst boşluk */
}

/* Tema ne yaparsa yapsın, içeride kontrol bizde olsun */
.smgp-menu-wrapper,
.smgp-menu-wrapper * {
  box-sizing: border-box;
}

/* Genel img davranışı */
.smgp-menu-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

/* ANA BLOK: Genişlik ve yan boşluklar */
.smgp-menu {
  max-width: 100%;
  margin: 0 auto;
  padding: 0px 0 0px; /* sol–sağ padding = 0; container boşluğunu tema veriyor */
}

/* Kategori başlığı */
.menu-category {
  display: block;
  margin: 26px auto 16px;
  padding: 10px 16px;

  max-width: 1100px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111827;
}

/* Güvenlik – temanın H2/H3 etkilerini sıfırla */
.smgp-menu h2.menu-category,
.smgp-menu h3.menu-title {
  all: unset;
  display: block;
}

/* Ürün grubu */
.menu-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Satır – SOL yazı / SAĞ görsel */
.menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
  align-items: center; /* yazı + fotoğraf dikeyde ortalı */
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Metin tarafı */
.menu-text {
  display: grid;
  gap: 6px;
}

.menu-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.menu-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.35;
}

.menu-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}

/* Görsel tarafı – HER ZAMAN KARE */
.menu-photo {
  width: 190px;
  max-width: 190px;
  aspect-ratio: 1 / 1;  /* kare oran */
  height: auto;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.menu-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* içeriği kırparak kare doldur */
}

/* Sadece çift görsellere el ikonu */
.menu-photo[data-has-alt="1"] {
  cursor: pointer;
}
.menu-photo[data-has-alt="0"] {
  cursor: default;
}

/* ===========================
   BACK TO TOP – LIQUID GLASS
   =========================== */

.smgp-back-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 40;

  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;

  /* iOS tarzı glassmorphism */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.70),
    rgba(255, 255, 255, 0.20)
  );
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);

  color: #111827;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.26);

  /* Başlangıçta gizli; JS .is-visible ekleyince açılacak */
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.smgp-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.smgp-back-top:hover {
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.35);
  transform: translateY(-1px) scale(1.04);
}

/* ===============================
   RESPONSIVE (mobil uyumlu)
   Fotoğraf alta düşmesin + kare kalsın
   =============================== */
@media (max-width: 768px) {
  .smgp-menu {
    padding: 5px 0 5px; /* yanlardan ekstra padding yok */
  }

  /* Yazı + fotoğraf yine yan yana, ama foto daha küçük */
  .menu-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 120px);
    gap: 10px;
    align-items: center; /* dikey hizalama */
  }

  /* Mobilde kare ve küçük kalsın, taşmasın */
  .menu-photo {
    width: 28vw;         /* ekranın ~%28’i kadar */
    max-width: 120px;    /* üst limit */
    aspect-ratio: 1 / 1;
    height: auto;
    justify-self: end;   /* satırın sağında temiz dursun */
  }

  .menu-title {
    font-size: 0.95rem;
  }

  .menu-desc {
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .menu-price {
    font-size: 0.9rem;
  }

  .menu-category {
    margin-top: 20px;
    margin-bottom: 12px;
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* Category header style */
.smgp-menu-wrapper .menu-category {
  display: block;
  margin: 10px auto 12px;     /* Üstten boşluk + alttan az boşluk */
  padding: 10px 14px;
  max-width: 600px;           /* Mobilde çok geniş olmasın */
  border: 1px solid #e5e7eb;
  border-radius: 999px;       /* Hafif pill / buton görünümü */
  background: #f9fafb;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #111827;
}

/* Kategorinin üstündeki ilk satırı biraz daha yaklaştırmak istersen */
.smgp-menu-wrapper .menu-group {
  margin-top: 8px;
}

/* ============================
   Çift görsel toggle (JS: show-alt)
   Fade + Zoom geçiş animasyonu
   ============================ */

/* Varsayılan: 1. görsel görünür, 2. görsel arkada */
.smgp-menu-wrapper .menu-photo {
  position: relative;
}

/* Her iki görsel de block, 2. görsel inline display:none'ı ezmek için !important
   + opacity ve transform birlikte animasyonlu (fade + zoom) */
.smgp-menu-wrapper .menu-photo img.img-1,
.smgp-menu-wrapper .menu-photo img.img-2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block !important;
  transition: opacity 0.85s ease, transform 0.85s ease;
  transform-origin: center center;
}

/* Başlangıç halleri */
.smgp-menu-wrapper .menu-photo img.img-1 {
  transform: scale(1);
}

/* 2. görsel üstte dursun, başlangıçta şeffaf + hafif zoom’lu */
.smgp-menu-wrapper .menu-photo img.img-2 {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
}

/* show-alt olduğunda 2. görseli göster, 1.’i sakla
   1. görsel hafif geri çekilerek kaybolur, 2. görsel zoom-out ile gelir */
.smgp-menu-wrapper .menu-photo.show-alt img.img-1 {
  opacity: 0;
  transform: scale(0.96);
}

.smgp-menu-wrapper .menu-photo.show-alt img.img-2 {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   FEATURED BADGE (Liquid Glass Pill)
   ============================================ */

.smgp-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;

  padding: 3px 10px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .01em;

  border-radius: 999px;
  white-space: nowrap;

  backdrop-filter: blur(9px);
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.55),
    rgba(230,240,255,0.28)
  );
  border: 1px solid rgba(255,255,255,0.80);
  box-shadow:
    0 2px 6px rgba(15,23,42,0.16),
    inset 0 0 10px rgba(255,255,255,0.35);

  color: #0f172a; /* koyu slate */
}

.smgp-featured-badge-text {
  position: relative;
  top: -0.5px; /* emoji ile yazıyı hizalamak için mini tweak */
}



