/* @theme 6 · Gece — Koyu, kehribar, el yazısı */
/* @order 6 */
/* @theme-color #15171A */
/* @flow screens */
/* @fonts caveat, manrope */

/*
 * TEMA 6 · GECE
 * =============
 *
 * Kullanıcının referanslarından türetildi (doğrudan karşılığı yok):
 * Vogue Cafe sunumunun koyu, ılık degradeli zemini, el yazısı başlıkları,
 * kehribar yıldız süsleri ve sayıların etrafına elle çizilmiş daireler;
 * sosyal medya sayfasındaki hikâye halkaları; GoLogo'nun koyu modu.
 *
 * İmza (başka temaya taşınmaz):
 *   - El yazısı (Caveat) ad, başlık ve fiyat; kehribar karalama çizgileri.
 *   - Kategori numaraları elle çizilmiş dairenin içinde (çizilerek gelir).
 *   - Kategoriler hikâye halkaları; seçili halka döner.
 *   - Giriş: tam ekran fotoğraf, içerik altta, daire içinde ok düğmesi.
 *
 * El çizimi süsler SVG maskesiyle çizilir; rengi her zaman --color-accent,
 * müşteri Renkler ekranından değiştirebilir.
 *
 * Görünümler: app/views/themes/cam-katman/site/screens/*.php
 * (slug eski adıyla kaldı; müşteri kayıtları bu adı tutuyor).
 */

:root {
  --color-bg: #15171A;
  --color-surface: #1F2226;
  --color-text: #F3EFE8;

  --color-accent: #E0A23C;
  --color-accent-100: #2C2418;
  --color-accent-200: #4A3A1F;
  --color-accent-300: #8A6527;
  --color-accent-400: #C78A2E;
  --color-accent-500: #E0A23C;
  --color-accent-600: #EBB65E;
  --color-accent-700: #F0C47A;
  --color-accent-800: #F6D9A8;
  --color-accent-900: #FBEBD2;

  --color-divider: #2E3237;
  --color-neutral-100: #1A1D20;
  --color-neutral-200: #23272B;
  --color-neutral-300: #2E3237;
  --color-neutral-400: #4A4F55;
  --color-neutral-500: #7C8187;
  --color-neutral-600: #A5A9AE;
  --color-neutral-700: #C9CCD0;
  --color-neutral-800: #E2E4E6;
  --color-neutral-900: #F3EFE8;

  --dim-panel: rgba(0, 0, 0, 0.45);
  --dim-sheet: rgba(0, 0, 0, 0.62);
  --color-hatch-a: #23272B;
  --color-hatch-b: #2E3237;

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

  --sc-gutter: 20px;
  --sc-radius: 16px;
  --sc-radius-sheet: 28px;
  --sc-radius-media: 14px;
  --sc-bar-pad: 12px;
  --sc-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --g-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 70'%3E%3Cpath d='M64 7C38 1 7 12 5 35c-2 20 27 30 52 28 26-2 41-16 38-31C92 14 70 5 43 9 29 11 17 17 12 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --g-scrib: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 20'%3E%3Cpath d='M4 12C40 6 90 4 156 7M22 16c34-5 76-6 120-3' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
[dir="rtl"] { --g-script: var(--font-arabic); }

html, body {
  background: var(--color-bg);
  background-image: radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--color-accent) 12%, transparent), transparent 60%),
                    radial-gradient(90% 50% at 0% 100%, color-mix(in srgb, var(--color-accent-300) 18%, transparent), transparent 70%);
  background-attachment: fixed;
}
body { font-size: 15px; }

.g-ico { display: block; flex: 0 0 auto; }
[dir="rtl"] .g-flip .g-ico, [dir="rtl"] .g-flip > .g-ico { transform: scaleX(-1); }
.g-script { font-family: var(--g-script); font-weight: 700; letter-spacing: 0; }
.g-spark { display: inline-flex; color: var(--color-accent); }
.g-spark .g-ico { width: 26px; height: 26px; fill: currentColor; stroke: none; }

/* Karalama çizgisi: kehribar, soldan sağa çizilerek gelir */
.g-scribble {
  display: block; width: 150px; height: 18px; background: var(--color-accent);
  -webkit-mask: var(--g-scrib) no-repeat center / contain; mask: var(--g-scrib) no-repeat center / contain;
}
@keyframes g-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes g-draw-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.js .g-scribble { animation: g-draw 900ms var(--sc-ease) both; animation-delay: 380ms; }
[dir="rtl"] .g-scribble { animation-name: g-draw-rtl; }
@keyframes g-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(0.8) rotate(25deg); opacity: 0.7; } }
.g-spark .g-ico { animation: g-twinkle 3.2s ease-in-out infinite; }

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

