/* Gülay Stüdyo: keten zemin, bordo ve altın iplik. Dikiş çizgileri işlemeye selam. */
:root {
  --bg: #f7f1e8;
  --bg-deep: #efe5d6;
  --card: #fffdf9;
  --ink: #2a1f1a;
  --muted: #76675b;
  --line: #e4d8c6;
  --brand: #7a1f33;
  --brand-dark: #5e1526;
  --brand-ink: #fffaf3;
  --brand-soft: #f4e3e3;
  --gold: #b8892b;
  --gold-soft: #f3e7cc;
  --ok: #2e6e48;
  --ok-soft: #e3f0e6;
  --warn: #8a4b00;
  --warn-soft: #fbeed8;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(60, 35, 20, .06), 0 8px 24px rgba(60, 35, 20, .07);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y; }
button, a, .card, .chip, .opt { touch-action: manipulation; }
body {
  font: 600 21px/1.5 var(--sans);
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  -webkit-text-size-adjust: 100%;
  background-image: radial-gradient(rgba(122, 31, 51, .035) 1px, transparent 1px);
  background-size: 6px 6px;
}
button, input, textarea { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }

#app { max-width: 640px; margin: 0 auto; padding: 12px 18px 120px; }

/* marka */
.brand { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 22px; }
.brand-mark { font: italic 500 40px/1 var(--serif); color: var(--brand); letter-spacing: -.5px; }
.brand-sub {
  font: 800 15px/1 var(--sans); letter-spacing: 4px; text-transform: uppercase; color: var(--gold);
  padding-left: 12px; border-left: 2px dashed var(--gold);
}

/* üst çubuk */
.top {
  display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(var(--bg) 82%, transparent); padding: 10px 0 16px; margin-bottom: 4px;
}
.top h1 { font: 650 29px/1.15 var(--serif); margin: 0; flex: 1; letter-spacing: -.3px; }
.back {
  flex: none; width: 58px; height: 58px; border-radius: 50%;
  border: 0; background: var(--card); box-shadow: var(--shadow);
  font: 800 30px/1 var(--sans); display: grid; place-items: center; cursor: pointer; color: var(--brand);
}

h2 { font: 650 25px/1.2 var(--serif); margin: 30px 0 14px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); font-weight: 600; }
.lead { font-size: 22px; }
.center { text-align: center; }

/* butonlar */
.btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 74px; padding: 14px 22px; margin: 12px 0;
  border: 0; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--brand), var(--brand-dark)); color: var(--brand-ink);
  font: 800 23px/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(122, 31, 51, .28);
}
.btn::before {
  content: ""; position: absolute; inset: 6px; border-radius: calc(var(--radius) - 6px);
  border: 1.5px dashed rgba(243, 214, 160, .55); pointer-events: none;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; }
