/* ==========================================================================
   KUTUPHANE ARSIVI - kitap listesi + fihrist
   Elder Scrolls Turk
   ========================================================================== */

.est-lib {
	padding-block: var(--est-space-6) var(--est-space-7);
}

/* --------------------------------------------------------------------------
   1. Sayfa basligi
   -------------------------------------------------------------------------- */
.est-lhead__row {
	display: flex;
	align-items: baseline;
	gap: 1.25em;
	flex-wrap: wrap;
}

.est-lhead__eyebrow {
	font-family: var(--est-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--est-accent);
	white-space: nowrap;
}

.est-lhead__title {
	margin: 0 0 0.3em;
	font-size: clamp(1.9rem, 3vw, 2.75rem);
	font-weight: 600;
	line-height: 1.15;
}

.est-lhead__sub {
	margin: 0;
	max-width: 46em;
	font-size: var(--est-text-lg);
	color: var(--est-ink-muted);
}

.est-lib__rule {
	margin: var(--est-space-5) 0;
	border: 0;
	border-top: 1px solid var(--est-line);
}

.est-lib__rule--feat { margin-bottom: var(--est-space-5); }

/* --------------------------------------------------------------------------
   2. One cikan kitap - iki esit sutun
   -------------------------------------------------------------------------- */
.est-lfeat {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--est-space-5);
	align-items: start;
}

.est-lfeat__kicker {
	margin: 0 0 0.9em;
	font-family: var(--est-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--est-gold-soft);
}

.est-lfeat__title {
	margin: 0 0 0.5em;
	font-size: clamp(1.6rem, 2.6vw, 2.4rem);
	font-weight: 600;
	line-height: 1.18;
}

.est-lfeat__title a { color: var(--est-ink); }

.est-lfeat__title a:hover,
.est-lfeat__title a:focus-visible {
	color: var(--est-accent);
	text-decoration: none;
}

.est-lfeat__sub {
	margin: 0;
	max-width: 34em;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--est-ink-muted);
}

/* --------------------------------------------------------------------------
   3. Govde: sol liste + sag fihrist
   -------------------------------------------------------------------------- */
.est-lbody {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 17.5rem;
	gap: var(--est-space-6);
	align-items: stretch;
}

/* --- Liste --- */
.est-lgrid {
	border-top: 1px solid var(--est-line-soft);
	transition: opacity var(--est-fade);
}

.est-lgrid.is-swapping { opacity: 0; }

.est-lrow {
	display: grid;
	grid-template-columns: 11rem minmax(0, 1fr);
	gap: 1.5em;
	align-items: start;
	padding: 1.15em 1.1em;
	border-bottom: 1px solid var(--est-line-soft);
	color: inherit;
	text-decoration: none;
	transition: background var(--est-fade), border-color var(--est-fade);
}

.est-lrow:hover,
.est-lrow:focus-visible {
	background: var(--est-bg-raised);
	border-bottom-color: var(--est-line);
	text-decoration: none;
	outline: none;
}

.est-lrow__cat {
	font-family: var(--est-font-mono);
	font-size: 0.625rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--est-gold-soft);
	padding-top: 0.35em;
	transition: color var(--est-fade);
}

.est-lrow:hover .est-lrow__cat { color: var(--est-accent); }

.est-lrow__body { display: block; }

.est-lrow__title {
	display: block;
	font-family: var(--est-font-heading);
	font-size: 1.1875rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--est-ink);
	transition: color var(--est-fade);
}

.est-lrow:hover .est-lrow__title { color: var(--est-accent); }

.est-lrow__excerpt {
	display: block;
	margin-top: 0.35em;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--est-ink-muted);
}

/* Yeni gelen satirlar */
.est-lrow--new {
	opacity: 0;
	animation: est-lrow-in 380ms ease-out forwards;
}

@keyframes est-lrow-in {
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.est-lrow--new { animation: none; opacity: 1; }
}

/* --------------------------------------------------------------------------
   4. Fihrist (kismen sabit)
   -------------------------------------------------------------------------- */
.est-lside {
	position: relative;
	height: 100%;
}

.est-lside__inner {
	position: sticky;
	top: var(--est-space-5);
	padding-left: var(--est-space-5);
	border-left: 1px solid var(--est-line-soft);
}

