/* @theme 3 · Zeytin — Sade beyaz, zeytin yeşili */
/* @order 3 */
/* @theme-color #F8F8F8 */
/* @flow screens */
/* @fonts manrope */

/*
 * TEMA 3 · ZEYTİN
 * ===============
 *
 * Referans: kullanıcının seçtiği Behance "QR Menu Service App by Limy
 * Technologies" (Vogue Cafe) — beyaza yakın gri zemin, siyah metin, tek
 * vurgu zeytin yeşili (#6B7F0B), Manrope. Kopya değil; dilin menüye uyarlaması.
 *
 * İmza (başka temaya taşınmaz):
 *   - Giriş: logo plakası + "TR ▾" dil kutusu, kenardan kenara fotoğraf
 *     üstünde büyük harfli ad, "— MENÜ —" ayıracı, bilgi kutuları, çerçeveli
 *     büyük harfli liste düğmesi.
 *   - Ana menü: görselsiz; her kategori çerçeveli, büyük harfli bir düğme.
 *   - Kategori: büyük harfli sekme şeridi (zeytin alt çizgi), satırlarda
 *     metin solda / küçük görsel sağda, terazi ikonlu künye.
 *   - Detay: görsel panelin kenarlarına dayanır, sağ üstte zeytin yuvarlak ✕.
 *
 * Görünümler: app/views/themes/karanlik-atmosfer/site/screens/*.php
 * (slug eski adıyla kaldı; müşteri kayıtları bu adı tutuyor).
 */

:root {
  --color-bg: #F8F8F8;
  --color-surface: #FFFFFF;
  --color-text: #0E0F0F;

  --color-accent: #6B7F0B;
  --color-accent-100: #F1F4E4;
  --color-accent-200: #DDE5BF;
  --color-accent-300: #BFCD86;
  --color-accent-400: #93A63D;
  --color-accent-500: #6B7F0B;
  --color-accent-600: #5A6B09;
  --color-accent-700: #4C5A08;
  --color-accent-800: #374106;
  --color-accent-900: #232A04;

  --color-divider: #DEDEDE;
  --color-neutral-100: #F8F8F8;
  --color-neutral-200: #EFEFEF;
  --color-neutral-300: #DEDEDE;
  --color-neutral-400: #BDBDBD;
  --color-neutral-500: #9A9A9A;
  --color-neutral-600: #6B6B6B;
  --color-neutral-700: #474747;
  --color-neutral-800: #2A2A2A;
  --color-neutral-900: #0E0F0F;

  --dim-panel: rgba(14, 15, 15, 0.28);
  --dim-sheet: rgba(14, 15, 15, 0.5);
  --color-hatch-a: #EFEFEF;
  --color-hatch-b: #E4E4E4;

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

  --sc-gutter: 20px;
  --sc-radius: 10px;
  --sc-radius-sheet: 18px;
  --sc-radius-media: 8px;
  --sc-bar-pad: 12px;
  --sc-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body { font-size: 15px; }

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

/* Ortak parçalar */

.z-plate {
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 10px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-surface); border: 1px solid var(--color-divider);
  font-weight: 800; font-size: 22px; color: var(--color-bg);
}
.z-plate:has(> span) { background: var(--color-accent); border-color: var(--color-accent); }
.z-plate img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.z-plateSm { width: 42px; height: 42px; border-radius: 8px; font-size: 18px; }

.sc-langBtn {
  min-width: 0; min-height: 44px; margin: 0; padding: 0 12px 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--color-divider); border-radius: 8px;
  background: var(--color-surface); color: var(--color-text);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}
.sc-langBtn::after {
  content: ""; width: 7px; height: 7px; margin-top: -4px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform 200ms var(--sc-ease), margin 200ms var(--sc-ease);
}
.sc-langBtn[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 3px; }
.sc-langBtn[aria-expanded="true"] { border-color: var(--color-text); }

.sc-langMenu { border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px -18px var(--color-text); }
.sc-langItem { border-radius: 8px; min-height: 46px; font-size: 14px; font-weight: 500; }
.sc-langItem[aria-checked="true"] { color: var(--color-accent-700); background: var(--color-accent-100); font-weight: 700; }

