/* Karaköy Kart — Tarihi Karaköy Pilavcısı (siyah & beyaz) */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(fonts/playfair-display-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(fonts/playfair-display-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0b0b0b;
  --ink-2: #161616;
  --ink-3: #222221;
  --paper: #ffffff;
  --paper-2: #f3f3f1;
  --muted: #666664;
  --muted-dark: #9c9c9a;
  --line: #e2e2df;
  --line-dark: #2e2e2d;
  --ok: #0b0b0b;
  --danger: #b3261e;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --e: cubic-bezier(.16, 1, .3, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
/* Rakamlar: net ve düz (Inter) */
.num { font-family: var(--sans); font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------- Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--e), background .2s, color .2s, opacity .2s;
  touch-action: manipulation; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.ghost-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.45); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }

/* ---------- Form */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper); font-size: 17px;
  transition: border-color .2s;
}
.input:focus { outline: none; border-color: var(--ink); }
.field.error .input { border-color: var(--danger); }
.pw { position: relative; }
.pw .input { padding-right: 76px; }
.pw button { position: absolute; right: 8px; top: 8px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--paper-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin: 4px 0 18px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ink); }
.check.error { color: var(--danger); }
.form-error { color: var(--danger); font-size: 14px; margin: -4px 0 14px; min-height: 0; }
.hint { font-size: 12.5px; color: var(--muted); }

/* ---------- Bildirim */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 140%);
  background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: 14px;
  font-weight: 600; font-size: 15px; box-shadow: 0 10px 40px rgba(0,0,0,.25); z-index: 100;
  transition: transform .45s var(--e); width: max-content; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.light { background: var(--paper); color: var(--ink); }

/* ---------- Tabak (damga) */
.plates { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 3vw, 14px); }
.plate { position: relative; aspect-ratio: 1; }
.plate svg { width: 100%; height: 100%; overflow: visible; }
.plate.pop svg { animation: pop .9s var(--e) both; }
.plate.pop::after {
  content: ""; position: absolute; inset: -6%; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7); animation: ring 1s var(--e) both;
}
@keyframes pop { 0% { transform: scale(.4) rotate(-40deg); opacity: 0; } 60% { transform: scale(1.12) rotate(4deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes ring { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Ortak katman (modal) */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 520px; background: var(--paper); color: var(--ink);
  border-radius: 24px 24px 0 0; padding: 28px 22px calc(22px + var(--safe-b));
  max-height: 92vh; overflow: auto; animation: up .4s var(--e);
}
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 24px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 8px; }
.sheet p { margin-bottom: 16px; }
.sheet .row { display: flex; gap: 10px; }
.sheet .row .btn { flex: 1; }

.spinner { width: 28px; height: 28px; border: 2.5px solid rgba(127,127,127,.25); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
