/* Gozlem modu (public/gozlem.js), Gelisim panelinin icinde. Ortak tokenlar style.css (--panel, --line, --text, --muted, --faint,
   --accent) ve gelisim.css'ten (--gl-*); yeni renk tanimi yok. Siniflar gz- onekli. Dar pencerede (720 px ve alti) tek sutun. */

/* ---------- liste secici: Hub ve gozlenen projeler */
/* Sekmeler ve Gozlem modu dugmesi ayni satirda: sekmeler kendi kutusunda yana kayar, dugme satirin sonunda ayri bicimde.
   Tasan kenarda zemin rengine solan katman ve ok (gz-fl / gz-fr, public/gozlem.js tabs); mask-image'a dayanmaz. */
.gz-bar { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 12px 0 2px; }
.gz-lwrap { position: relative; display: flex; min-width: 0; flex: 0 1 auto; }
.gz-lscroll { position: relative; display: flex; gap: 6px; min-width: 0; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.gz-lscroll::-webkit-scrollbar { display: none; }
.gz-lwrap::before, .gz-lwrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44px; pointer-events: none; opacity: 0; transition: opacity .15s ease; z-index: 1; }
.gz-lwrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.gz-lwrap::after { right: 0; background: linear-gradient(270deg, var(--bg) 30%, transparent); }
.gz-lwrap.gz-fl::before, .gz-lwrap.gz-fr::after { opacity: 1; }
.gz-more { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); z-index: 2; font-size: 15px; color: var(--muted); opacity: 0; pointer-events: none; }
.gz-lwrap.gz-fr .gz-more { opacity: 1; }
.gz-lchip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 10px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-size: 13px; box-shadow: var(--gl-card-sh);
  transition: border-color .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease; }
.gz-lchip .ph { font-size: 16px; }
.gz-lchip .t { color: var(--text); font-weight: 600; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gz-lchip .s { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gz-lchip.off .t { color: var(--muted); }
.gz-lchip.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); color: var(--accent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, var(--panel)), var(--panel) 70%);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--gl-card-sh); }
.gz-lchip.on .s { color: var(--muted); }
.gz-lchip:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.gz-lchip:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .gz-lchip:not(.on):hover { border-color: var(--faint); color: var(--text); } }
/* Ayar dugmesi sekmeye benzemesin: golgesiz, yuvarlak koseli kare cerceve, ayar simgesi. Acikken (Kapat) sakin ikincil dugme. */
.gz-setbtn { flex: none; height: 34px; gap: 6px; padding: 0 11px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--gl-gorunum) 45%, var(--line)); background: transparent; box-shadow: none; font-size: 12.5px; }
.gz-setbtn .ph { color: var(--gl-gorunum); font-size: 15px; }
.gz-setbtn.on { color: var(--muted); border-style: solid; border-color: var(--line); background: var(--panel-2); }
.gz-setbtn.on .ph { color: var(--muted); }
.gz-ornek { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--gl-verim); background: color-mix(in srgb, var(--gl-verim) 14%, transparent); white-space: nowrap; }
.gz-ornek .ph { font-size: 11px !important; color: inherit !important; }
.gz-hero h1 .gz-ornek { height: 20px; font-size: 11px; }
.gz-hero h1 .gz-ornek .ph { width: auto; height: auto; border: 0; background: none; box-shadow: none; display: inline; }

/* ---------- Gozlem modu ayar bolumu */
.gz-set { margin: 10px 0 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 12px;
  background: radial-gradient(110% 140% at 0% 0%, var(--gl-hero-b), transparent 60%), radial-gradient(90% 120% at 100% 100%, var(--gl-hero-c), transparent 60%), var(--panel);
  box-shadow: var(--gl-card-sh); }