.z-divider {
  display: flex; align-items: center; gap: 14px; margin: 26px 0 16px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-neutral-600);
}
.z-divider::before, .z-divider::after { content: ""; flex: 1; height: 1px; background: var(--color-divider); }

.z-notice {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
  min-height: 50px; padding: 10px 14px 10px 10px;
  border: 1px solid var(--color-divider); border-radius: var(--sc-radius);
  background: var(--color-surface); font-size: 14px; line-height: 1.4; text-align: start;
}
[dir="rtl"] .z-notice { padding: 10px 10px 10px 14px; }
.z-notice b { font-weight: 700; }
.z-noticeIcon {
  width: 32px; height: 32px; flex: 0 0 auto; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-100); color: var(--color-accent);
}

/* Büyük harfli çerçeveli liste düğmesi — temanın ana dokunma öğesi */
.z-btn, .sc-cat.z-item {
  width: 100%; min-height: 64px; margin-top: 10px; padding: 0 18px 0 22px;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--color-divider); border-radius: var(--sc-radius);
  background: var(--color-surface); color: var(--color-text);
  font-size: 16px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; text-align: start;
  transition: border-color 180ms var(--sc-ease), transform 160ms var(--sc-ease), background 180ms var(--sc-ease);
}
[dir="rtl"] .z-btn, [dir="rtl"] .sc-cat.z-item { padding: 0 22px 0 18px; }
.z-btn > :first-child, .z-itemName { flex: 1; min-width: 0; }
.z-btn .z-ico, .z-item .z-ico { transition: transform 220ms var(--sc-ease); }
.z-btn:hover, .sc-cat.z-item:hover { opacity: 1; border-color: var(--color-text); }
.z-btn:hover .z-ico, .z-item:hover .z-ico { transform: translateX(3px); }
[dir="rtl"] .z-btn:hover .z-ico, [dir="rtl"] .z-item:hover .z-ico { transform: scaleX(-1) translateX(3px); }
.z-btn:active, .sc-cat.z-item:active { transform: scale(0.985); opacity: 1; background: var(--color-accent-100); border-color: var(--color-accent); }

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

.sc-intro.z-intro { padding: 0 0 calc(28px + var(--sc-safe-bottom)); align-items: stretch; text-align: start; }

.z-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + var(--sc-safe-top)) var(--sc-gutter) 14px;
}
.z-top .sc-langMenu { top: calc(var(--sc-safe-top) + 72px); }

.z-hero { position: relative; overflow: hidden; background: var(--color-neutral-800); }
.z-heroImg { width: 100%; height: auto; display: block; }
.z-heroEmpty { min-height: 200px; background: var(--color-accent-800); }
.z-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--color-text) 55%, transparent));
}
.z-heroTitle {
  position: absolute; z-index: 1; inset-inline: var(--sc-gutter); bottom: 18px;
  color: var(--color-surface); text-align: center;
  font-size: 20px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  text-shadow: 0 2px 14px color-mix(in srgb, var(--color-text) 50%, transparent);
}

.z-pad { padding: 0 var(--sc-gutter); }
.z-name { margin: 22px 0 0; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.z-sub { margin: 4px 0 0; font-size: 14px; color: var(--color-neutral-600); }
.z-tagline { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--color-neutral-700); }
.z-intro .z-btn { margin-top: 16px; background: var(--color-accent); color: var(--color-surface); border-color: var(--color-accent); }
.z-intro .z-btn:hover { border-color: var(--color-accent-700); background: var(--color-accent-600); }

