/* @theme 4 · Nane — Siyah çerçeve, mint dolgu */
/* @order 4 */
/* @theme-color #FDFFFD */
/* @flow screens */
/* @fonts ubuntu, nunito */

/*
 * TEMA 4 · NANE
 * =============
 *
 * Referans: kullanıcının seçtiği Behance "Restaurant online menu | Web App
 * Design" (Bill's, 2023) — kırık beyaz zemin, 1 px siyah çerçeveler, mint
 * (#A7DBA1) dolgu, Ubuntu başlık + Nunito metin, büyük yemek fotoğrafları,
 * mint alt sekme çubuğu. Kopya değil; dilin menüye uyarlaması.
 *
 * İmza (başka temaya taşınmaz):
 *   - Her etkileşimli öğe 1 px siyah çerçeveli, 6 px yarıçaplı; seçili/ana
 *     öğe mint dolgulu (çerçeve kalır).
 *   - Marka yazısı: adın son harfi mint.
 *   - Giriş: ekran altına yapışan mint düğme; çerçeveli fotoğraf ve bilgi kutusu.
 *   - Ana menü: büyük fotoğraflı kategori kartları + kare ok düğmesi.
 *   - Kategori: ikonlu çerçeveli çipler, tam genişlik ürün kartları, "+" kare.
 *   - Alt sekme çubuğu: Ana sayfa / Menü / Dil (dil menüsü yukarı açılır).
 *
 * Görünümler: app/views/themes/bento-moduler/site/screens/*.php
 * (slug eski adıyla kaldı; müşteri kayıtları bu adı tutuyor).
 */

:root {
  --color-bg: #FDFFFD;
  --color-surface: #FFFFFF;
  --color-text: #191919;

  --color-accent: #A7DBA1;
  --color-accent-100: #EEF8ED;
  --color-accent-200: #D2EDCF;
  --color-accent-300: #BDE4B8;
  --color-accent-400: #A7DBA1;
  --color-accent-500: #A7DBA1;
  --color-accent-600: #7FC277;
  --color-accent-700: #3B7434;
  --color-accent-800: #2C5627;
  --color-accent-900: #1B3518;

  --color-divider: #E3E7E3;
  --color-neutral-100: #F6F8F6;
  --color-neutral-200: #EDF0ED;
  --color-neutral-300: #DCE0DC;
  --color-neutral-400: #BDBDBD;
  --color-neutral-500: #8C8C8C;
  --color-neutral-600: #6A6A6A;
  --color-neutral-700: #474747;
  --color-neutral-800: #2B2B2B;
  --color-neutral-900: #191919;

  --dim-panel: rgba(25, 25, 25, 0.25);
  --dim-sheet: rgba(25, 25, 25, 0.45);
  --color-hatch-a: #EEF8ED;
  --color-hatch-b: #D2EDCF;

  --font-heading: "Ubuntu", var(--font-arabic), system-ui, sans-serif;
  --font-body: "Nunito", var(--font-arabic), system-ui, sans-serif;

  --sc-gutter: 20px;
  --sc-radius: 6px;
  --sc-radius-sheet: 10px;
  --sc-radius-media: 6px;
  --sc-bar-pad: 12px;
  --sc-ease: cubic-bezier(0.25, 1, 0.5, 1);

  --n-line: 1px solid var(--color-text);
  --n-tabbar: 64px;
}

body { font-size: 15px; }

.n-ico { display: block; flex: 0 0 auto; }
[dir="rtl"] .n-flip .n-ico, [dir="rtl"] .n-flip > .n-ico { transform: scaleX(-1); }

/* Ortak parçalar */

.n-word { font-family: var(--font-heading); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-word span { color: var(--color-accent-600); }

.n-square {
  width: 40px; height: 34px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border: var(--n-line); border-radius: var(--sc-radius); background: var(--color-surface); color: var(--color-text);
  transition: background 180ms var(--sc-ease), transform 160ms var(--sc-ease);
}
.n-square .n-ico { width: 18px; height: 18px; }
.sc-back.n-square { width: 44px; height: 40px; min-width: 0; min-height: 0; margin: 0; }

.n-btn {
  width: 100%; min-height: 54px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: var(--n-line); border-radius: var(--sc-radius);
  font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--color-text);
  background: var(--color-surface);
  transition: transform 160ms var(--sc-ease), box-shadow 160ms var(--sc-ease), background 160ms var(--sc-ease);
}
.n-btnMint { background: var(--color-accent); }
.n-btn:hover { box-shadow: 3px 3px 0 var(--color-text); transform: translate(-1px, -1px); }
.n-btn:active { box-shadow: none; transform: translate(1px, 1px); }