.sc-intro.g-intro {
  padding: calc(16px + var(--sc-safe-top)) var(--sc-gutter) calc(26px + var(--sc-safe-bottom));
  align-items: stretch; text-align: start; position: relative; isolation: isolate;
}
.g-intro::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: var(--sc-hero, none) center / cover no-repeat;
}
.g-intro::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-bg) 35%, transparent) 0%, color-mix(in srgb, var(--color-bg) 10%, transparent) 30%, color-mix(in srgb, var(--color-bg) 88%, transparent) 62%, var(--color-bg) 100%);
}
@media (min-width: 521px) {
  .g-intro::before, .g-intro::after { left: 50%; right: auto; width: var(--sc-max); margin-left: calc(var(--sc-max) / -2); }
}

.g-introTop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g-badge { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #FFFFFF; flex: 0 0 auto; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.g-badge img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.g-langs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.g-lang {
  position: relative; min-width: 40px; min-height: 40px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--color-neutral-700);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.g-lang[aria-current] { color: var(--color-accent); }
.g-lang[aria-current]::after {
  content: ""; position: absolute; inset: -2px -4px; background: var(--color-accent);
  -webkit-mask: var(--g-circle) no-repeat center / 100% 100%; mask: var(--g-circle) no-repeat center / 100% 100%;
}

.g-introPush { flex: 1 0 140px; }
.g-introBody { display: flex; flex-direction: column; align-items: flex-start; }
.g-kicker { margin: 10px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-neutral-700); }
.g-introName { margin: 2px 0 0; font-size: clamp(54px, 17vw, 76px); line-height: 0.95; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.g-introBody .g-scribble { margin-top: 2px; }
.g-introTagline { margin: 16px 0 0; font-size: 17px; line-height: 1.5; color: var(--color-neutral-800); max-width: 32ch; }
.g-introFacts { margin: 18px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--color-neutral-700); }
.g-introFacts span { display: inline-flex; align-items: center; gap: 8px; }
.g-introFacts .g-ico { width: 17px; height: 17px; color: var(--color-accent); }
.g-introFacts b { color: var(--color-text); font-weight: 700; }

.g-cta {
  margin-top: 26px; width: 100%; min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline-start: 22px; border-radius: 40px;
  background: color-mix(in srgb, var(--color-surface) 70%, transparent);
  border: 1px solid var(--color-divider);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 18px; font-weight: 800;
}
.g-ring {
  position: relative; width: 78px; height: 60px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; color: var(--color-accent);
}
.g-ring::before {
  content: ""; position: absolute; inset: 0; background: var(--color-accent);
  -webkit-mask: var(--g-circle) no-repeat center / 100% 100%; mask: var(--g-circle) no-repeat center / 100% 100%;
}
.g-ring .g-ico { width: 26px; height: 26px; transition: transform 300ms var(--sc-ease); }
.g-cta:hover .g-ring .g-ico { transform: translateX(5px); }
.g-cta:active { transform: scale(0.97); }
@keyframes g-circle-in { from { clip-path: circle(0% at 70% 10%); } to { clip-path: circle(100% at 50% 50%); } }
.js .g-ring::before { animation: g-circle-in 900ms var(--sc-ease) both; animation-delay: 700ms; }

.js .sc-intro.g-intro > * { animation: none; }
.js .g-introBody > * { animation: sc-rise 620ms var(--sc-ease) both; animation-delay: calc(120ms + var(--i, 0) * 70ms); }
.g-introBody > :nth-child(2) { --i: 1; } .g-introBody > :nth-child(3) { --i: 2; } .g-introBody > :nth-child(4) { --i: 3; }
.g-introBody > :nth-child(5) { --i: 4; } .g-introBody > :nth-child(6) { --i: 5; } .g-introBody > :nth-child(n+7) { --i: 6; }
@keyframes g-slow-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.js .g-intro::before { animation: g-slow-zoom 2.4s var(--sc-ease) both; }

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

