/* etsyBot v2 — sicak, sakin, yuksek kontrast */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --raised: #f4f1ec;
  --ink: #1a1815;
  --ink-soft: #5c574f;
  --line: #e6e1d8;
  --line-strong: #d3ccbf;
  --brand: #c25b28;
  --brand-ink: #ffffff;
  --brand-soft: #fdf0e8;
  --ok: #2f7d55;
  --ok-soft: #e8f4ed;
  --warn: #9a6b10;
  --warn-soft: #fdf4e0;
  --err: #b53d2e;
  --err-soft: #fbecea;
  --r: 12px;
  --shadow: 0 1px 2px rgba(26,24,21,.04), 0 6px 20px rgba(26,24,21,.06);
  --rail: 232px;
  --preview: 300px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f; --surface: #1d1b17; --raised: #262320; --ink: #f2efe9;
    --ink-soft: #a09a90; --line: #322e28; --line-strong: #453f37;
    --brand: #e2733c; --brand-ink: #17150f; --brand-soft: #2a1e16;
    --ok: #63b98b; --ok-soft: #17251d; --warn: #d5a441; --warn-soft: #241d10;
    --err: #e07a6a; --err-soft: #2a1815;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.3);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.25; margin: 0; }
a { color: var(--brand); }

/* ---------------------------------------------------------------- ust bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .inner {
  max-width: 1240px; margin: 0 auto; padding: .85rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.logo { font-weight: 700; font-size: 1.1rem; }
.logo span { color: var(--brand); }
.spacer { flex: 1; }
.meter { display: flex; gap: .5rem; align-items: center; font-size: .8rem; color: var(--ink-soft); }
.meter b { color: var(--ink); font-weight: 650; }
.pill {
  border: 1px solid var(--line); border-radius: 99px; padding: .3rem .7rem;
  background: var(--raised); white-space: nowrap;
}
.linkish { color: var(--ink-soft); text-decoration: none; font-size: .8rem; }
.linkish:hover { color: var(--ink); }

/* ---------------------------------------------------------------- duzen */
.shell {
  max-width: 1240px; margin: 0 auto; padding: 1.75rem 1.25rem 6rem;
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr) var(--preview);
  gap: 1.75rem; align-items: start;
}
@media (max-width: 1080px) { .shell { grid-template-columns: var(--rail) minmax(0,1fr); } .preview { display: none; } }
@media (max-width: 780px)  { .shell { grid-template-columns: 1fr; gap: 1.1rem; } .rail { display: none; } }

/* ---------------------------------------------------------------- adim rayi */
.rail { position: sticky; top: 78px; }
.rail ol { list-style: none; margin: 0; padding: 0; }
.rail li {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .55rem .6rem; border-radius: 10px; cursor: default; color: var(--ink-soft);
}
.rail li .dot {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line-strong); display: grid; place-items: center;
  font-size: .78rem; font-weight: 700; background: var(--surface);
}
.rail li .label { font-size: .9rem; font-weight: 600; padding-top: .1rem; }
.rail li .sub { display: block; font-weight: 400; font-size: .76rem; color: var(--ink-soft); }
.rail li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.rail li.done .dot::after { content: "✓"; }
.rail li.done .dot span { display: none; }
.rail li.active { background: var(--brand-soft); color: var(--ink); }
.rail li.active .dot { border-color: var(--brand); color: var(--brand); }
.rail li.clickable { cursor: pointer; }
.rail li.clickable:hover { background: var(--raised); }

/* mobil adim serigi */
.railmini { display: none; gap: .3rem; margin-bottom: 1rem; }
@media (max-width: 780px) { .railmini { display: flex; } }
.railmini i {
  flex: 1; height: 4px; border-radius: 2px; background: var(--line);
}
.railmini i.done { background: var(--ok); }
.railmini i.active { background: var(--brand); }

/* ---------------------------------------------------------------- kart */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden;
}
.card > header { padding: 1.5rem 1.6rem 0; }
.card h2 { font-size: 1.5rem; }
.card .lead { color: var(--ink-soft); margin: .4rem 0 0; font-size: .95rem; }
.card > .body { padding: 1.4rem 1.6rem; }
.card > footer {
  display: flex; gap: .7rem; align-items: center;
  padding: 1.1rem 1.6rem; border-top: 1px solid var(--line); background: var(--raised);
}

/* ---------------------------------------------------------------- form */
.field { margin-bottom: 1.25rem; }
.field:last-child { margin-bottom: 0; }
label.lbl { display: block; font-weight: 650; font-size: .88rem; margin-bottom: .4rem; }
label.lbl .opt { float: right; font-weight: 400; color: var(--ink-soft); font-size: .78rem; }
.hint { color: var(--ink-soft); font-size: .82rem; margin: .4rem 0 0; }
input[type=text], input[type=number], textarea, select {
  width: 100%; padding: .7rem .8rem; font: inherit; font-size: .95rem;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--bg); color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent;
}
textarea { resize: vertical; line-height: 1.6; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; }

