/* Atolye > Hatirlananlar (public/hatirla.js). Ortak tokenlar style.css'ten (--panel, --panel-2, --line, --text, --muted, --faint,
   --accent); siniflar ht- onekli. Dar pencere: 720 px ve 520 px kirilimlari (Gelisim ile ayni kural). */
:root {
  --ht-a: #7c5cd6; --ht-a-soft: rgb(124 92 214 / .12);
  --ht-hero-a: rgb(124 92 214 / .11); --ht-hero-b: rgb(47 111 228 / .08);
  --ht-ok: #1f9d55; --ht-ok-bg: rgb(31 157 85 / .10);
  --ht-red: #c9443a; --ht-red-bg: rgb(201 68 58 / .10);
  --ht-card-sh: 0 1px 0 rgb(30 30 25 / .03), 0 6px 18px -10px rgb(30 30 25 / .16);
  --ht-tag-fill: #6b46c1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ht-a: #a78bfa; --ht-a-soft: rgb(167 139 250 / .16);
    --ht-hero-a: rgb(167 139 250 / .14); --ht-hero-b: rgb(91 143 240 / .10);
    --ht-ok: #3ccf7c; --ht-ok-bg: rgb(60 207 124 / .12);
    --ht-red: #ef6a5e; --ht-red-bg: rgb(239 106 94 / .14);
    --ht-card-sh: 0 1px 0 rgb(255 255 255 / .02) inset, 0 8px 22px -12px rgb(0 0 0 / .6);
    --ht-tag-fill: #a78bfa;
  }
}

#hatirla .ht-wrap { max-width: 1040px; gap: 16px; }

.ht-hero { display: flex; align-items: center; gap: 16px 18px; flex-wrap: wrap; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px;
  background: radial-gradient(120% 150% at 0% 0%, var(--ht-hero-a), transparent 55%), radial-gradient(90% 120% at 100% 0%, var(--ht-hero-b), transparent 60%), var(--panel); }
.ht-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--panel); border: 1px solid var(--line);
  color: var(--ht-a); font-size: 20px; box-shadow: 0 6px 14px -8px var(--ht-a); }
.ht-hero-t { flex: 1 1 380px; min-width: 0; }
.ht-hero h1 { margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.ht-hero p { margin: 0; color: var(--muted); line-height: 1.55; max-width: 66ch; font-size: 13px; }
.ht-sum { display: flex; gap: 6px; flex-wrap: wrap; }
.ht-sum span { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); display: inline-flex; align-items: center;
  font-size: 12.5px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Listenin altinda kisa not: kayit nerede durur, nasil eklenir (sayfa bos kalmasin, okuyan ne oldugunu bilsin). */
.ht-foot { margin: 4px 2px 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; display: flex; gap: 8px; align-items: flex-start; }
.ht-foot .ph { font-size: 15px; color: var(--ht-a); flex: none; margin-top: 1px; }

.ht-projs { display: grid; gap: 14px; }
.ht-proj { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--ht-card-sh); overflow: hidden; min-width: 0; }
.ht-ph { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); min-width: 0;
  background: linear-gradient(var(--panel-2), transparent); }
.ht-ph .ph { color: var(--faint); font-size: 16px; flex: none; }
.ht-ph b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.ht-path { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 0; font-family: ui-monospace, "Geist Mono", SFMono-Regular, Menlo, monospace; }
.ht-n { margin-left: auto; flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.ht-list { list-style: none; margin: 0; padding: 0; }
.ht-it { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); min-width: 0;
  transition: background .14s ease, opacity .18s ease, transform .18s ease; }
