/* Anı Kutusu — misafir ekranı. Siyah-beyaz, NOX çizgisi. Tek görünüm (açık). */
:root {
  --ink: #0e0e0f;
  --paper: #fafaf8;
  --soft: #f0efec;
  --line: #dcdbd6;
  --mute: #66666b;
  --ok: #0e0e0f;
  --err: #a1261b;
  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--body);
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.top { display: flex; align-items: center; justify-content: space-between; }
.logo { width: 40px; height: auto; }
.chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border: 1.5px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 700;
}

.hero { padding: 8px 0 2px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.couple { margin: 6px 0 10px; font: 400 clamp(44px, 13vw, 60px)/.98 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.couple i { font-style: italic; }
.lead { margin: 0; color: #3b3b40; font-size: 15.5px; max-width: 36ch; }
.notice { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--soft); font-weight: 600; }

/* Artılı kutu */
.box {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 240px; border-radius: 28px;
  border: 1.5px dashed #a8a7a2; background: var(--soft);
  transition: background .2s, border-color .2s;
}
.box.over { background: #e7e6e2; border-color: var(--ink); }
.plus {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.7);
  transition: transform .15s;
}
.plus:active { transform: scale(.94); }
.box.pulse .plus { animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(14,14,15,.28), 0 14px 30px -14px rgba(0,0,0,.7); } 100% { box-shadow: 0 0 0 20px rgba(14,14,15,0), 0 14px 30px -14px rgba(0,0,0,.7); } }
.box-text { margin: 0; text-align: center; display: flex; flex-direction: column; }
.box-text b { font-size: 19px; font-weight: 800; }
.box-text span { font-size: 14px; color: var(--mute); }
.box.disabled { opacity: .5; pointer-events: none; }

.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick-btn {
  display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 72px; padding: 14px 16px; border-radius: 20px;
  border: 1.5px solid var(--ink); background: var(--paper);
  transition: transform .15s, background .2s;
}
.pick-btn:active { transform: scale(.97); }
.pick-btn b { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; }
.pick-btn small { display: block; font-size: 12.5px; color: var(--mute); line-height: 1.3; }
.pick-btn.dark { background: var(--ink); color: var(--paper); }
.pick-btn.dark small { color: #b9b9be; }
.pick-btn svg { flex: none; }

.name { display: flex; flex-direction: column; gap: 6px; }
.name span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.name input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; font: 500 16px var(--body); color: var(--ink);
}
.name input:focus { outline: none; border-color: var(--ink); }

/* Yükleme kuyruğu */
.queue { border-radius: 24px; background: var(--ink); color: var(--paper); padding: 18px; }
.q-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.q-head b { font-size: 17px; font-weight: 800; }
.q-head span { font-size: 13px; color: #b0b0b6; font-variant-numeric: tabular-nums; }
.bar { height: 4px; border-radius: 4px; background: #2f2f33; margin: 12px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--paper); border-radius: 4px; transition: width .25s linear; }
.q-note { margin: 0 0 12px; font-size: 12.5px; color: #b0b0b6; }
.q-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.q-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.q-thumb { width: 44px; height: 44px; border-radius: 10px; background: #26262a; overflow: hidden; display: grid; place-items: center; color: #8d8d93; }
.q-thumb img { width: 100%; height: 100%; object-fit: cover; }
.q-meta { min-width: 0; }
.q-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-state { font-size: 12.5px; color: #b0b0b6; font-variant-numeric: tabular-nums; }
.q-item.err .q-state { color: #ff9b8f; }
.q-mini { height: 3px; border-radius: 3px; background: #2f2f33; margin-top: 5px; overflow: hidden; }
.q-mini i { display: block; height: 100%; width: 0; background: var(--paper); }
.q-ok { width: 24px; height: 24px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; }
.q-retry { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--paper); }

/* Beni bul */
.find {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center;
  padding: 18px; border-radius: 24px; border: 1.5px solid var(--ink);
}
.find-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; grid-row: span 1; }
.find-text h2 { margin: 0; font-size: 19px; font-weight: 800; }
.find-text p { margin: 2px 0 0; font-size: 14px; color: var(--mute); line-height: 1.4; }
.find .btn { grid-column: 1 / -1; margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 20px; border-radius: 16px;
  background: var(--ink); color: var(--paper); font-weight: 800; font-size: 15.5px; text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn.wide { width: 100%; }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.outline-light { background: transparent; color: var(--paper); border: 1.5px solid rgba(250,250,248,.6); }
.ghost { height: 48px; border-radius: 14px; font-weight: 700; color: var(--mute); }
.ghost.wide { width: 100%; }

.foot { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.privacy { margin: 0 0 8px; font-size: 12.5px; color: var(--mute); max-width: 40ch; }
.foot span { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; color: #9a9a9f; }

.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14.5px; z-index: 60;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Alt sayfa */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.scrim { position: absolute; inset: 0; background: rgba(14,14,15,.45); }
.sheet {
  position: relative; width: 100%; max-width: 520px;
  border-radius: 28px 28px 0 0; background: var(--paper);
  padding: 10px 20px max(20px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px;
  animation: up .3s cubic-bezier(.2,.9,.2,1);
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 6px; }
.sheet h2 { margin: 0; font-size: 21px; font-weight: 800; }
.facts { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: #3b3b40; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--soft); font-size: 14.5px; font-weight: 600; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }

/* Sonuçlar */
.full { position: fixed; inset: 0; z-index: 45; background: var(--paper); display: flex; flex-direction: column; }
.full-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
}
.full-top b { display: block; font-size: 18px; font-weight: 800; }
.full-top span { font-size: 13px; color: var(--mute); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); flex: none; }
.icon-btn.light { background: rgba(250,250,248,.14); color: var(--paper); }
.full-body { flex: 1; overflow-y: auto; padding: 16px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left)); }
.full-foot { padding: 12px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.cell { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--soft); max-width: 100%; }
.cell img { width: 100%; height: 100%; object-fit: cover; }
.cell .tag { position: absolute; left: 6px; top: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 6px; border-radius: 6px; background: rgba(14,14,15,.7); color: var(--paper); }
.loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 80px 20px; text-align: center; color: var(--mute); font-weight: 600; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 60px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty b { font-size: 19px; }
.empty p { margin: 0; color: var(--mute); max-width: 32ch; }

/* Tek fotoğraf */
.viewer { position: fixed; inset: 0; z-index: 50; background: #050506; color: var(--paper); display: flex; flex-direction: column; }
.v-top { display: flex; justify-content: flex-end; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px 12px; }
.v-media { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 8px; }
.v-media img, .v-media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.v-actions { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 12px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.v-actions.two { grid-template-columns: 1fr 1fr; }

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