/* ---------------------------------------------------------------- butonlar */
button, .btn {
  font: inherit; font-weight: 650; font-size: .92rem; cursor: pointer;
  padding: .65rem 1.15rem; border-radius: 9px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  display: inline-flex; align-items: center; gap: .45rem; justify-content: center;
}
button:hover:not(:disabled) { border-color: var(--ink-soft); }
button.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
button.primary:hover:not(:disabled) { filter: brightness(1.08); }
button.ghost { border-color: transparent; background: transparent; color: var(--ink-soft); }
button.ghost:hover:not(:disabled) { background: var(--surface); color: var(--ink); }
button.small { font-size: .82rem; padding: .4rem .75rem; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.wide { width: 100%; }

/* ---------------------------------------------------------------- secim kartlari */
.choices { display: grid; gap: .55rem; }
.choice {
  display: flex; gap: .8rem; align-items: flex-start; text-align: left;
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg); cursor: pointer; width: 100%;
}
.choice:hover { border-color: var(--line-strong); }
.choice.sel { border-color: var(--brand); background: var(--brand-soft); }
.choice > span:last-child { min-width: 0; }
.choice .tick {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line-strong); margin-top: .1rem; display: grid; place-items: center;
  font-size: .7rem; color: #fff;
}
.choice.sel .tick { background: var(--brand); border-color: var(--brand); }
.choice.sel .tick::after { content: "✓"; }
.choice .t { display: block; font-weight: 650; font-size: .92rem; }
.choice .s { display: block; color: var(--ink-soft); font-size: .8rem; margin-top: .15rem; }