.gz-sethead h2 { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.gz-sethead h2 .ph { color: var(--gl-gorunum); font-size: 18px; }
/* Genis pencerede tanim solda, form sagda (bos sag yarisi kalmaz); 900 px altinda alt alta. */
.gz-settop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px 28px; align-items: start; }
.gz-sethead p { margin: 0; max-width: 70ch; color: color-mix(in srgb, var(--text) 80%, var(--muted)); font-size: 13.5px; line-height: 1.55; }
.gz-how { margin-top: 6px; font-size: 13px; color: color-mix(in srgb, var(--text) 75%, var(--muted)); }
.gz-how summary { cursor: pointer; width: max-content; color: var(--accent); font-weight: 500; }
.gz-how p { margin-top: 6px; font-size: 13px; }
.gz-subh { margin: 4px 0 -6px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.gz-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gz-rbtn { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 12.5px; color: color-mix(in srgb, var(--text) 75%, var(--muted)); }
.gz-rbtn b { color: var(--text); font-weight: 600; }
.gz-rbtn .ph { margin-left: auto; color: var(--muted); }
.gz-rbtn:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
@media (hover: hover) and (pointer: fine) { .gz-rbtn:hover { border-color: var(--faint); } }
.gz-sethead .gz-lim { margin-top: 8px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
/* Proje ve siklik yan yana, Gozlemi ac altlarinda tam genislik dolu ana dugme. */
.gz-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 150px); align-items: end; gap: 8px 10px;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--panel-2) 55%, var(--panel)); }
.gz-f { display: grid; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.gz-f select { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); padding: 0 8px; font: inherit; font-size: 13px; }
.gz-addbtn { grid-column: 1 / -1; height: 38px; gap: 6px; padding: 0 16px; font-weight: 600; justify-content: center; }
/* Proje secilmeden de dolu ana dugme gibi gorunur (soluk); secilince tam renk. Neden kapali oldugu altindaki satirda. */
.gz-addbtn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.gz-addhint { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); }
.gz-plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gz-prow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 200px); align-items: center; gap: 12px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--panel) 70%, var(--bg)); }
.gz-prow.off { opacity: .8; }
.gz-pn { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.gz-pn .ph { color: var(--gl-gorunum); align-self: center; }
.gz-pn b { font-weight: 600; white-space: nowrap; }
.gz-pn span { color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-family: "Geist Mono", ui-monospace, monospace; }
.gz-pnext { color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gz-none { margin: 0; color: var(--muted); font-size: 13px; }
/* Etiket anahtarin yaninda, kendi yerinde (knob track'in icinde kalir). */
.gz-tog .gz-togl { min-width: 5ch; color: var(--text); font-weight: 500; }

/* ---------- proje sayfasi: baslik (ustte ad ve klasor, altinda denetim kutusu) */
.gz-hero { display: grid; gap: 12px; margin-top: 10px; align-items: stretch; }
/* Ust satir: ad ve klasor solda, denetim kutusu ayni satirin sag kenarinda; altindaki kutucuklar ve not tam genislik. */
.gz-htop { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; min-width: 0; }
.gz-htitle { display: grid; gap: 4px; min-width: 0; flex: 1 1 260px; }
.gz-hero h1 { margin: 0; min-width: 0; display: flex; align-items: center; gap: 10px; }
.gz-hero h1 .ph { color: var(--gl-gorunum); box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--gl-gorunum) 60%, transparent); }
.gz-hn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gz-hp { margin: 0 0 0 44px; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted); font-family: "Geist Mono", ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gz-hp .ph { flex: none; font-size: 14px; }
.gz-hctl { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; width: max-content; max-width: 100%; padding: 8px 8px 8px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--panel) 70%, transparent); }
.gz-runbtn { height: 36px; gap: 7px; padding: 0 16px; font-weight: 600; box-shadow: 0 6px 16px -8px var(--accent); }
.gz-runbtn .ph { font-size: 17px; }
/* Tur bilgisi ayri kutucuklarda: son tur, sonraki, sinir. */
.gz-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gz-fact { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; min-height: 32px; padding: 5px 11px; border-radius: 10px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--panel-2) 60%, var(--panel)); font-size: 12.5px; color: color-mix(in srgb, var(--text) 78%, var(--muted)); font-variant-numeric: tabular-nums; }
.gz-fact .ph { font-size: 15px; color: var(--muted); }
.gz-fact .k { color: var(--muted); }
.gz-fact b { color: var(--text); font-weight: 600; }
.gz-fact.run { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.gz-fact.run .ph { color: var(--accent); }
.gz-rst { font-weight: 600; }
.gz-rst.s-bitti { color: var(--gl-guven); }
.gz-rst.s-hata, .gz-rst.s-sure, .gz-rst.s-butce { color: var(--bad); }
.gz-rst.s-calisiyor { color: var(--accent); }
.gz-hnotes { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.gz-hnotes > div { display: grid; gap: 6px; min-width: 0; }
.gz-note { margin: 0; display: flex; align-items: flex-start; gap: 7px; font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.gz-note .ph { flex: none; font-size: 16px; margin-top: 1px; color: var(--muted); }
.gz-note.live .ph { color: var(--gl-verim); }
.gz-note.ok .ph { color: var(--gl-guven); }
.gz-note.warn .ph { color: var(--bad); }
/* Durum satiri one cikar (kutu, kalin yazi); ozet altinda, etiketli ve sakin. */
.gz-status .gz-note { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 500; }
.gz-status .gz-note.live { border-color: color-mix(in srgb, var(--gl-verim) 45%, var(--line)); }
.gz-status .gz-note.ok { border-color: color-mix(in srgb, var(--gl-guven) 40%, var(--line)); }
.gz-status .gz-note.warn { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.gz-sum { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--text) 72%, var(--muted)); max-width: 96ch; }
.gz-sum span { margin-right: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.gz-shot, .gz-evshot { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel-2); box-shadow: var(--gl-card-sh); }
.gz-shot img { display: block; width: 220px; height: 138px; object-fit: cover; object-position: top; }
.gz-evshot { width: max-content; max-width: 100%; }
.gz-evshot img { display: block; max-width: min(420px, 100%); max-height: 240px; object-fit: cover; object-position: top; }
@media (hover: hover) and (pointer: fine) { .gz-shot:hover, .gz-evshot:hover { box-shadow: var(--gl-card-sh-h); border-color: var(--faint); } }

/* ---------- suzgec ve kartlar */
.gz-filters { display: grid; gap: 8px; margin: 12px 0 8px; }
.gz-fst, .gz-far { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.gz-far { padding-top: 8px; border-top: 1px dashed var(--line); }
.gz-list { display: grid; gap: 10px; }
.gz-title { overflow-wrap: anywhere; }
.gz-card .gl-why { -webkit-line-clamp: 3; }
.gz-card .gl-files { white-space: nowrap; text-overflow: ellipsis; }
.gz-ev { display: grid; gap: 6px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel-2) 70%, var(--panel)); min-width: 0; }
.gz-evh { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gz-ev pre { margin: 0; font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; line-height: 1.5; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 9.5em; overflow: auto; }
.gz-prompt { display: grid; gap: 8px; }
.gz-prompt p { margin: 0; font-size: 13px; color: var(--muted); }
.gz-prompt textarea { width: 100%; box-sizing: border-box; min-height: 160px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel-2); color: var(--text); font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; line-height: 1.5; }
.gz-prompt textarea:focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gz-runs ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: 12.5px; color: var(--muted); }
.gz-runs li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); line-height: 1.55; }
.gz-runs li b { color: var(--text); font-weight: 600; }
.gz-runs .warn { color: var(--gl-verim); }
.gz-runs .bad { color: var(--bad); }

