/* allinone.date — "gece İstanbul": mürekkep erik zemin, nar çiçeği mercan, kaymak beyazı */
:root {
  --bg: #140f1b;
  --bg2: #1d1526;
  --surface: #241a30;
  --line: #3a2c4a;
  --ink: #f5ede3;
  --muted: #a894bc;
  --nar: #ff5c72;          /* nar çiçeği */
  --nar-deep: #d63a55;
  --kayisi: #ffb35c;       /* kayısı */
  --ok: #5cd6a0;
  --r: 18px;
  --nav-h: 64px;
  font-size: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  overscroll-behavior: none;
}
body::before { /* atmosfer: üstten sıcak, alttan soğuk hafif ışıma + grain */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 40% at 80% -5%, rgba(255,92,114,.13), transparent 60%),
    radial-gradient(50% 35% at 10% 105%, rgba(120,80,200,.12), transparent 60%);
}
#app { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; min-height: 100dvh; }

.hidden { display: none !important; }
em { font-style: italic; }
.view { min-height: 100dvh; padding-bottom: calc(var(--nav-h) + 16px); }
.pad { padding: 0 20px 20px; }

/* ---------- tipografi ---------- */
.wordmark {
  font-family: 'Fraunces', serif; font-weight: 600; font-style: italic;
  font-size: 2.6rem; letter-spacing: -0.02em; color: var(--ink);
}
.wordmark span { color: var(--nar); }
.wordmark.small { font-size: 1.15rem; }
.page-head { padding: max(20px, env(safe-area-inset-top)) 20px 14px; }
.page-head h2 {
  font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.7rem; letter-spacing: -0.01em;
}
.page-head h2 em { color: var(--nar); }
.page-head .sub { color: var(--muted); font-size: .85rem; margin-top: 4px; }