@keyframes z-zoom { from { transform: scale(1.08); } to { transform: none; } }
@keyframes z-letter { from { letter-spacing: 0.4em; opacity: 0; } to { letter-spacing: 0.14em; opacity: 1; } }
.js .z-heroImg { animation: z-zoom 1400ms var(--sc-ease) both; }
.js .z-heroTitle { animation: z-letter 900ms var(--sc-ease) both; animation-delay: 200ms; }
.js .z-pad > * { animation: sc-rise 460ms var(--sc-ease) both; animation-delay: calc(220ms + var(--i, 0) * 55ms); }
.z-pad > :nth-child(2) { --i: 1; } .z-pad > :nth-child(3) { --i: 2; } .z-pad > :nth-child(4) { --i: 3; }
.z-pad > :nth-child(5) { --i: 4; } .z-pad > :nth-child(6) { --i: 5; } .z-pad > :nth-child(n+7) { --i: 6; }
@keyframes z-line { from { transform: scaleX(0); } to { transform: none; } }
.js .z-divider::before, .js .z-divider::after { animation: z-line 700ms var(--sc-ease) both; animation-delay: 300ms; }
.js .z-divider::before { transform-origin: right; } .js .z-divider::after { transform-origin: left; }

/* =========================================================================
 * Üst çubuk
 * ========================================================================= */

.sc-bar.z-bar { background: var(--color-surface); border-bottom: 1px solid var(--color-divider); }
.sc-barRow { gap: 12px; }
.sc-barTitle.z-barTitle {
  text-align: start; padding: 0; font-size: 17px; font-weight: 700;
  -webkit-line-clamp: 1;
}
.sc-barCat .sc-barRow .sc-barTitle.z-barTitle { font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }

.z-square {
  width: 44px; height: 44px; min-width: 44px; margin: 0 !important; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-divider); background: var(--color-surface);
}

.sc-chips.z-tabs { gap: 22px; padding: 6px var(--sc-gutter) 0; margin: 0 calc(-1 * var(--sc-gutter)); }
.sc-chip.z-tab {
  min-height: 46px; padding: 0 0 4px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--color-neutral-500);
}
.sc-chip.z-tab::after { height: 2px; background: var(--color-accent); }
.sc-chip.z-tab.sc-chipOn { color: var(--color-text); }

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

.z-search {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 0 14px;
  min-height: 50px; border: 1px solid var(--color-divider); border-radius: var(--sc-radius);
  background: var(--color-surface);
  transition: border-color 180ms var(--sc-ease);
}
.z-search:focus-within { border-color: var(--color-text); }
.z-search .z-ico { color: var(--color-neutral-500); }

.z-list { padding-top: 2px; }
.z-itemCount {
  min-width: 28px; height: 24px; padding: 0 8px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-neutral-200); color: var(--color-neutral-600);
  font-size: 12px; font-weight: 600; letter-spacing: 0;
}
.sc-cat.z-item[hidden] { display: none; }
.js .sc-cat.z-item { animation: sc-rise 420ms var(--sc-ease) both; animation-delay: calc(80ms + var(--i, 0) * 45ms); }

/* =========================================================================
 * 3 · Kategori
 * ========================================================================= */