/* ---------------------------------------------------------------- mesajlar */
.msg { border-radius: 10px; padding: .8rem .95rem; font-size: .88rem; margin-bottom: 1rem; border: 1px solid; }
.msg:last-child { margin-bottom: 0; }
.msg ul { margin: .45rem 0 0; padding-left: 1.15rem; }
.msg.ok   { border-color: var(--ok);   color: var(--ok);   background: var(--ok-soft); }
.msg.warn { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.msg.err  { border-color: var(--err);  color: var(--err);  background: var(--err-soft); }
.msg.info { border-color: var(--line-strong); color: var(--ink-soft); background: var(--raised); }
.msg b { color: inherit; }

/* ---------------------------------------------------------------- gorseller */
.drop {
  border: 2px dashed var(--line-strong); border-radius: var(--r);
  padding: 2.2rem 1rem; text-align: center; cursor: pointer; color: var(--ink-soft);
  background: var(--bg); transition: .15s;
}
.drop:hover, .drop.hot { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.drop .big { display: block; font-size: 1.6rem; margin-bottom: .35rem; }
.drop strong { color: var(--ink); }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .6rem; margin-top: .9rem; }
.thumb { position: relative; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; aspect-ratio: 1; background: var(--raised); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .x { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,.62); color: #fff; border: none; border-radius: 7px; padding: .1rem .42rem; font-size: .8rem; }
.thumb .n { position: absolute; bottom: 5px; left: 5px; background: rgba(0,0,0,.62); color: #fff; border-radius: 6px; padding: .05rem .38rem; font-size: .7rem; font-weight: 600; }
.thumb.first { border-color: var(--brand); border-width: 2px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .55rem; margin-top: .7rem; }
.gallery figure { margin: 0; position: relative; border: 2px solid var(--line); border-radius: 9px; overflow: hidden; cursor: pointer; }
.gallery figure.sel { border-color: var(--brand); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; background: rgba(0,0,0,.68); color: #fff;
  font-size: .72rem; padding: .28rem .45rem; display: flex; justify-content: space-between; align-items: center;
}
.gallery .mk { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font-size: .6rem; }
.gallery figure.sel .mk { background: var(--brand); border-color: var(--brand); }
.gallery figure.sel .mk::after { content: "✓"; }

/* ---------------------------------------------------------------- promptlar */
.promptcard { border: 1px solid var(--line); border-radius: 10px; padding: .85rem .9rem; margin-bottom: .7rem; background: var(--bg); }
.promptcard header { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.promptcard header b { font-size: .88rem; }
.promptcard header .peek { flex: 1; color: var(--ink-soft); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promptbox { font-size: .85rem; line-height: 1.55; min-height: 88px; margin-bottom: .5rem; }
.rowbtns { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------- onizleme */
.preview { position: sticky; top: 78px; }
.preview .card { padding: 0; }
.preview .ph {
  aspect-ratio: 1; background: var(--raised); display: grid; place-items: center;
  color: var(--ink-soft); font-size: .82rem; border-bottom: 1px solid var(--line);
}
.preview .ph img { width: 100%; height: 100%; object-fit: cover; }
.preview .pb { padding: .95rem 1rem 1.1rem; }
.preview .pt { font-size: .92rem; font-weight: 600; line-height: 1.4; }
.preview .pt.empty { color: var(--ink-soft); font-weight: 400; }
.preview .pp { font-size: 1.25rem; font-weight: 700; margin-top: .5rem; }
.preview .meta { color: var(--ink-soft); font-size: .78rem; margin-top: .3rem; }
.preview .chips { display: flex; flex-wrap: wrap; gap: .28rem; margin-top: .7rem; }
.preview .chips span { background: var(--raised); border: 1px solid var(--line); border-radius: 99px; padding: .12rem .5rem; font-size: .7rem; color: var(--ink-soft); }
.preview .title { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); padding: .8rem 1rem .2rem; font-weight: 650; }

/* ---------------------------------------------------------------- etiketler */
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem;
  background: var(--brand-soft); border: 1px solid var(--line); border-radius: 99px;
  padding: .25rem .35rem .25rem .7rem;
}
.tag button { border: none; background: none; padding: 0 .15rem; color: var(--ink-soft); font-size: 1rem; line-height: 1; }
.tag.bad { border-color: var(--err); color: var(--err); }

/* ---------------------------------------------------------------- yardimcilar */
.hidden { display: none !important; }
.spinner {
  display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.count { float: right; font-weight: 400; font-size: .78rem; color: var(--ink-soft); }
.count.over { color: var(--err); font-weight: 650; }
.sectitle { font-weight: 650; font-size: .88rem; margin: 1.5rem 0 .5rem; }
.sectitle:first-child { margin-top: 0; }
.divider { height: 1px; background: var(--line); margin: 1.4rem 0; }
.center { text-align: center; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.86); display: grid; place-items: center; z-index: 60; padding: 2rem; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------------------------------------------------------------- ipuclari */
.help {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  width: 18px; height: 18px; min-width: 18px; padding: 0; border-radius: 50%;
  font-size: .72rem; font-weight: 700; line-height: 1; cursor: help;
  display: inline-grid; place-items: center; vertical-align: 1px; margin-left: .35rem;
}
.help:hover, .help[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.tip {
  margin-top: .5rem; padding: .65rem .8rem; border-radius: 9px;
  background: var(--brand-soft); border: 1px solid var(--line);
  font-size: .83rem; line-height: 1.55; color: var(--ink);
}
.tip b { font-weight: 650; }
.tip ul { margin: .35rem 0 0; padding-left: 1.1rem; }

/* ---------------------------------------------------------------- kategori */
.searchwrap { position: relative; }
.searchwrap input { padding-left: 2.3rem; }
.searchwrap::before {
  content: "🔍"; position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  font-size: .9rem; opacity: .5; pointer-events: none;
}
.cat { display: flex; gap: .75rem; align-items: center; padding: .7rem .85rem; }
.cat .crumb { display: block; font-size: .72rem; color: var(--ink-soft); margin-bottom: .1rem; letter-spacing: .01em; }
.cat .leaf { display: block; font-weight: 650; font-size: .95rem; }
.badge {
  display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .1rem .4rem; border-radius: 5px; margin-left: .4rem;
  background: var(--brand); color: var(--brand-ink); vertical-align: 1px;
}
.chosen {
  display: flex; align-items: center; gap: .6rem; margin-top: .7rem;
  padding: .7rem .85rem; border-radius: 9px; background: var(--ok-soft);
  border: 1px solid var(--ok); color: var(--ok); font-size: .87rem;
}
.chosen b { color: var(--ok); }
.morebtn { margin-top: .5rem; width: 100%; }

/* ---------------------------------------------------------------- gorsel bolumu */
.panel { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 1.2rem; }
.panel > header {
  display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem;
  background: var(--raised); border-bottom: 1px solid var(--line);
}
.panel > header h3 { font-size: .95rem; font-weight: 650; }
.panel > header .spacer { flex: 1; }
.panel > .inner { padding: 1rem; }

.thumb .promote {
  position: absolute; inset: auto 0 0 0; background: rgba(0,0,0,.72); color: #fff;
  border: none; border-radius: 0; padding: .3rem; font-size: .7rem; font-weight: 600;
  opacity: 0; transition: opacity .15s;
}
.thumb:hover .promote { opacity: 1; }
.thumb.first .promote { display: none; }
@media (hover: none) { .thumb .promote { opacity: 1; } }


/* ---------------------------------------------------------------- yasal */
.legal {
  max-width: 1240px; margin: 0 auto; padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .78rem; line-height: 1.6;
}
.legal p { margin: 0 0 .35rem; }
.legal a { color: var(--ink-soft); }