.est-lside__head,
.est-lside__sub {
	margin: 0 0 1em;
	font-family: var(--est-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--est-ink-faint);
}

.est-lside__sub { margin-top: var(--est-space-5); }

/* --- Konu filtreleri --- */
.est-ltopics {
	display: flex;
	flex-direction: column;
}

.est-ltopic {
	position: relative;
	display: grid;
	grid-template-columns: 1.1em minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.5em;
	width: 100%;
	padding: 0.62em 0;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--est-line-soft);
	color: var(--est-ink);
	font-family: var(--est-font-heading);
	font-size: 1rem;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: color var(--est-fade);
}

.est-ltopic:last-child { border-bottom: 0; }

.est-ltopic:hover,
.est-ltopic:focus-visible { color: var(--est-accent); }

.est-ltopic__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--est-accent);
	opacity: 0;
	transform: translateY(-2px);
	transition: opacity var(--est-fade), transform var(--est-fade);
}

.est-ltopic.is-active .est-ltopic__mark {
	opacity: 1;
	transform: none;
}

.est-ltopic.is-active { color: var(--est-accent); }

.est-ltopic__count {
	font-family: var(--est-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	color: var(--est-ink-faint);
}

.est-ltopic.is-active .est-ltopic__count { color: var(--est-accent); }

/* --- Oyun filtreleri --- */
.est-lgames {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45em;
}

.est-lgame {
	padding: 0.45em 0.85em;
	background: var(--est-bg-raised);
	border: 1px solid var(--est-line-soft);
	color: var(--est-ink-muted);
	font-family: var(--est-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background var(--est-fade), border-color var(--est-fade), color var(--est-fade);
}

.est-lgame:hover,
.est-lgame:focus-visible {
	border-color: var(--est-line);
	color: var(--est-accent);
}

.est-lgame.is-active {
	background: var(--est-accent);
	border-color: var(--est-accent);
	color: #F5EFE6;
}

/* --- Rastgele kitap --- */
.est-lrandom {
	display: block;
	margin-top: var(--est-space-5);
	padding: 0.8em 1em;
	border: 1px solid var(--est-line);
	color: var(--est-ink);
	font-family: var(--est-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-align: center;
	text-transform: uppercase;
	transition: background var(--est-fade), border-color var(--est-fade), color var(--est-fade);
}

.est-lrandom:hover,
.est-lrandom:focus-visible {
	background: var(--est-accent);
	border-color: var(--est-accent);
	color: #F5EFE6;
	text-decoration: none;
}

/* --- Arama --- */
.est-lsearch { margin-top: 0.6em; }

.est-lsearch__field {
	width: 100%;
	padding: 0.72em 0.9em;
	background: var(--est-bg-raised);
	border: 1px solid var(--est-line-soft);
	color: var(--est-ink);
	font-family: var(--est-font-body);
	font-size: 0.9375rem;
}

.est-lsearch__field:focus {
	outline: none;
	border-color: var(--est-accent);
}

.est-lside__meta {
	margin: 0.9em 0 0;
	min-height: 1em;
	font-family: var(--est-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	color: var(--est-ink-faint);
}

/* --------------------------------------------------------------------------
   4b. Kitap tekil sayfasi - kunye
   -------------------------------------------------------------------------- */
.est-book .est-lbody { margin-top: var(--est-space-2, 0.5rem); }

.est-book__content {
	max-width: 44em;
	font-size: 1.0625rem;
	line-height: 1.75;
}

.est-book__content > *:first-child { margin-top: 0; }

.est-kunye {
	margin: 0;
	display: flex;
	flex-direction: column;
}

/* Fihristteki ribbon sutunu kadar sol bosluk (1.1em + 0.5em bosluk). */
.est-kunye__row {
	padding: 0.72em 0 0.72em 1.6em;
	border-bottom: 1px solid var(--est-line-soft);
}

.est-kunye__row:first-child { padding-top: 0; }
.est-kunye__row:last-child { border-bottom: 0; }

/* Stiller fihristle ayni: baslik iri (Cinzel), deger kucuk mono. */
.est-kunye__label {
	margin: 0 0 0.25em;
	font-family: var(--est-font-heading);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--est-ink);
}

.est-kunye__value {
	margin: 0;
	font-family: var(--est-font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.5;
	color: var(--est-ink-faint);
}

.est-book .est-lside__inner .est-video {
	margin-top: var(--est-space-5);
}

.est-book .est-lside__inner .est-video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--est-line-soft);
	display: block;
}

/* --------------------------------------------------------------------------
   5. Yukleniyor + bos sonuc
   -------------------------------------------------------------------------- */
.est-lmore {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.7em;
	min-height: 4em;
	margin-top: var(--est-space-4);
	font-family: var(--est-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--est-ink-faint);
	opacity: 0;
}

.est-lmore.is-busy { opacity: 1; }
.est-lmore.is-done { display: none; }

.est-lmore__spin {
	width: 14px;
	height: 14px;
	border: 2px solid var(--est-line);
	border-top-color: var(--est-accent);
	border-radius: 50%;
	animation: est-spin 700ms linear infinite;
}

.est-lempty {
	padding: var(--est-space-5) 0;
	font-size: var(--est-text-lg);
	color: var(--est-ink-muted);
}

/* --------------------------------------------------------------------------
   6. Duyarli davranis
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.est-lbody { grid-template-columns: minmax(0, 1fr) 15rem; gap: var(--est-space-5); }
	.est-lrow { grid-template-columns: 9rem minmax(0, 1fr); }
}

@media (max-width: 900px) {
	.est-lfeat { grid-template-columns: minmax(0, 1fr); }
	.est-lfeat__col--aside { display: none; }
	.est-lbody { grid-template-columns: minmax(0, 1fr); }
	.est-lside__inner {
		position: static;
		padding-left: 0;
		padding-top: var(--est-space-5);
		border-left: 0;
		border-top: 1px solid var(--est-line);
	}
}

@media (max-width: 620px) {
	.est-lrow {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.35em;
	}
	.est-lrow__cat { padding-top: 0; }
}

/* --------------------------------------------------------------------------
   7. Blog / viki tekil yazi - dort parcali duzen
   -------------------------------------------------------------------------- */
.est-bstop {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 17.5rem;
	gap: var(--est-space-6);
	align-items: stretch;
}

.est-bstop__main { min-width: 0; }

/* One cikan gorsel / video */
.est-bmedia {
	margin: var(--est-space-5) 0 0;
}

.est-bmedia img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--est-line-soft);
}