.sc-bar.g-bar {
  border-bottom: 0;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.sc-barRow { gap: 12px; min-height: 44px; }
.g-barBrand { flex: 1; min-width: 0; font-size: 32px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-barTitle.g-barTitle { font-size: 15px; font-weight: 700; color: var(--color-neutral-600); padding: 0; }
.sc-langBtn {
  min-width: 44px; min-height: 44px; margin: 0; border-radius: 50%;
  border: 1px solid var(--color-divider); color: var(--color-text); font-weight: 700;
}
.sc-langBtn[aria-expanded="true"] { border-color: var(--color-accent); color: var(--color-accent); }
.g-round {
  width: 44px; height: 44px; min-width: 44px; margin: 0 !important; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--color-divider);
}
.sc-langMenu { background: var(--color-surface); border-color: var(--color-divider); border-radius: 18px; padding: 6px; }
.sc-langItem { border-radius: 12px; }
.sc-langItem:hover { background: var(--color-neutral-200); }
.sc-langItem[aria-checked="true"] { color: var(--color-accent); }

/* =========================================================================
 * Hikâye halkaları
 * ========================================================================= */

.sc-chips.g-stories { gap: 14px; padding: 8px var(--sc-gutter) 6px; margin: 0 calc(-1 * var(--sc-gutter)); }
.sc-chip.g-story {
  width: 74px; min-height: 0; padding: 0; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: var(--color-neutral-700);
}
.sc-chip.g-story::after { display: none; }
.g-storyRing {
  position: relative; width: 70px; height: 70px; border-radius: 50%; padding: 3px; isolation: isolate;
}
.g-storyRing::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--color-accent), var(--color-accent-300), var(--color-accent-700), var(--color-accent));
}
.g-storyImg {
  display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--color-bg); background: var(--color-neutral-200);
}
.g-storyImg img { width: 100%; height: 100%; object-fit: cover; }
.g-storyInitial { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: var(--color-accent); }
.g-storyName { width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-chip.g-story:not(.sc-chipOn) .g-storyRing::before { background: var(--color-neutral-400); }
.g-screen[data-screen="categories"] .sc-chip.g-story .g-storyRing::before {
  background: conic-gradient(from 200deg, var(--color-accent), var(--color-accent-300), var(--color-accent-700), var(--color-accent));
}
.sc-chip.g-story.sc-chipOn { color: var(--color-accent); }
@keyframes g-spin { to { transform: rotate(360deg); } }
.sc-chipOn .g-storyRing::before { animation: g-spin 6s linear infinite; }
.sc-chip.g-story:active { transform: scale(0.92); opacity: 1; }
.js .sc-chip.g-story { animation: g-pop 520ms var(--sc-ease) both; animation-delay: calc(60ms + var(--i, 0) * 50ms); }
@keyframes g-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.js .sc-chips.g-stories { animation: none; }

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

.g-search {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 0 16px; min-height: 50px;
  border: 1px solid var(--color-divider); border-radius: 30px; background: var(--color-neutral-100);
}
.g-search:focus-within { border-color: var(--color-accent-300); }
.g-search .g-ico { color: var(--color-neutral-500); }

.g-title { margin: 22px 0 8px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.g-title .g-script { font-size: 46px; line-height: 1; }
.g-catTitle { margin-top: 18px; margin-bottom: 0; }

.g-list { display: grid; gap: 10px; }
.sc-cat.g-cat {
  min-height: 84px; padding: 10px 18px 10px 8px; align-items: center; gap: 12px;
  border: 1px solid var(--color-divider); border-radius: 22px;
  background: linear-gradient(100deg, var(--color-surface), color-mix(in srgb, var(--color-surface) 40%, transparent));
}
[dir="rtl"] .sc-cat.g-cat { padding: 10px 8px 10px 18px; }
.sc-cat.g-cat:hover { opacity: 1; border-color: var(--color-accent-300); }
.sc-cat.g-cat[hidden] { display: none; }
.g-num {
  position: relative; width: 66px; height: 52px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; line-height: 1; color: var(--color-accent);
}
.g-num::before {
  content: ""; position: absolute; inset: 0; background: var(--color-accent); opacity: 0.85;
  -webkit-mask: var(--g-circle) no-repeat center / 100% 100%; mask: var(--g-circle) no-repeat center / 100% 100%;
}
.js .g-num::before { animation: g-circle-in 800ms var(--sc-ease) both; animation-delay: calc(250ms + var(--i, 0) * 90ms); }
.g-cat:nth-child(even) .g-num::before { transform: rotate(160deg) scaleX(-1); }
.g-catText { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.g-catName { font-size: 18px; font-weight: 800; line-height: 1.25; }
.g-catCount { font-size: 12px; color: var(--color-neutral-600); }
.g-catGo { color: var(--color-neutral-500); transition: transform 260ms var(--sc-ease), color 200ms ease; }
.g-cat:hover .g-catGo { transform: translateX(4px); color: var(--color-accent); }
.sc-cat.g-cat:active { transform: scale(0.98); opacity: 1; }
[dir="rtl"] .sc-cat.g-cat:active { transform: scale(0.98); }

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

.sc-bar.sc-barCat.g-bar { padding-bottom: var(--sc-bar-pad); }
.g-screen .sc-note { margin: 12px 0 0; color: var(--color-neutral-600); }
.sc-body .sc-rows { display: grid; gap: 12px; padding-top: 16px; }
.sc-row.g-row {
  padding: 14px; gap: 14px; align-items: center;
  border: 1px solid var(--color-divider); border-radius: 22px; background: var(--color-surface);
}
.sc-row.g-row:hover { opacity: 1; border-color: var(--color-accent-300); }
.sc-row.g-row:active, [dir="rtl"] .sc-row.g-row:active { transform: scale(0.98); opacity: 1; }
.g-row .sc-rowTag {
  display: inline-block; margin-bottom: 6px; padding: 2px 10px; border: 1px solid var(--color-accent-300); border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: none; color: var(--color-accent);
}
.g-row .sc-rowName { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; }
.g-row .sc-rowDesc { margin-top: 4px; font-family: var(--font-body); font-style: normal; font-size: 13px; line-height: 1.5; color: var(--color-neutral-600); }
.g-row .sc-rowMeta { margin-top: 6px; font-size: 11px; letter-spacing: 0.04em; color: var(--color-neutral-500); }
.g-row .sc-rowPrice { display: block; margin-top: 4px; font-family: var(--g-script); font-size: 30px; font-weight: 700; line-height: 1; color: var(--color-accent); }
.g-rowMedia {
  width: 128px; 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);
}
.g-rowMedia .sc-rowMedia { display: block; width: auto; max-width: 100%; height: auto; max-height: 156px; transition: transform 500ms var(--sc-ease); }
.g-row:hover .sc-rowMedia { transform: scale(1.06); }
.sc-rowSoldOut .g-rowMedia { filter: grayscale(1); opacity: 0.5; }
.sc-rowSoldOut .sc-rowPrice { color: var(--color-neutral-500); }

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

.sc-sheet { background: var(--color-surface); border-top: 1px solid var(--color-divider); }
.sc-sheetHandleBar { width: 46px; height: 4px; border-radius: 4px; background: var(--color-accent); }
.sc-sheetMedia { border-radius: 20px; background: var(--color-neutral-200); }
.sc-sheetMediaEmpty { height: 90px; aspect-ratio: auto; }
.sc-sheetTag {
  display: inline-block; margin-top: 16px; padding: 3px 11px; border: 1px solid var(--color-accent-300); border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: none; color: var(--color-accent);
}
.sc-sheetHead { display: block; margin-top: 16px; }
.sc-sheetTitle { font-size: 26px; font-weight: 800; }
.sc-sheetTitle::after {
  content: ""; display: block; width: 130px; height: 16px; margin-top: 4px; background: var(--color-accent);
  -webkit-mask: var(--g-scrib) no-repeat left center / contain; mask: var(--g-scrib) no-repeat left center / contain;
}
[dir="rtl"] .sc-sheetTitle::after { -webkit-mask-position: right center; mask-position: right center; }
.sc-sheetPriceLine { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.sc-sheetPrice { font-family: var(--g-script); font-size: 42px; font-weight: 700; line-height: 1; color: var(--color-accent); }
.sc-sheetMeta { margin: 0; font-size: 12px; letter-spacing: 0.06em; }
.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-family: var(--g-script); font-size: 26px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--color-text); }
.sc-portion { border-color: var(--color-divider); border-radius: 30px; min-height: 52px; align-items: center; background: var(--color-neutral-100); }
.sc-portionOn { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); font-weight: 700; }
.sc-allergens { gap: 8px; }
.sc-allergen { padding: 6px 12px; border: 1px solid var(--color-divider); border-radius: 20px; font-size: 13px; align-items: center; }
.sc-allergenLetter { color: var(--color-accent); font-weight: 800; }
.sc-sheetClose {
  min-height: 54px; border-radius: 30px; border-color: var(--color-accent-300); color: var(--color-accent);
  font-size: 14px; font-weight: 800; letter-spacing: 0.1em;
}
@keyframes g-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.sc-sheet { animation: g-sheet-in 460ms var(--sc-ease); }
.js .sc-sheetTitle::after { animation: g-draw 800ms var(--sc-ease) both; animation-delay: 300ms; }

@media (min-width: 521px) {
  .sc-screen { box-shadow: 0 0 0 1px var(--color-divider); }
}
