/* @theme 8 · Kaydır — Yana kayan kartlar, indigo */
/* @order 8 */
/* @theme-color #F4F4FF */
/* @flow screens */
/* @fonts plus-jakarta-sans */

/*
 * TEMA 8 · KAYDIR
 * ===============
 *
 * Kullanıcının referanslarından türetildi (doğrudan karşılığı yok): GoLogo'nun
 * üç sayfalık tanıtımı (noktalar + sonraki düğmesi), Vogue Cafe'nin "1/15"
 * fotoğraf sayacı ve CRM'deki indigo (#5B5BF0). Menü parmakla yana çevrilir.
 *
 * İmza (başka temaya taşınmaz):
 *   - Giriş: üç sayfalık kaydırmalı tanıtım, noktalar, son sayfada hapa
 *     dönüşen yuvarlak "sonraki" düğmesi, "Menüye geç".
 *   - Kategoriler ve ürünler yana kayan uzun kartlar; ortadaki büyür,
 *     yanlardakiler küçülüp solar. "03 / 07" sayacı + ilerleme çubuğu.
 *   - Kartların altında hızlı erişim listesi.
 *   - Dev çerçeve (outline) numaralar.
 *
 * Davranış: public/assets/js/kaydir.js. Görünümler:
 * app/views/themes/sade-izgara/site/screens/*.php
 * (slug eski adıyla kaldı; müşteri kayıtları bu adı tutuyor).
 */

:root {
  --color-bg: #F4F4FF;
  --color-surface: #FFFFFF;
  --color-text: #15153A;

  --color-accent: #5B5BF0;
  --color-accent-100: #EEEEFE;
  --color-accent-200: #DCDCFD;
  --color-accent-300: #B9B9FA;
  --color-accent-400: #8A8AF5;
  --color-accent-500: #5B5BF0;
  --color-accent-600: #4646D6;
  --color-accent-700: #3B3BC2;
  --color-accent-800: #2A2A8F;
  --color-accent-900: #1B1B5C;

  --color-divider: #E4E4F0;
  --color-neutral-100: #F7F7FC;
  --color-neutral-200: #EEEEF6;
  --color-neutral-300: #DEDEEA;
  --color-neutral-400: #BDBDD0;
  --color-neutral-500: #9393AB;
  --color-neutral-600: #66667F;
  --color-neutral-700: #45455E;
  --color-neutral-800: #2A2A44;
  --color-neutral-900: #15153A;

  --dim-panel: rgba(21, 21, 58, 0.25);
  --dim-sheet: rgba(21, 21, 58, 0.5);
  --color-hatch-a: #EEEEFE;
  --color-hatch-b: #DCDCFD;

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

  --sc-gutter: 20px;
  --sc-radius: 18px;
  --sc-radius-sheet: 30px;
  --sc-radius-media: 22px;
  --sc-bar-pad: 12px;
  --sc-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --k-shadow: 0 24px 40px -26px color-mix(in srgb, var(--color-accent-800) 55%, transparent);
}

body { font-size: 15px; }
.k-flip { display: inline-flex; }
[dir="rtl"] .k-flip { transform: scaleX(-1); }

.k-count { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--color-accent); }

/* Yana kayan şerit */
.k-track {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--sc-gutter)); padding: 8px 11% 18px;
}
.k-track::-webkit-scrollbar { display: none; }
.k-card {
  flex: 0 0 78%; scroll-snap-align: center; min-width: 0;
  display: flex; flex-direction: column; padding: 12px 12px 18px; margin: 0;
  border: 0; border-radius: 30px; background: var(--color-surface); color: var(--color-text);
  text-align: start; cursor: pointer; font: inherit; box-shadow: var(--k-shadow);
  transition: transform 420ms var(--sc-ease), opacity 420ms var(--sc-ease);
}
/* Ortak sc-rise animasyonu transform'u ezer; şeritte ölçek sınıfla yönetilir. */
.js .k-track .k-card { animation: none; transform: scale(0.9); opacity: 0.55; }
.js .k-track .k-card.is-on { transform: none; opacity: 1; }
.k-card:active { transform: scale(0.97) !important; }