.z-section { margin: 24px 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.sc-note { margin: 6px 0 4px; }

.sc-row.z-row {
  padding: 18px 0; gap: 16px; align-items: flex-start;
  border-bottom: 1px solid var(--color-divider);
}
.sc-row.z-row:hover { opacity: 1; }
.sc-row.z-row:active { transform: none; opacity: 1; background: var(--color-accent-100); }
[dir="rtl"] .sc-row.z-row:active { transform: none; }
.z-row .sc-rowTag {
  display: inline-block; margin-bottom: 8px; padding: 3px 8px;
  border: 1px solid var(--color-accent-300); border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: none; color: var(--color-accent-700);
}
.z-row .sc-rowName { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.z-row .sc-rowPrice { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--color-text); }
.z-row .sc-rowDesc {
  margin-top: 8px; font-family: var(--font-body); font-style: normal; font-size: 13px; line-height: 1.5;
  -webkit-line-clamp: 3; color: var(--color-neutral-600);
}
.z-row .sc-rowMeta { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; letter-spacing: 0; }
.z-row .sc-rowMeta .z-ico { width: 15px; height: 15px; }

.z-rowMedia {
  width: 124px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  border-radius: var(--sc-radius-media); overflow: hidden; background: var(--color-neutral-200);
}
.z-rowMedia .sc-rowMedia { display: block; width: auto; max-width: 100%; height: auto; max-height: 150px; transition: transform 400ms var(--sc-ease); }
.sc-row.z-row:hover .sc-rowMedia { transform: scale(1.05); }
.sc-rowSoldOut .z-rowMedia { filter: grayscale(1); opacity: 0.55; }
.js .sc-row.z-row { animation: sc-rise 420ms var(--sc-ease) both; animation-delay: calc(60ms + var(--i, 0) * 45ms); }

/* =========================================================================
 * 4 · Ürün detayı — görsel kenarlara dayalı, zeytin ✕
 * ========================================================================= */

.sc-sheet { background: var(--color-surface); overflow: hidden; }
.sc-sheetHandle {
  position: absolute; z-index: 3; top: 14px; inset-inline-end: 14px;
  width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%;
  align-items: center; background: var(--color-accent); color: var(--color-surface);
  box-shadow: 0 6px 16px -6px var(--color-accent-900);
  transition: transform 160ms var(--sc-ease);
}
.sc-sheetHandle:active { transform: scale(0.9); }
.sc-sheetHandleBar { display: none; }
.sc-sheetHandle::before { content: "\2715"; font-size: 15px; line-height: 1; }

.sc-sheetScroll { padding-top: 0; }
.sc-sheetScroll > .sc-sheetInfo:first-child { padding-top: 48px; }
.sc-sheetMedia {
  margin: 0 calc(-1 * var(--sc-gutter)); width: auto; border-radius: 0;
  background: var(--color-neutral-200); display: flex; justify-content: center;
}
.sc-sheetImage { width: 100%; max-height: 52dvh; object-fit: contain; }
.sc-sheetMediaEmpty { aspect-ratio: auto; height: 80px; }

.sc-sheetTag {
  display: inline-block; margin-top: 18px; padding: 3px 8px; border: 1px solid var(--color-accent-300); border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: none; color: var(--color-accent-700);
}
.sc-sheetHead { display: block; margin-top: 18px; }
.sc-sheetTitle { font-size: 21px; font-weight: 700; line-height: 1.25; }
.sc-sheetPriceLine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; }
.sc-sheetPrice { font-family: var(--font-body); font-size: 17px; font-weight: 700; }
.sc-sheetMeta { margin: 0; font-size: 13px; letter-spacing: 0; display: inline-flex; align-items: center; gap: 6px; }
.sc-sheetMeta::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--color-neutral-400);
}
.sc-sheetRule { margin: 18px 0; }
.sc-sheetDesc { font-family: var(--font-body); font-style: normal; font-size: 14px; line-height: 1.65; color: var(--color-neutral-700); }
.sc-sheetLabel { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--color-neutral-600); }

.sc-portion { border-radius: var(--sc-radius); min-height: 52px; align-items: center; font-weight: 600; }
.sc-portionOn { background: var(--color-accent-100); color: var(--color-accent-800); border-color: var(--color-accent); }

.sc-allergens { gap: 8px; }
.sc-allergen { padding: 6px 10px; border: 1px solid var(--color-divider); border-radius: 8px; font-size: 13px; align-items: center; }
.sc-allergenLetter { font-weight: 800; color: var(--color-accent-700); }

.sc-sheetClose {
  min-height: 54px; border-radius: var(--sc-radius); border-color: var(--color-text);
  color: var(--color-text); font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
}

@keyframes z-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.sc-sheet { animation: z-sheet-in 380ms var(--sc-ease); }
@keyframes z-x-in { from { transform: rotate(-90deg) scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.js .sc-sheetHandle { animation: z-x-in 480ms var(--sc-ease) both; animation-delay: 160ms; }

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

/* Filtre / favori (ortak screens.js) — köşeli, zeytin */
.sc-filter { border-radius: 8px; background: var(--color-surface); font-weight: 700; }
.sc-action { border-radius: 8px; }
.sc-favItem { border-radius: 10px; }
.sc-favImg { border-radius: 6px; }

/* Giriş fotoğrafı açılışta yavaşça yaklaşır; sonra yerinde durur. */
@keyframes z-ken { from { transform: scale(1.18); } to { transform: none; } }
.js .z-heroImg { animation: z-ken 2600ms var(--sc-ease) both; }