.btn.light, .btn.danger { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.btn.light::before { border-color: var(--line); }
.btn.danger { color: #a3261e; }
.btn.danger::before { border-color: #efcac6; }
.btn.small { min-height: 60px; font-size: 20px; padding: 10px 16px; }
.btn .ico { font-size: 28px; }

/* ana menü */
.home-hello { font: 650 34px/1.15 var(--serif); margin: 0 0 6px; letter-spacing: -.4px; }
.menu { display: grid; gap: 14px; margin-top: 22px; }
.menu a {
  position: relative; display: flex; align-items: center; gap: 18px;
  min-height: 104px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--card); color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow); font: 800 24px/1.2 var(--sans);
}
.menu a::after { content: "›"; margin-left: auto; font-size: 36px; color: var(--gold); font-weight: 600; }
.menu a .ico {
  flex: none; width: 66px; height: 66px; border-radius: 50%; background: var(--gold-soft);
  display: grid; place-items: center; font-size: 34px;
}
.menu a small { display: block; font: 600 18px/1.3 var(--sans); color: var(--muted); margin-top: 4px; }
.menu a.main {
  min-height: 150px; background: linear-gradient(140deg, #8a2439, var(--brand-dark));
  color: var(--brand-ink); box-shadow: 0 10px 28px rgba(122, 31, 51, .32); font-size: 27px;
}
.menu a.main::before {
  content: ""; position: absolute; inset: 8px; border-radius: calc(var(--radius) - 8px);
  border: 2px dashed rgba(243, 214, 160, .6); pointer-events: none;
}
.menu a.main::after { color: #f3d6a0; }
.menu a.main .ico { background: rgba(255, 250, 243, .14); width: 76px; height: 76px; font-size: 40px; }
.menu a.main small { color: #f1d9c4; }
.menu .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.menu .pair a { flex-direction: column; justify-content: center; text-align: center; gap: 10px; min-height: 150px; padding: 16px 10px; font-size: 22px; }
.menu .pair a::after { display: none; }

/* bilgi kutuları */
.note { padding: 16px 20px; border-radius: 20px; background: var(--brand-soft); margin: 12px 0; }
.note.ok { background: var(--ok-soft); color: var(--ok); font-weight: 800; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.banner {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 20px; margin: 14px 0;
  background: var(--warn-soft); color: var(--ink); text-decoration: none; font-weight: 700;
  border: 2px dashed rgba(184, 137, 43, .5);
}
.banner.ok { background: var(--ok-soft); border-color: rgba(46, 110, 72, .35); }
.banner .ico { font-size: 32px; }
.banner > a { flex: 1; display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-height: 48px; }
.banner.warn { background: var(--warn-soft); border-color: rgba(138, 75, 0, .35); }
.banner-x {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .7);
  font: 800 20px/1 var(--sans); color: var(--muted); cursor: pointer;
}

/* form */
label.field { display: block; font: 650 23px/1.3 var(--serif); margin: 26px 0 12px; }
input.text, textarea.text {
  width: 100%; padding: 18px 20px; border-radius: 20px; border: 2px solid var(--line);
  background: var(--card); font: 700 23px/1.4 var(--sans);
}
textarea.text { min-height: 130px; resize: vertical; }
input.text::placeholder, textarea.text::placeholder { color: #b0a294; font-weight: 600; }
input.text:focus, textarea.text:focus { outline: 4px solid var(--brand-soft); border-color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 12px 22px; border-radius: 999px; min-height: 58px;
  border: 2px solid var(--line); background: var(--card); font: 700 21px/1.2 var(--sans); cursor: pointer;
}
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); box-shadow: 0 4px 12px rgba(122, 31, 51, .25); }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 6px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll .chip { flex: none; }

/* kart ızgarası */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card {
  position: relative; border-radius: 22px; overflow: hidden; background: var(--card);
  border: 0; box-shadow: var(--shadow); cursor: pointer; text-align: left; padding: 0;
  display: flex; flex-direction: column;
}
.card.on { box-shadow: 0 0 0 4px var(--brand), var(--shadow); }
.card.on::after {
  content: "✓"; position: absolute; top: 10px; right: 10px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 800;
}
.card .pic { aspect-ratio: 3/4; background: var(--bg-deep) center/cover no-repeat; display: grid; place-items: center; font-size: 48px; }
.card .pic.tall { aspect-ratio: 9/16; }
.card .cap { padding: 12px 14px 14px; font: 800 19px/1.25 var(--sans); }
.card .cap small { display: block; font-weight: 600; color: var(--muted); font-size: 16px; margin-top: 3px; }
.card .badge {
  position: absolute; left: 10px; top: 10px; background: rgba(42, 31, 26, .72); color: #fff;
  font-size: 15px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
}
.card.add { background: transparent; box-shadow: none; border: 2.5px dashed var(--gold); }
.card.add .pic { background: var(--gold-soft); color: var(--brand); font-size: 60px; font-weight: 400; }
.card.add .cap { color: var(--brand); }
.card-del { margin: 0 12px 12px !important; width: auto !important; }

/* seçenek listesi (poz, hareket) */
.opts { display: grid; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; min-height: 82px;
  border-radius: 22px; border: 0; background: var(--card); text-align: left; cursor: pointer;
  font: 800 22px/1.25 var(--sans); box-shadow: var(--shadow);
}
.opt .ico { flex: none; font-size: 30px; width: 56px; height: 56px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; }
.opt.on { box-shadow: 0 0 0 4px var(--brand), var(--shadow); background: var(--brand-soft); }

/* adım göstergesi: dikiş */
.steps { display: flex; gap: 6px; margin: 0 0 16px; }
.steps i { flex: 1; height: 0; border-top: 4px dashed var(--line); }
.steps i.on { border-top-style: solid; border-color: var(--brand); border-radius: 4px; }

/* fotoğraf rehberi */
.guide { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.guide svg { width: 100%; max-width: 240px; height: auto; margin: 0 auto 12px; display: block; }
.guide ul { margin: 6px 0 0; padding-left: 0; list-style: none; }
.guide li { display: flex; gap: 14px; margin: 12px 0; align-items: flex-start; }
.guide li b { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 18px; margin-top: 1px; }
.shot { border-radius: 22px; overflow: hidden; margin: 14px 0; background: var(--bg-deep); box-shadow: var(--shadow); }
.shot img { width: 100%; max-height: 60vh; object-fit: contain; margin: 0 auto; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; }
.thumbs .t { flex: none; width: 92px; position: relative; }
.thumbs .t img { width: 92px; height: 122px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }

/* bekleme */
.wait { text-align: center; padding: 30px 10px; }
.spinner {
  width: 74px; height: 74px; margin: 10px auto 20px; border-radius: 50%;
  border: 7px dashed var(--gold); border-top-color: var(--brand); animation: spin 1.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.results { display: grid; gap: 22px; margin-top: 10px; }
.result { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.result img, .result video { width: 100%; background: #1d1612; }
.result .acts { padding: 10px 14px 4px; }
.result .acts .btn { margin: 8px 0; }
.result .slot { aspect-ratio: 9/16; display: grid; place-items: center; background: var(--bg-deep); }
.result .slot .spinner { margin: 0 auto 12px; }

/* tam ekran görüntüleyici */
.viewer img, .viewer video { width: 100%; border-radius: 22px; background: #1d1612; max-height: 72vh; object-fit: contain; box-shadow: var(--shadow); }

/* giriş */
.login { text-align: center; padding-top: 7vh; }
.login .brand { justify-content: center; margin-bottom: 8px; }
.login .brand-mark { font-size: 56px; }
.dots { display: flex; justify-content: center; gap: 18px; margin: 24px 0 28px; }
.dots i { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--brand); }
.dots i.on { background: var(--brand); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 360px; margin: 0 auto; }
.pad button {
  height: 84px; border-radius: 26px; border: 0; background: var(--card); box-shadow: var(--shadow);
  font: 700 34px/1 var(--sans); cursor: pointer;
}
.pad button:active { background: var(--brand-soft); }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }

.toast {
  position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 16px 24px; border-radius: 20px; font-size: 20px; font-weight: 700;
  max-width: calc(100% - 32px); z-index: 50; box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.hidden { display: none !important; }
.search { margin: 4px 0 16px; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty .ico { font-size: 60px; }

/* uygulama içi pencere */
.modal-back {
  position: fixed; inset: 0; z-index: 40; background: rgba(42, 31, 26, .45);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fade .18s ease-out; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.modal {
  width: 100%; max-width: 480px; max-height: calc(100dvh - 36px); overflow-y: auto;
  background: var(--card); border-radius: 28px; padding: 26px 22px 14px; text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: pop .22s cubic-bezier(.2, .9, .3, 1.2);
}
.modal .m-ico { font-size: 54px; line-height: 1; margin-bottom: 10px; }
.modal h3 { font: 650 27px/1.2 var(--serif); margin: 0 0 10px; }
.modal p { font-size: 21px; margin: 0 0 8px; color: var(--ink); }
.modal img { width: 100%; max-height: 38vh; object-fit: contain; border-radius: 18px; background: var(--bg-deep); margin: 4px 0 14px; }
.modal .spinner { margin: 14px auto; }
.modal input.text { margin: 8px 0 4px; text-align: center; }
.modal .btn { margin: 10px 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }

.credit {
  margin-left: auto; align-self: center; font: 700 16px/1 var(--sans); color: var(--muted);
  background: var(--card); padding: 9px 14px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap;
}
.credit b { color: var(--ink); font-weight: 800; }
.credit.low { background: var(--warn-soft); color: var(--warn); }
.credit.low b { color: var(--warn); }