.k-media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--sc-radius-media); background: var(--color-accent-100); isolation: isolate;
}
/* Kırpmasız: görsel `contain`, kalan alanı bulanık kopyası doldurur */
.k-blur::before {
  content: ""; position: absolute; inset: -20px; z-index: -1;
  background: var(--img) center / cover no-repeat; filter: blur(18px) saturate(1.2); opacity: 0.7;
}
.k-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 700ms var(--sc-ease); }
.k-card.is-on .k-media img { transform: scale(1.04); }
.k-num {
  position: absolute; bottom: 6px; inset-inline-start: 14px;
  font-size: 84px; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 2px var(--color-surface);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}
.k-cardName { margin-top: 16px; padding: 0 6px; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.k-cardMeta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--color-neutral-600); }
.k-go {
  width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--color-accent); color: var(--color-surface); font-size: 18px;
}

.k-bar2 { display: block; height: 4px; border-radius: 4px; background: var(--color-accent-200); overflow: hidden; margin-top: 10px; }
.k-bar2 i {
  display: block; height: 100%; width: 100%; border-radius: 4px; background: var(--color-accent);
  transform-origin: left; transform: scaleX(calc(0.12 + var(--p, 0) * 0.88)); transition: transform 360ms var(--sc-ease);
}
[dir="rtl"] .k-bar2 i { transform-origin: right; }
.k-bar2 { --p: 0; }

/* =========================================================================
 * 1 · Giriş — tanıtım
 * ========================================================================= */

.sc-intro.k-intro { padding: 0; align-items: stretch; text-align: start; overflow: hidden; height: 100dvh; min-height: 0; }
.js .sc-intro.k-intro > * { animation: none; }
.k-introTop {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + var(--sc-safe-top)) var(--sc-gutter) 0;
}
.k-skip { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--color-neutral-600); }
.k-onboard {
  flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.k-onboard::-webkit-scrollbar { display: none; }
.k-slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always;
  display: flex; flex-direction: column; justify-content: center; padding: 10px 28px 20px;
  overflow-x: hidden; overflow-y: auto; scrollbar-width: none; isolation: isolate;
}
.k-slide::-webkit-scrollbar { display: none; }
.k-blob {
  position: absolute; z-index: -1; width: 340px; height: 340px; top: 8%; inset-inline-end: -120px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--color-accent-200), transparent 70%);
}
.k-logo {
  width: 104px; height: 104px; border-radius: 32px; overflow: hidden; margin-bottom: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface); box-shadow: var(--k-shadow);
  font-size: 40px; font-weight: 800; color: var(--color-accent);
}
.k-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.k-kicker { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); }
.k-big { margin: 8px 0 0; font-size: clamp(38px, 12vw, 54px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.k-sub { margin: 14px 0 0; font-size: 16px; color: var(--color-neutral-600); }
.k-photo { margin: 0 0 26px; border-radius: 28px; overflow: hidden; box-shadow: var(--k-shadow); transform: rotate(-2deg); }
.k-photo img { width: 100%; height: auto; display: block; }
.k-quote { font-size: clamp(28px, 8.4vw, 38px); }
.k-facts { display: grid; gap: 10px; margin-bottom: 24px; }
.k-fact { display: flex; flex-direction: column; padding: 16px 18px; border-radius: 20px; background: var(--color-surface); box-shadow: var(--k-shadow); }
.k-factLabel { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-neutral-500); }
.k-factValue { margin-top: 2px; font-size: 19px; font-weight: 800; }
.k-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.k-lang {
  min-height: 42px; padding: 0 16px; border-radius: 42px; display: inline-flex; align-items: center;
  background: var(--color-surface); border: 1.5px solid var(--color-divider); font-size: 14px; font-weight: 700;
}
.k-lang[aria-current] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-surface); }

.k-introFoot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--sc-gutter) calc(22px + var(--sc-safe-bottom));
}
.k-dots { display: flex; gap: 6px; }
.k-dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--color-accent-200); transition: width 320ms var(--sc-ease), background 320ms ease; }
.k-dots i.is-on { width: 28px; background: var(--color-accent); }
.k-next {
  height: 64px; min-width: 64px; padding: 0 21px; border-radius: 64px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--color-accent); color: var(--color-surface); font-size: 16px; font-weight: 800;
  box-shadow: 0 16px 28px -14px var(--color-accent);
  transition: padding 420ms var(--sc-ease), transform 200ms var(--sc-ease);
}
.k-nextLabel { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 420ms var(--sc-ease); }
.k-next.is-last { padding: 0 26px; }
.k-next.is-last .k-nextLabel { max-width: 220px; }
html:not(.js) .k-nextLabel { max-width: 220px; }
.k-next:active { transform: scale(0.94); }