/* ---------- auth ---------- */
#v-auth { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 0; }
.auth-hero { position: relative; padding: max(56px, env(safe-area-inset-top)) 28px 24px; }
.glow { position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 340px; height: 260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,92,114,.28), transparent); filter: blur(10px); }
.tagline { font-size: 1.15rem; color: var(--muted); margin-top: 8px; }
.tagline em { color: var(--kayisi); font-family: 'Fraunces', serif; }
.free-list { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.free-list li {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; font-size: .9rem;
}
.free-list b { color: var(--ok); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.auth-card {
  background: var(--bg2); border-radius: 26px 26px 0 0; padding: 22px 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.auth-tabs { display: flex; gap: 6px; background: var(--surface); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.atab { flex: 1; padding: 9px; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
  font-family: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.atab.active { background: var(--nar); color: #fff; }
.aform { display: flex; flex-direction: column; gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input, select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); padding: 13px 14px; font-family: inherit; font-size: .95rem; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--nar); }
.err { color: var(--nar); font-size: .85rem; margin-top: 10px; min-height: 1em; }

.btn-primary {
  border: 0; border-radius: 14px; padding: 14px 22px; cursor: pointer;
  background: linear-gradient(135deg, var(--nar), var(--nar-deep));
  color: #fff; font-family: inherit; font-weight: 800; font-size: 1rem;
  box-shadow: 0 6px 24px rgba(255,92,114,.35);
  transition: transform .12s;
}
.btn-primary:active { transform: scale(.97); }
.btn-ghost {
  display: inline-block; text-align: center; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 20px; background: transparent; color: var(--muted);
  font-family: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
}
.wide { width: 100%; margin-top: 12px; }

/* ---------- onboarding & profil ---------- */
.photo-pick { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.photo-pick img { width: 84px; height: 108px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.questions { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.qitem p { font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 7px 13px; font-family: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.chip.sel { background: var(--nar); border-color: var(--nar); color: #fff; }
.qhead { font-family: 'Fraunces', serif; font-weight: 500; margin-top: 22px; font-size: 1.15rem; }
.pr-title { font-family: 'Fraunces', serif; font-size: 1.3rem; margin: 4px 0 10px; }
textarea { resize: none; margin-top: 4px; }

/* ---------- deck ---------- */
.deck-head { display: flex; flex-direction: column; gap: 10px; padding: max(16px, env(safe-area-inset-top)) 20px 8px; }
.modes { display: flex; gap: 6px; }
.mode {
  flex: 1; padding: 8px 4px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--muted); font-family: inherit; font-weight: 700; font-size: .78rem; cursor: pointer;
  white-space: nowrap;
}
.mode.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.stack { position: relative; height: min(62dvh, 560px); margin: 8px 16px 0; }
.card {
  position: absolute; inset: 0; border-radius: 24px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  touch-action: none; user-select: none;
  transition: transform .28s cubic-bezier(.2,.8,.3,1.1);
}
.card.dragging { transition: none; }
.card img.ph { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.card .grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,6,16,.25) 0%, transparent 30%, transparent 45%, rgba(10,6,16,.92) 100%); }
.card .info { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.card .info h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.6rem; }
.card .info h3 small { font-family: 'Manrope'; font-weight: 500; font-size: 1.1rem; color: var(--muted); }
.card .info .bio { font-size: .84rem; color: #d8cbe6; margin-top: 6px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pills { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 8px; }
.pill {
  backdrop-filter: blur(8px); background: rgba(20,15,27,.55); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 800;
}
.pill.compat { color: var(--kayisi); }
.pill.dist { color: #cfe3ff; }
.stamp {
  position: absolute; top: 40px; font-family: 'Fraunces', serif; font-style: italic; font-size: 2.2rem;
  padding: 4px 18px; border: 3px solid; border-radius: 10px; opacity: 0; transform: rotate(-14deg);
}
.stamp.yes { left: 20px; color: var(--ok); border-color: var(--ok); }
.stamp.no { right: 20px; color: var(--nar); border-color: var(--nar); transform: rotate(14deg); }
.stack-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 30px;
  border: 1.5px dashed var(--line); border-radius: 24px;
}
.stack-empty h3 { font-family: 'Fraunces', serif; color: var(--ink); font-weight: 500; }

.deck-actions { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 18px 0 6px; }
.act {
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: var(--surface); color: var(--ink); font-size: 1.5rem; font-family: inherit;
  display: grid; place-items: center; transition: transform .12s;
}
.act:active { transform: scale(.9); }
.act.like { width: 70px; height: 70px; background: linear-gradient(135deg, var(--nar), var(--nar-deep));
  border: 0; color: #fff; font-size: 1.9rem; box-shadow: 0 8px 28px rgba(255,92,114,.4); }
.act.undo { color: var(--kayisi); font-size: 1.4rem; }
.act.pass { color: var(--muted); }

/* ---------- likes grid ---------- */
.likes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.like-card { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3/4;
  border: 1px solid var(--line); cursor: pointer; }
.like-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.like-card .lc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px;
  background: linear-gradient(transparent, rgba(10,6,16,.9)); font-weight: 700; font-size: .9rem; }
.like-card .lc-compat { position: absolute; top: 8px; right: 8px; }
.lc-actions { position: absolute; bottom: 8px; right: 8px; display: flex; gap: 6px; }
.lc-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1rem;
  display: grid; place-items: center; }
.lc-btn.y { background: var(--nar); color: #fff; }
.lc-btn.n { background: rgba(20,15,27,.7); color: var(--muted); border: 1px solid var(--line); }
.empty-note { color: var(--muted); text-align: center; padding: 50px 30px; grid-column: 1/-1; line-height: 1.6; }

/* ---------- matches & chat ---------- */
.match-list { display: flex; flex-direction: column; }
.mrow { display: flex; align-items: center; gap: 14px; padding: 12px 20px; cursor: pointer; border-bottom: 1px solid rgba(58,44,74,.4); }
.mrow:active { background: var(--bg2); }
.mrow img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.mrow.new img { border-color: var(--nar); }
.mrow .mi { flex: 1; min-width: 0; }
.mrow .mi b { display: block; }
.mrow .mi span { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; display: block; }
.mrow .compat-mini { color: var(--kayisi); font-size: .78rem; font-weight: 800; }
.badge { background: var(--nar); color: #fff; border-radius: 999px; font-size: .62rem;
  padding: 2px 6px; font-weight: 800; }

#v-chat { display: flex; flex-direction: column; height: 100dvh; padding-bottom: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid var(--line); background: var(--bg2); }
.chat-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.chat-head .mini { display: block; color: var(--kayisi); font-size: .74rem; font-weight: 700; }
.back { background: none; border: 0; color: var(--ink); font-size: 1.9rem; cursor: pointer; line-height: 1; padding: 0 4px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 18px; font-size: .93rem; line-height: 1.45; }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, var(--nar), var(--nar-deep)); color: #fff;
  border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-bottom-left-radius: 6px; }
.chat-note { align-self: center; text-align: center; color: var(--muted); font-size: .8rem;
  background: rgba(255,179,92,.08); border: 1px solid rgba(255,179,92,.25); border-radius: 12px;
  padding: 8px 14px; margin: 8px 0; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--bg2); }
.chat-form .btn-primary { padding: 12px 18px; font-size: .9rem; }

/* ---------- bottom nav ---------- */
.bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  display: flex; background: rgba(20,15,27,.88); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); z-index: 50; padding-bottom: env(safe-area-inset-bottom);
}
.nv { flex: 1; border: 0; background: none; color: var(--muted); font-family: inherit; font-size: .68rem;
  font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px;
  justify-content: center; position: relative; }
.nv .ic { font-size: 1.25rem; line-height: 1; }
.nv.active { color: var(--nar); }
.nv .badge { position: absolute; top: 8px; right: 24%; }

/* ---------- match overlay ---------- */
.match-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(12,8,18,.9); backdrop-filter: blur(10px); animation: fadein .3s; }
.mo-inner { text-align: center; padding: 30px; display: flex; flex-direction: column; gap: 12px; align-items: center; max-width: 480px; }
.mo-kicker { color: var(--kayisi); letter-spacing: .3em; text-transform: uppercase; font-size: .72rem; font-weight: 800; }
.mo-title { font-family: 'Fraunces', serif; font-style: italic; font-weight: 600; font-size: 3rem; color: var(--ink);
  animation: pop .45s cubic-bezier(.2,.8,.3,1.4); }
.mo-photos { display: flex; align-items: center; gap: 14px; margin: 8px 0; }
.mo-photos img { width: 96px; height: 120px; object-fit: cover; border-radius: 16px; border: 2px solid var(--nar); }
.mo-photos img:first-child { transform: rotate(-6deg); }
.mo-photos img:last-child { transform: rotate(6deg); }
.mo-heart { color: var(--nar); font-size: 2rem; animation: beat 1s infinite; }
.mo-name { font-size: 1.05rem; }
.mo-rule { color: var(--muted); font-size: .84rem; max-width: 280px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes beat { 0%,100% { transform: scale(1); } 30% { transform: scale(1.25); } }
@keyframes fadein { from { opacity: 0; } }

.toast { position: fixed; bottom: calc(var(--nav-h) + 24px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-weight: 700;
  font-size: .86rem; z-index: 120; box-shadow: 0 10px 30px rgba(0,0,0,.4); white-space: nowrap; }