.est-bmedia .est-video iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--est-line-soft);
}

/* Kunye kutusu (sag ust) */
.est-bmeta { height: 100%; }

.est-bmeta__inner {
	position: sticky;
	top: var(--est-space-5);
	padding-left: var(--est-space-5);
	border-left: 1px solid var(--est-line-soft);
}

.est-bmeta__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.est-bmeta__row {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	margin: 0;
	padding: 0.72em 0;
	border-bottom: 1px solid var(--est-line-soft);
}

.est-bmeta__row:first-child { padding-top: 0; }

.est-bmeta__row:last-child { border-bottom: 0; }

.est-bmeta__icon {
	flex: 0 0 auto;
	margin-top: 0.2em;
	color: var(--est-gold-soft);
}

.est-bmeta__icon svg {
	display: block;
	width: 15px;
	height: 15px;
}

.est-bmeta__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Etiket/deger stilleri kitap kunyesi ile ortak: .est-kunye__label / .est-kunye__value */
.est-bmeta .est-kunye__value a { color: inherit; }

.est-bmeta .est-kunye__value a:hover,
.est-bmeta .est-kunye__value a:focus-visible {
	color: var(--est-accent);
	text-decoration: none;
}

.est-bmeta__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2em 0.8em;
}

/* Kenar cubugundaki Son Yazilar kutusunda desen cercevesi yok */
.est-bsingle .est-aside .est-desen {
	border: 0;
	border-image: none;
	padding: 0;
}

/* Icerik */
.est-bsingle .est-bentry__content {
	max-width: 44em;
	font-size: 1.0625rem;
	line-height: 1.85;
}

.est-bsingle .est-bentry__content p { margin-bottom: 1.5em; }

.est-bsingle .est-bentry__content a { text-decoration: underline; }