.n-h1 { margin: 22px 0 14px; font-family: var(--font-heading); font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }

/* =========================================================================
 * 1 · Giriş
 * ========================================================================= */

.sc-intro.n-intro {
  padding: calc(16px + var(--sc-safe-top)) var(--sc-gutter) calc(18px + var(--sc-safe-bottom));
  align-items: stretch; text-align: center;
}
.n-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; text-align: start; }
.n-langs { display: flex; gap: 6px; flex: 0 1 auto; min-width: 0; max-width: 62%; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.n-langs::-webkit-scrollbar { display: none; }
.n-lang { flex: 0 0 auto; }
.n-lang {
  min-width: 40px; min-height: 36px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: var(--n-line); border-radius: var(--sc-radius);
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  transition: background 180ms var(--sc-ease);
}
.n-lang[aria-current] { background: var(--color-accent); }

.n-frame { margin: 18px 0 0; border-radius: var(--sc-radius-media); overflow: hidden; background: var(--color-neutral-200); }
.n-frame img { width: 100%; height: auto; display: block; }

.n-hello { margin-top: 26px; display: flex; flex-direction: column; align-items: center; }
.n-logo { width: 64px; height: 64px; object-fit: contain; margin-bottom: 12px; }
.n-name { margin: 0; font-family: var(--font-heading); font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.n-address { margin: 6px 0 0; font-size: 14px; color: var(--color-neutral-600); }
.n-tagline { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--color-neutral-700); text-wrap: pretty; max-width: 32ch; }

.n-box { margin: 22px 0 0; padding: 4px 16px; border: var(--n-line); border-radius: var(--sc-radius); text-align: start; background: var(--color-surface); }
.n-boxRow { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.n-boxRow + .n-boxRow { border-top: 1px solid var(--color-divider); }
.n-boxRow dt { color: var(--color-accent-700); }
.n-boxRow dd { margin: 0; font-size: 15px; line-height: 1.4; }
.n-muted { color: var(--color-neutral-600); }

.n-push { flex: 1 0 22px; }
.n-cta { position: sticky; bottom: calc(14px + var(--sc-safe-bottom)); }

@keyframes n-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.js .n-frame { animation: n-draw 800ms var(--sc-ease) both; animation-delay: 100ms; }
[dir="rtl"] .n-frame { animation-name: n-draw-rtl; }
@keyframes n-draw-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes n-bounce { 0% { transform: translateY(30px); opacity: 0; } 60% { transform: translateY(-4px); opacity: 1; } 100% { transform: none; } }
.js .n-cta { animation: n-bounce 640ms var(--sc-ease) both; animation-delay: 420ms; }

/* =========================================================================
 * Üst çubuk + çipler
 * ========================================================================= */

.sc-bar.n-bar { border-bottom: 0; background: var(--color-bg); }
.sc-barRow { gap: 12px; min-height: 44px; }
.sc-bar.sc-barCat.n-bar { padding-bottom: 12px; box-shadow: 0 1px 0 var(--color-divider); }

.sc-chips.n-chips { gap: 8px; padding: 12px var(--sc-gutter) 2px; margin: 0 calc(-1 * var(--sc-gutter)); }
.sc-chip.n-chip {
  min-height: 38px; padding: 0 12px; gap: 8px;
  border: var(--n-line); border-radius: var(--sc-radius); background: var(--color-surface);
  font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--color-text);
}
.sc-chip.n-chip::after { display: none; }
.sc-chip.n-chip.sc-chipOn { background: var(--color-accent); }
.n-chipImg { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
@keyframes n-chip { 0% { transform: scale(0.9); } 60% { transform: scale(1.05); } 100% { transform: none; } }
.js .sc-chipOn.n-chip { animation: n-chip 460ms var(--sc-ease) both; animation-delay: 140ms; }

/* =========================================================================
 * Alt sekme çubuğu
 * ========================================================================= */

.n-screen .sc-body { padding-bottom: calc(var(--n-tabbar) + 40px + var(--sc-safe-bottom)); }

.n-tabbar {
  position: fixed; z-index: 20; inset-inline: 0; bottom: 0;
  width: 100%; max-width: var(--sc-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px;
  padding: 8px 12px calc(8px + var(--sc-safe-bottom));
  background: var(--color-accent);
}
.n-tab {
  min-height: 52px; padding: 4px 6px; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid transparent; border-radius: var(--sc-radius); background: transparent; color: var(--color-text);
  font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer;
  transition: background 200ms var(--sc-ease), border-color 200ms var(--sc-ease);
}
.n-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.n-tab.n-tabOn, .n-tab[aria-expanded="true"] { background: var(--color-surface); border-color: var(--color-text); }
.n-tab:active { transform: scale(0.95); }
.sc-langBtn.n-tab { min-width: 0; height: auto; }

.n-screen .sc-langMenu {
  top: auto; bottom: calc(var(--n-tabbar) + 18px + var(--sc-safe-bottom));
  border: var(--n-line); border-radius: var(--sc-radius); box-shadow: 4px 4px 0 var(--color-text); padding: 4px;
}
.sc-langItem { border-radius: 4px; font-weight: 600; }
.sc-langItem[aria-checked="true"] { background: var(--color-accent); color: var(--color-text); }

@keyframes n-tabbar-in { from { transform: translateY(100%); } to { transform: none; } }
.js .n-tabbar { animation: n-tabbar-in 520ms var(--sc-ease) both; animation-delay: 120ms; }

/* =========================================================================
 * 2 · Ana menü
 * ========================================================================= */

.n-search {
  display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 0 14px;
  min-height: 48px; border: var(--n-line); border-radius: var(--sc-radius); background: var(--color-surface);
}
.n-search:focus-within { box-shadow: 3px 3px 0 var(--color-accent); }

.n-cats { display: grid; gap: 22px; }
.sc-cat.n-cat {
  min-height: 0; padding: 0; display: block; border: 0;
  transition: transform 160ms var(--sc-ease);
}
.sc-cat.n-cat:hover { opacity: 1; }
.sc-cat.n-cat[hidden] { display: none; }
/*
 * Kırpmasız sabit kutu: kutu 16:10, görsel `contain` ile tamamı görünür;
 * boş kalan yanları aynı görselin bulanık, büyütülmüş kopyası doldurur.
 * Kare/dik görsel listeyi ekran boyu uzatmaz.
 */
.n-blur { position: relative; isolation: isolate; aspect-ratio: 16 / 10; }
.n-blur::before {
  content: ""; position: absolute; inset: -20px; z-index: -1;
  background: var(--img) center / cover no-repeat; filter: blur(18px) saturate(1.1); opacity: 0.55;
}
.n-blur > img { width: 100%; height: 100%; object-fit: contain; }

.n-catMedia { display: block; border-radius: var(--sc-radius-media); overflow: hidden; background: var(--color-neutral-200); }
.n-catMedia img { display: block; transition: transform 500ms var(--sc-ease); }
.n-cat:hover .n-catMedia img { transform: scale(1.04); }
.n-catFoot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.n-catText { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.n-catName { font-family: var(--font-heading); font-size: 19px; font-weight: 700; line-height: 1.25; }
.n-catCount { font-size: 13px; color: var(--color-neutral-600); }
.n-cat:hover .n-square, .n-dish:hover .n-square { background: var(--color-accent); }
.sc-cat.n-cat:active { transform: scale(0.985); opacity: 1; }
[dir="rtl"] .sc-cat.n-cat:active { transform: scale(0.985); }
.js .sc-cat.n-cat { animation: sc-rise 460ms var(--sc-ease) both; animation-delay: calc(60ms + var(--i, 0) * 60ms); }

/* =========================================================================
 * 3 · Kategori — tam genişlik kartlar
 * ========================================================================= */

.sc-body .sc-rows { display: grid; gap: 26px; }
.sc-row.n-dish {
  padding: 0; border: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0;
}
.sc-row.n-dish:hover { opacity: 1; }
.sc-row.n-dish:active { transform: scale(0.985); opacity: 1; }
[dir="rtl"] .sc-row.n-dish:active { transform: scale(0.985); }

.n-dishMedia { position: relative; display: block; border-radius: var(--sc-radius-media); overflow: hidden; background: var(--color-neutral-200); margin-bottom: 12px; }
.n-dishMedia .sc-rowMedia { display: block; transition: transform 500ms var(--sc-ease); }
.n-dish:hover .sc-rowMedia { transform: scale(1.04); }
.n-dish .sc-rowTag {
  display: inline-block; margin: 0; padding: 4px 9px;
  border: var(--n-line); border-radius: var(--sc-radius); background: var(--color-accent);
  font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--color-text);
}
.n-dishMedia .sc-rowTag { position: absolute; top: 10px; inset-inline-start: 10px; }
.n-tagFlat { align-self: flex-start; margin-bottom: 8px !important; }
.sc-rowSoldOut .sc-rowTag { background: var(--color-surface); }
.sc-rowSoldOut .n-dishMedia { filter: grayscale(1); opacity: 0.6; }

.n-dish .sc-rowName { display: block; font-size: 18px; font-weight: 700; line-height: 1.25; }
.n-dish .sc-rowDesc {
  margin-top: 4px; font-family: var(--font-body); font-style: normal; font-size: 15px; line-height: 1.5;
  -webkit-line-clamp: 3; color: var(--color-neutral-600);
}
.n-dishFoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.n-dish .sc-rowPrice { font-family: var(--font-body); font-size: 17px; font-weight: 800; }
.n-dish .sc-rowMeta { display: block; margin: 2px 0 0; font-size: 12px; letter-spacing: 0; }
.js .sc-row.n-dish { animation: sc-rise 460ms var(--sc-ease) both; animation-delay: calc(60ms + var(--i, 0) * 55ms); }

.sc-note { padding: 10px 12px; border: 1px dashed var(--color-text); border-radius: var(--sc-radius); color: var(--color-text); }

/* =========================================================================
 * 4 · Ürün detayı — çerçeveli kart gibi
 * ========================================================================= */

.sc-sheet { border: var(--n-line); border-bottom: 0; background: var(--color-surface); }
.sc-sheetHandleBar { width: 40px; height: 4px; border-radius: 4px; background: var(--color-text); }
.sc-sheetMedia { border-radius: var(--sc-radius-media); }
.sc-sheetMediaEmpty { height: 100px; aspect-ratio: auto; }
.sc-sheetTag {
  display: inline-block; margin-top: 16px; padding: 4px 9px; border: var(--n-line); border-radius: var(--sc-radius);
  background: var(--color-accent); color: var(--color-text); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: none;
}
.sc-sheetHead { display: block; margin-top: 16px; }
.sc-sheetTitle { font-size: 24px; font-weight: 700; }
.sc-sheetPriceLine { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.sc-sheetPrice { font-family: var(--font-body); font-size: 20px; font-weight: 800; }
.sc-sheetMeta { margin: 0; font-size: 13px; letter-spacing: 0; }
.sc-sheetRule { background: var(--color-divider); }
.sc-sheetDesc { font-family: var(--font-body); font-style: normal; font-size: 16px; line-height: 1.6; color: var(--color-neutral-700); }
.sc-sheetLabel { font-family: var(--font-heading); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--color-text); }
.sc-portion { border: var(--n-line); min-height: 50px; align-items: center; font-weight: 700; }
.sc-portionOn { background: var(--color-accent); color: var(--color-text); border-color: var(--color-text); }
.sc-portionPrice { opacity: 1; }
.sc-allergens { gap: 8px; }
.sc-allergen { padding: 5px 10px; border: var(--n-line); border-radius: var(--sc-radius); font-size: 14px; align-items: center; }
.sc-allergenLetter { color: var(--color-accent-700); font-weight: 800; }
.sc-sheetClose {
  min-height: 52px; border: var(--n-line); background: var(--color-accent); color: var(--color-text);
  font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none;
}

@keyframes n-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.sc-sheet { animation: n-sheet-in 400ms var(--sc-ease); }

@media (min-width: 521px) {
  html, body { background: var(--color-neutral-100); }
  .sc-screen, .sc-intro { background: var(--color-bg); box-shadow: 0 0 0 1px var(--color-divider); }
}

/* Filtre / favori (ortak screens.js) — siyah çerçeve + mint */
.sc-filter { border: var(--n-line); border-radius: var(--sc-radius); color: var(--color-text); font-weight: 700; }
.sc-filter[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-text); color: var(--color-text); }
.sc-action { border: var(--n-line); border-radius: var(--sc-radius); }
.sc-fav[aria-pressed="true"] { background: var(--color-accent); color: var(--color-text); border-color: var(--color-text); }
.sc-favItem { border: var(--n-line); border-radius: var(--sc-radius); }

/* Dokununca kart siyah sert gölgeye "basılır". */
.n-dishMedia, .n-catMedia { transition: box-shadow 160ms var(--sc-ease), transform 160ms var(--sc-ease); }
.n-dish:active .n-dishMedia, .n-cat:active .n-catMedia { box-shadow: 5px 5px 0 var(--color-text); transform: translate(-2px, -2px); }
