/* ===========================
   La Foa — Kaynakça sayfası
   İki panelli, bağımsız kaydırmalı kaynakça görünümü.
   pages-style.css'in :root değişkenlerini (--accent, --text vb.) kullanır.
   =========================== */

.kynk-shell {
  margin-top: 80px;
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.kynk-intro {
  flex: none;
  padding: 22px 32px 4px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.kynk-intro .page-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  padding-bottom: 0;
  border-bottom: none;
}
.kynk-panes {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  max-width: 1400px;
  margin: 10px auto 0;
  width: 100%;
  border-top: 1px solid var(--border);
}
.kynk-spine {
  background: var(--border);
  position: relative;
}
.kynk-spine::before, .kynk-spine::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
}
.kynk-spine::before { top: 24px; }
.kynk-spine::after { bottom: 24px; }

.kynk-pane {
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.kynk-pane-head {
  flex: none;
  padding: 18px 28px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}
.kynk-eyebrow {
  font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent);
}
.kynk-title-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kynk-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 0; }
.kynk-count {
  font-size: .74rem; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.kynk-search { position: relative; }
.kynk-search input {
  width: 100%; height: 36px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: .85rem;
  padding: 0 34px 0 34px;
  outline: none;
}
.kynk-search input:focus { border-color: var(--accent); }
.kynk-search input::placeholder { color: var(--text-muted); }
.kynk-search svg.kynk-search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.kynk-search .kynk-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border: none; background: none; color: var(--text-muted);
  cursor: pointer; display: none; align-items: center; justify-content: center; border-radius: 6px;
}
.kynk-search .kynk-clear:hover { background: var(--bg); color: var(--text); }
.kynk-search.has-value .kynk-clear { display: flex; }

/* Bölge etiketleri (sağ panel) */
.kynk-region-row {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 3px;
  scrollbar-width: thin;
}
.kynk-region-row::-webkit-scrollbar { height: 5px; }
.kynk-region-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.kynk-region-pill {
  flex: none;
  font-family: var(--font-sans);
  font-size: .72rem; font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sec);
  cursor: pointer;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background .12s, color .12s, border-color .12s;
}
.kynk-region-pill:hover { border-color: var(--accent-light); color: var(--text); }
.kynk-region-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.kynk-region-pill .n { margin-left: 3px; }

/* A-Z şeridi (sol panel) */
.kynk-body-row { flex: 1; min-height: 0; min-width: 0; display: flex; }
.kynk-az-rail {
  flex: none; width: 30px;
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 0;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  scrollbar-width: none;
}
.kynk-az-rail::-webkit-scrollbar { display: none; }
.kynk-az-btn {
  width: 22px; height: 20px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: .66rem; font-weight: 700;
  color: var(--text-muted);
  background: none; border: none; cursor: pointer; border-radius: 4px;
  opacity: .35;
}
.kynk-az-btn.enabled { opacity: 1; }
.kynk-az-btn.enabled:hover { background: var(--bg); color: var(--accent); }
.kynk-az-btn.current { background: var(--accent); color: #fff; opacity: 1; }

.kynk-list {
  flex: 1; min-width: 0; overflow-y: auto;
  padding: 0 28px 48px;
}
.kynk-list.no-rail { padding-left: 28px; }

.kynk-group-head {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg);
  padding: 10px 0 6px;
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: var(--accent);
  display: flex; align-items: baseline; gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.kynk-group-head .n {
  font-weight: 400; color: var(--text-muted); font-size: .72rem;
  font-variant-numeric: tabular-nums;
}

.kynk-entry {
  display: flex; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.kynk-entry:last-child { border-bottom: none; }
.kynk-entry .idx {
  flex: none; width: 26px; text-align: right;
  font-family: var(--font-sans);
  font-size: .68rem; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
  opacity: .7;
}
.kynk-entry .txt {
  font-family: var(--font-serif);
  font-size: .92rem; line-height: 1.55; color: var(--text-sec);
}
.kynk-entry .txt mark {
  background: var(--accent-light); color: #2C1810;
  border-radius: 2px; padding: 0 1px;
}
.kynk-entry.dim { display: none; }

.kynk-empty {
  padding: 40px 0; text-align: center; color: var(--text-muted); font-size: .82rem;
  font-family: var(--font-sans);
}
.kynk-empty.hidden { display: none; }

.kynk-loading {
  padding: 40px 0; text-align: center; color: var(--text-muted); font-size: .85rem;
  font-family: var(--font-sans);
}

@media (max-width: 900px) {
  .kynk-panes { grid-template-columns: 1fr; border-top: none; }
  .kynk-spine { display: none; }
  .kynk-pane { min-height: 0; }
  .kynk-shell { height: auto; overflow: visible; }
  .kynk-body-row { height: 56vh; }
}

@media (max-width: 768px) {
  .kynk-intro { padding: 18px 20px 4px; }
  .kynk-pane-head { padding: 16px 20px 10px; }
  .kynk-list, .kynk-list.no-rail { padding: 0 20px 36px; }
}