/* ---------- dar pencere */
@media (max-width: 900px) {
  .gz-settop { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  /* Secici ve Gozlem modu dugmesi ayni satirda; sekmeler yana kayar. */
  .gz-set { padding: 14px; }
  .gz-add { grid-template-columns: minmax(0, 1fr) minmax(110px, 140px); }
  .gz-prow { grid-template-columns: minmax(0, 1fr) auto; }
  .gz-prow .gz-pn { grid-column: 1 / -1; }
  .gz-pnext { grid-column: 1 / -1; text-align: left; }
  .gz-hnotes { grid-template-columns: minmax(0, 1fr); }
  .gz-shot img { width: 100%; height: 160px; }
  .gz-hp { margin-left: 0; }
  /* Denetimler: ustte anahtar ve siklik, altta tam genislik Simdi gozle. */
  .gz-hctl { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr); padding: 10px 12px; }
  .gz-hctl .gl-every { justify-self: end; }
  .gz-runbtn { grid-column: 1 / -1; width: 100%; justify-content: center; }
}
@media (max-width: 520px) {
  /* Telefon: sekmeler satiri doldurur (secili sekme gorunur alana kayar, tasan kenarda solma ve ok); ayar dugmesi satirin
     sonunda kucuk yuvarlak simge (adi ipucunda ve ekran okuyucuda). */
  .gz-lwrap { flex: 1 1 auto; }
  .gz-setbtn { width: 34px; padding: 0; justify-content: center; }
  .gz-setbtn .gz-stx { display: none; }
  .gz-lchip .s { display: none; }
  .gz-lchip.on .s { display: inline-flex; }
  .gz-facts { display: grid; grid-template-columns: minmax(0, 1fr); }
}