.js .k-slide > * { animation: sc-rise 640ms var(--sc-ease) both; animation-delay: calc(100ms + var(--i, 0) * 80ms); }
.k-slide > :nth-child(2) { --i: 1; } .k-slide > :nth-child(3) { --i: 2; } .k-slide > :nth-child(4) { --i: 3; } .k-slide > :nth-child(n+5) { --i: 4; }

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

.sc-bar.k-bar { border-bottom: 0; background: color-mix(in srgb, var(--color-bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sc-barRow { gap: 12px; min-height: 44px; }
.k-avatar {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: var(--color-surface);
  font-weight: 800; color: var(--color-accent); box-shadow: var(--k-shadow);
}
.k-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.sc-barTitle.k-barTitle { text-align: start; padding: 0; font-size: 18px; font-weight: 800; -webkit-line-clamp: 1; }
.sc-barCat .sc-barRow .sc-barTitle.k-barTitle { font-size: 18px; text-align: center; }
.sc-langBtn, .k-round {
  min-width: 44px; width: 44px; height: 44px; min-height: 44px; margin: 0 !important; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-surface); color: var(--color-text); font-weight: 800; font-size: 13px; letter-spacing: 0.02em;
  box-shadow: 0 6px 16px -10px var(--color-accent-800);
}
.k-round { font-size: 20px; }
.sc-langBtn[aria-expanded="true"] { background: var(--color-accent); color: var(--color-surface); }
.sc-langMenu { border: 0; border-radius: 20px; padding: 6px; box-shadow: 0 30px 50px -24px var(--color-accent-800); }
.sc-langItem { border-radius: 14px; font-weight: 600; }
.sc-langItem[aria-checked="true"] { background: var(--color-accent-100); color: var(--color-accent-700); }

.sc-chips.k-pills { gap: 8px; padding: 12px var(--sc-gutter) 4px; margin: 0 calc(-1 * var(--sc-gutter)); }
.sc-chip.k-pill {
  min-height: 40px; padding: 0 16px; border-radius: 40px; background: var(--color-surface);
  font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--color-neutral-600);
}
.sc-chip.k-pill::after { display: none; }
.sc-chip.k-pill.sc-chipOn { background: var(--color-text); color: var(--color-surface); }

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

.k-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; }
.k-h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.k-screen .sc-catList.k-track { display: flex; }
.sc-cat.k-card { min-height: 0; gap: 0; border-bottom: 0; align-items: stretch; }
.sc-cat.k-card:hover { opacity: 1; }
[dir="rtl"] .sc-cat.k-card:active { transform: scale(0.97) !important; }

.k-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.k-quickItem {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px;
  border: 0; border-radius: 16px; background: var(--color-surface); color: var(--color-text);
  font: inherit; font-size: 14px; font-weight: 700; text-align: start; cursor: pointer;
  transition: background 200ms ease, transform 160ms var(--sc-ease);
}
.k-quickItem span { font-size: 12px; font-weight: 800; color: var(--color-accent); }
.k-quickItem:hover { background: var(--color-accent-100); }
.k-quickItem:active { transform: scale(0.96); }

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

.k-head .k-bar2Inline { flex: 1; margin: 0; align-self: center; }
.k-dishTrack .k-card { flex-basis: 80%; }
.k-dish .k-media { aspect-ratio: 1 / 1; }
.k-mediaEmpty { display: flex; align-items: center; justify-content: center; }
.k-initial { font-size: 90px; font-weight: 800; color: var(--color-accent-300); }
.k-tag {
  position: absolute; top: 12px; inset-inline-start: 12px; padding: 5px 12px; border-radius: 20px;
  background: var(--color-surface); color: var(--color-accent-700); font-size: 12px; font-weight: 800;
}
.k-cardDesc {
  margin-top: 4px; padding: 0 6px; font-size: 13px; line-height: 1.5; color: var(--color-neutral-600);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.k-cardFoot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 12px 6px 0; }