/* Sag kenar cubugu: kaydirma cubugu gorunmesin, sticky kalsin */
.est-bsingle .est-aside {
	max-height: none;
	overflow: visible;
	scrollbar-width: none;
}

.est-bsingle .est-aside::-webkit-scrollbar { width: 0; height: 0; }

@media (max-width: 1100px) {
	.est-bstop {
		grid-template-columns: minmax(0, 1fr) 15rem;
		gap: var(--est-space-5);
	}
}

@media (max-width: 900px) {

	.est-bstop { grid-template-columns: minmax(0, 1fr); }

	.est-bmeta__inner {
		padding-left: 0;
		padding-top: var(--est-space-5);
		border-left: 0;
		border-top: 1px solid var(--est-line);
	}
}

/* --------------------------------------------------------------------------
   8. Viki tekil yazi - sag kenar cubugu (bilgi kutusu + ilgili listeler)
   -------------------------------------------------------------------------- */
.est-waside {
	display: flex;
	flex-direction: column;
	gap: var(--est-space-6);
}

/* Bilgi kutusu */
.est-winfo__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.est-winfo__row {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0.72em 0;
	border-bottom: 1px solid var(--est-line-soft);
}

.est-winfo__row:first-child { padding-top: 0; }

.est-winfo__row:last-child { border-bottom: 0; }

/* Ilgili vikiler / ilgili kitaplar: stiller blogdaki Son Yazilar kutusuyla
   ayni (.est-widget__title / __list / __name / __date components.css icinde).
   Buraya ek kural yazilmiyor ki iki kenar cubugu birebir ayni gorunsun. */

/* Viki kenar cubugunda desen cercevesi ve kaydirma cubugu yok */
.est-wsingle .est-aside {
	max-height: none;
	overflow: visible;
	scrollbar-width: none;
}

.est-wsingle .est-aside::-webkit-scrollbar { width: 0; height: 0; }

.est-wsingle .est-aside .est-desen {
	border: 0;
	border-image: none;
	padding: 0;
}

@media (max-width: 900px) {
	.est-waside { gap: var(--est-space-5); }
}
/* --------------------------------------------------------------------------
   8. Tekil yazi kenar cubugu: Icerik (TOC) kutusu
   -------------------------------------------------------------------------- */
.est-bsingle .est-lside__inner {
	display: flex;
	flex-direction: column;
	gap: var(--est-space-5);
	padding-left: 0;
	border-left: 0;
}

/* Her kutunun kendi sol cizgisi */
.est-toc,
.est-bsingle .est-aside {
	position: relative;
	padding-left: var(--est-space-5);
}

/* em degil rem: isaretci ile kutunun dolgusu ayni pikselde olsun */
.est-toc { --est-toc-pad: 2.5rem; padding-left: var(--est-toc-pad); }

.est-bsingle .est-aside { border-left: 1px solid var(--est-line-soft); }

/* Icerik kutusunun sol cizgisi: aktif isaretci ayni cizginin uzerine biniyor */
.est-toc::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 2px;
	background: var(--est-line-soft);
}

.est-toc__head {
	margin: 0 0 0.9em;
	font-family: var(--est-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--est-ink-faint);
}

.est-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.est-toc__item { margin: 0; }

.est-toc__link {
	position: relative;
	display: block;
	padding: 0.4em 0;
	color: var(--est-ink-muted);
	font-family: var(--est-font-heading);
	font-size: 0.875rem;
	line-height: 1.4;
	text-decoration: none;
	transition: color var(--est-fade);
}

.est-toc__link::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(-1 * var(--est-toc-pad));
	width: 2px;
	background: transparent;
	transition: background var(--est-fade);
}

.est-toc__item--h3 .est-toc__link { padding-left: 1em; }

.est-toc__link:hover,
.est-toc__link:focus-visible {
	color: var(--est-ink);
	text-decoration: none;
}

.est-toc__link.is-active {
	color: var(--est-accent);
	text-decoration: none;
}

.est-toc__link.is-active::before { background: var(--est-accent); }

/* Baslik hedefe kayarken tepede biraz bosluk kalsin */
.est-bentry__content .est-anchor { scroll-margin-top: 2em; }

@media (max-width: 900px) {
	.est-toc { display: none; }
}