.ht-it:first-child { border-top: 0; }
.ht-it.armed { background: color-mix(in srgb, var(--ht-red) 6%, transparent); }
.ht-it.gone { opacity: 0; transform: translateX(8px); }
@media (hover: hover) and (pointer: fine) { .ht-it:not(.armed):hover { background: var(--panel-2); } }
.ht-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 5px; }
.ht-q { font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.ht-a { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; min-width: 0; }
.ht-ans { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-width: 0; padding: 2px 9px 2px 7px; border-radius: 999px;
  background: var(--ht-ok-bg); color: var(--text); font-size: 12.5px; line-height: 20px; }
.ht-ans .ph { color: var(--ht-ok); font-size: 14px; flex: none; }
.ht-ans span { overflow-wrap: anywhere; }
.ht-d { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.ht-rm, .ht-no, .ht-yes { flex: none; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font: inherit; font-size: 12.5px; white-space: nowrap;
  transition: color .12s ease, border-color .12s ease, background .12s ease, transform .1s ease; }
.ht-rm .ph, .ht-yes .ph { font-size: 14px; }
.ht-rm:active, .ht-no:active, .ht-yes:active { transform: scale(.97); }
.ht-rm:focus-visible, .ht-no:focus-visible, .ht-yes:focus-visible { outline: 0; box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 28%, transparent); }
.ht-rm:disabled, .ht-yes:disabled { opacity: .55; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .ht-rm:not(:disabled):hover { color: var(--ht-red); border-color: color-mix(in srgb, var(--ht-red) 45%, var(--line)); }
  .ht-no:hover { color: var(--text); border-color: var(--faint); }
  .ht-yes:not(:disabled):hover { background: color-mix(in srgb, var(--ht-red) 20%, transparent); }
}
/* Onay satiri: soru + Vazgec + kirmizi Kaldir */
.ht-ask { flex: none; display: flex; align-items: center; gap: 8px; animation: ht-in .16s ease-out; }
.ht-askq { font-size: 12.5px; font-weight: 600; color: var(--ht-red); white-space: nowrap; }
/* Kaldir onayi sakin: kirmizi yazi, hafif kirmizi zemin ve cerceve (dolu parlak dugme yok). */
.ht-yes { color: var(--ht-red); background: color-mix(in srgb, var(--ht-red) 13%, transparent); border-color: color-mix(in srgb, var(--ht-red) 45%, transparent); font-weight: 600; }
@keyframes ht-in { from { opacity: 0; transform: translateX(4px); } to { opacity: 1; transform: none; } }

.ht-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 28px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.ht-empty.big { flex-direction: column; gap: 6px; padding: 44px 20px; }
.ht-empty.big .ph { font-size: 28px; color: var(--ht-a); margin-bottom: 4px; }
.ht-empty.big b { color: var(--text); font-weight: 600; }
.ht-empty.big span { max-width: 46ch; line-height: 1.5; font-size: 12.5px; }
.ht-spin { animation: ht-spin 1s linear infinite; display: inline-block; }
@keyframes ht-spin { to { transform: rotate(360deg); } }

/* Soru kartindaki etiketler (public/isler.js qBlock): onerilen secenekte tek bicim, yalniz simge farkli (hatirlanan: yer imi,
   oneri: kivilcim). Secili secenegi beyaz cerceve gosterir; etiket secimden yuksek sesli olmasin. */
.is-q .is-opt .is-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; line-height: 20px; padding: 0 6px 0 5px;
  border-radius: 5px; background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); }
.is-q .is-opt .is-tag .ph { font-size: 12px; color: var(--st-amber); }
.is-q .is-opt .is-tag.rem .ph { color: var(--ht-tag-fill); }
/* Seceneklerin altindaki satir: "Bu projede hatirla" kutusu (buyuk tiklama alani) ve onerinin nedeni (soluk, kucuk). */
.is-qmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin-top: 4px; min-width: 0; }
/* "Bu projede hatirla": ozelligin ana dugmesi; cerceveli, yer imi simgeli, isaretliyken mor. */
.is-qmeta .is-rem { height: 34px; margin: 0; padding: 0 12px 0 9px; border: 1px solid color-mix(in srgb, var(--text) 26%, transparent); border-radius: 7px; background: var(--panel);
  font-size: 13px; font-weight: 500; color: var(--text); gap: 8px; }