.k-price { font-size: 22px; font-weight: 800; color: var(--color-accent); }
.k-plus {
  width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--color-text); color: var(--color-surface); font-size: 24px; font-weight: 500;
}
.k-dish.sc-rowSoldOut .k-media img { filter: grayscale(1); opacity: 0.5; }
.k-dish.sc-rowSoldOut .k-price { color: var(--color-neutral-500); text-decoration: line-through; }

.sc-rows.k-list { margin-top: 4px; border-radius: 22px; background: var(--color-surface); padding: 4px 16px; }
.sc-row.k-row { padding: 14px 0; gap: 12px; align-items: center; }
.sc-row.k-row:last-child { border-bottom: 0; }
.sc-row.k-row:hover { opacity: 1; }
.sc-row.k-row:active, [dir="rtl"] .sc-row.k-row:active { transform: none; opacity: 0.6; }
.k-rowNum { font-size: 12px; font-weight: 800; color: var(--color-accent); }
.k-row .sc-rowName { font-family: var(--font-body); font-size: 15px; font-weight: 700; -webkit-line-clamp: 1; }
.k-row .sc-rowPrice { font-family: var(--font-body); font-size: 14px; font-weight: 800; }
.js .sc-row.k-row { animation: none; }

.sc-note { margin: 12px 0 0; padding: 12px 16px; border-radius: 16px; background: var(--color-accent-100); color: var(--color-accent-800); }
.sc-noResult { font-style: normal; text-align: center; font-family: var(--font-body); }

/* =========================================================================
 * 4 · Ürün detayı
 * ========================================================================= */

.sc-sheet { background: var(--color-surface); }
.sc-sheetHandleBar { width: 48px; height: 5px; border-radius: 5px; background: var(--color-accent-200); }
.sc-sheetMedia { border-radius: 26px; background: var(--color-accent-100); }
.sc-sheetMediaEmpty { height: 110px; aspect-ratio: auto; }
.sc-sheetTag { display: inline-block; margin-top: 16px; padding: 5px 12px; border-radius: 20px; background: var(--color-accent-100); color: var(--color-accent-700); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.sc-sheetHead { display: block; margin-top: 16px; }
.sc-sheetTitle { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.sc-sheetPriceLine { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; }
.sc-sheetPrice { font-family: var(--font-body); font-size: 26px; font-weight: 800; color: var(--color-accent); }
.sc-sheetMeta { margin: 0; padding: 5px 12px; border-radius: 20px; background: var(--color-neutral-200); font-size: 12px; letter-spacing: 0; }
.sc-sheetDesc { font-family: var(--font-body); font-style: normal; font-size: 15px; line-height: 1.65; color: var(--color-neutral-700); }
.sc-sheetLabel { font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--color-text); }
.sc-portion { border: 0; border-radius: 18px; min-height: 54px; background: var(--color-neutral-200); align-items: center; font-weight: 700; }
.sc-portionOn { background: var(--color-accent); color: var(--color-surface); }
.sc-allergens { gap: 8px; }
.sc-allergen { padding: 6px 12px; border-radius: 20px; background: var(--color-neutral-200); font-size: 13px; align-items: center; }
.sc-allergenLetter { color: var(--color-accent); font-weight: 800; }
.sc-sheetClose { min-height: 56px; border: 0; border-radius: 18px; background: var(--color-text); color: var(--color-surface); font-size: 15px; font-weight: 800; letter-spacing: 0; text-transform: none; }
@keyframes k-sheet-in { from { transform: translateY(100%) scale(0.96); } to { transform: none; } }
.sc-sheet { animation: k-sheet-in 480ms var(--sc-ease); }

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

/* Ortadaki kart hafif yükselir, gölgesi derinleşir. */
.js .k-track .k-card.is-on { box-shadow: 0 34px 50px -28px color-mix(in srgb, var(--color-accent-800) 70%, transparent); }
.k-card.is-on .k-num { animation: k-num-in 600ms var(--sc-ease) both; }
@keyframes k-num-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