.is-qmeta .is-rem .is-cb { width: 17px; height: 17px; }
.is-qmeta .is-rem .ph-bookmark-simple { font-size: 15px; color: var(--ht-tag-fill); }
.is-qmeta .is-rem.on { border-color: var(--ht-tag-fill); background: var(--ht-a-soft); }
.is-qmeta .is-rem.on .is-cb { background: var(--ht-tag-fill); }
.is-qmeta .is-rem:hover { border-color: color-mix(in srgb, var(--ht-tag-fill) 60%, var(--line)); }
.is-qmeta .is-rem:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--ht-a-soft); }
.is-qmeta .is-rsn { margin-top: 0; min-width: 0; font-size: 12.5px; }

@media (max-width: 720px) {
  #hatirla .ht-wrap { gap: 12px; }
  .ht-hero { padding: 14px; gap: 12px; border-radius: 12px; }
  .ht-ic { width: 32px; height: 32px; font-size: 17px; border-radius: 9px; }
  .ht-hero h1 { font-size: 18px; }
  .ht-hero p { font-size: 12.5px; }
  .ht-hero-t { flex-basis: calc(100% - 50px); }
  /* Yeni kabuk: Hatirlananlar acikken Atolye menusu ustte. Kaydirma yok: sekmeler satira sarar, hepsi gorunur. */
  html.isl-on[data-isv="atolye"]:has(#hatirla:not([hidden])) .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  html.isl-on[data-isv="atolye"]:has(#hatirla:not([hidden])) .is-atl { flex-direction: row; flex-wrap: wrap; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line);
    padding: 8px 10px; gap: 4px; mask-image: none; -webkit-mask-image: none; }
  html.isl-on[data-isv="atolye"]:has(#hatirla:not([hidden])) .is-atl h3 { display: none; }
  html.isl-on[data-isv="atolye"]:has(#hatirla:not([hidden])) .is-atl button { flex: none; white-space: nowrap; height: 34px; padding: 0 10px; }
  html.isl-on[data-isv="atolye"]:has(#hatirla:not([hidden])) .is-atl .is-atl-old { margin-top: 0; }
}
@media (max-width: 520px) {
  /* Baslik: simge ve baslik ayni satirda, aciklama ve sayilar kartin tam genisliginde. */
  .ht-hero { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px 12px; }
  .ht-hero-t { display: contents; }
  .ht-hero h1 { grid-column: 2; margin: 0; }
  .ht-hero p { grid-column: 1 / -1; }
  .ht-sum { grid-column: 1 / -1; }
  .ht-ph { flex-wrap: wrap; row-gap: 2px; }
  .ht-path { flex-basis: 100%; order: 3; padding-left: 24px; }
  /* Satir: soru tam genislik; altinda cevap, tarih her zaman cevabin altinda; sagda cerceveli cop kutusu dugmesi (44 x 44,
     adi "Kaldir", ipucu "Bu cevabi kaldir"). Onay satiri acilinca altta tek satir: soru, Vazgec, Kaldir. */
  .ht-it { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 6px 10px; padding: 12px; }
  .ht-main { display: contents; }
  .ht-q { grid-column: 1 / -1; }
  .ht-a { grid-column: 1; flex-direction: column; align-items: flex-start; gap: 4px; }
  .ht-rm { grid-column: 2; grid-row: 2; width: 44px; height: 44px; padding: 0; color: var(--muted); }
  .ht-rm .ph { font-size: 18px; }
  .ht-rm span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ht-ask { grid-column: 1 / -1; flex-wrap: nowrap; gap: 8px; margin-top: 4px; }
  .ht-askq { flex: 1 1 auto; white-space: normal; }
  .ht-no, .ht-yes { height: 36px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .ht-spin, .ht-ask { animation: none; } .ht-it, .ht-rm, .ht-no, .ht-yes { transition: none; } }
