/* Kırşehir Güncel ESH — ek stiller (arşiv, sayfalama, 404, sayfa) */

.esh-single-layout > div {
	min-width: 0;
}

.esh-archive-title {
	margin: 6px 0 16px;
	font-size: 28px;
	font-weight: 900;
	line-height: 1.2;
}

.esh-archive-desc {
	color: var(--kg-text-muted);
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 18px;
}

.esh-archive-grid {
	margin-bottom: 8px;
}

.esh-empty {
	color: var(--kg-text-muted);
	padding: 30px 0;
}

/* Sayfalama */
.esh-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 28px;
}

.esh-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--kg-border);
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	color: var(--kg-text);
	background: var(--kg-bg);
}

.esh-pagination .page-numbers.current {
	background: var(--kg-red);
	border-color: var(--kg-red);
	color: #fff;
}

.esh-pagination .page-numbers:hover {
	border-color: var(--kg-red);
	color: var(--kg-red);
}

.esh-pagination .page-numbers.current:hover {
	color: #fff;
}

/* 404 */
.esh-404 {
	text-align: center;
	padding: 80px 16px;
}

.esh-404-code {
	font-size: 96px;
	font-weight: 900;
	line-height: 1;
	color: var(--kg-red);
}

.esh-404-text {
	font-size: 18px;
	color: var(--kg-text-muted);
	margin: 12px 0 24px;
}

.esh-404-home {
	display: inline-block;
	background: var(--kg-red);
	color: #fff;
	padding: 12px 26px;
	border-radius: 6px;
	font-weight: 800;
	margin-bottom: 28px;
}

.esh-404-home:hover {
	background: var(--kg-red-hover);
	color: #fff;
}

.esh-404 .esh-search-form {
	max-width: 460px;
	margin: 0 auto;
}

/* Statik sayfa */
.esh-page {
	max-width: 860px;
	padding: 26px 0 56px;
}

.esh-page .esh-single-content {
	margin-top: 8px;
}

/* Footer app butonları */
.esh-footer-apps {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.esh-footer-apps a {
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
}

.esh-footer-apps a:hover {
	background: var(--kg-red);
	border-color: var(--kg-red);
}

/* Spor bloğu sosyal hap buton */
.esh-sport-social {
	display: inline-flex;
	align-items: center;
	background: #2563eb;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 7px 16px;
	border-radius: 50px;
	white-space: nowrap;
}

.esh-sport-social:hover {
	background: #1d4ed8;
	color: #fff;
}

/* Paylaş butonları */
.esh-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 14px 0 20px;
	font-size: 13px;
	font-weight: 700;
}

.esh-share a {
	padding: 6px 13px;
	border-radius: 5px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.esh-share a:hover { color: #fff; opacity: .9; }
.esh-share-fb { background: #1877f2; }
.esh-share-x  { background: #111111; }
.esh-share-wa { background: #25d366; }
.esh-share-tg { background: #229ed9; }

/* Etiketler */
.esh-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 22px 0 8px;
}

.esh-tags a {
	display: inline-block;
	background: var(--kg-surface);
	border: 1px solid var(--kg-border);
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.esh-tags a:hover {
	background: var(--kg-red);
	border-color: var(--kg-red);
	color: #fff;
}

/* Slider "T" (tüm manşetler) */
.esh-slider-num-all {
	font-weight: 900;
	background: var(--kg-red);
	color: #fff;
	text-decoration: none;
}

@media (max-width: 640px) {
	.esh-archive-title {
		font-size: 23px;
	}
	.esh-404-code {
		font-size: 72px;
	}
}

/* ==================== KATEGORİ / ARŞİV SAYFASI (ENSONHABER MİMARİSİ) ==================== */
.esh-archive-page {
	padding-top: 20px;
	padding-bottom: 48px;
}

.esh-archive-header {
	margin-bottom: 20px;
}

.esh-archive-header .esh-section-title {
	font-size: 24px;
	font-weight: 800;
}

/* Üst 1 + 3 Vitrin Bloğu */
.esh-cat-hero {
	display: grid;
	grid-template-columns: 1.32fr 1fr;
	gap: 24px;
	align-items: stretch;
	margin-bottom: 28px;
}

.esh-cat-hero.is-solo {
	grid-template-columns: minmax(0, 760px);
}

/* Sol Dev Görsel Kart */
.esh-cat-hero-main {
	position: relative;
	border-radius: 4px;
	overflow: hidden;
	background: #0f172a;
	min-height: 390px;
}

.esh-cat-hero-link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

.esh-cat-hero-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.esh-cat-hero-main:hover img {
	transform: scale(1.03);
}

.esh-cat-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.28) 45%, rgba(0,0,0,0) 75%);
	display: flex;
	align-items: flex-end;
	padding: 24px;
}

.esh-cat-hero-title {
	margin: 0;
	color: #ffffff;
	font-size: 25px;
	font-weight: 800;
	line-height: 1.25;
	text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

/* Sağ 3'lü Yatay Liste */
.esh-cat-hero-list {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
}

.esh-cat-side-item {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.esh-cat-side-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10.5;
	border-radius: 4px;
	overflow: hidden;
	background: var(--kg-surface-alt);
}

.esh-cat-side-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.esh-cat-side-item:hover .esh-cat-side-thumb img {
	transform: scale(1.04);
}

.esh-cat-side-title {
	margin: 0 0 6px;
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--kg-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.esh-cat-side-item:hover .esh-cat-side-title {
	color: var(--kg-red);
}

.esh-cat-side-excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--kg-text-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Alt 3'lü Haber Gridi */
.esh-cat-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 20px;
	margin-top: 24px;
}

.esh-cat-card .esh-card-thumb {
	display: block;
}

.esh-cat-card-title {
	margin: 2px 0 0;
	font-size: 17.5px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--kg-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.esh-cat-card:hover .esh-cat-card-title {
	color: var(--kg-red);
}

.esh-cat-card-excerpt {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--kg-text-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Sayfalama */
.esh-pagination-wrap {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}

.esh-pagination-wrap .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.esh-pagination-wrap .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 4px;
	border: 1px solid var(--kg-border);
	background: var(--kg-surface);
	color: var(--kg-text);
	font-size: 14px;
	font-weight: 700;
}

.esh-pagination-wrap .page-numbers.current,
.esh-pagination-wrap .page-numbers:hover {
	background: var(--kg-red);
	border-color: var(--kg-red);
	color: #ffffff;
}

/* Kategori SEO Açıklaması */
.esh-cat-seo-desc {
	margin-top: 36px;
	padding: 18px 20px;
	background: var(--kg-surface);
	border: 1px solid var(--kg-border);
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--kg-text-muted);
}

.esh-empty-state {
	padding: 40px;
	text-align: center;
	background: var(--kg-surface);
	border-radius: 6px;
	color: var(--kg-text-muted);
}

@media (max-width: 1024px) {
	.esh-cat-hero {
		grid-template-columns: 1fr;
	}
	.esh-cat-hero-main {
		min-height: 320px;
	}
	.esh-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.esh-cat-hero-main {
		min-height: 240px;
	}
	.esh-cat-hero-title {
		font-size: 20px;
	}
	.esh-cat-side-item {
		grid-template-columns: 115px minmax(0, 1fr);
		gap: 10px;
	}
	.esh-cat-grid {
		grid-template-columns: 1fr;
	}
}

/* ==================== KATEGORİ ALT BÖLÜM: TEK SIRA AKIŞ + EN ÇOK OKUNANLAR ==================== */
.esh-cat-lower-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 34px;
	align-items: start;
	margin-top: 34px;
	padding-top: 28px;
	border-top: 1px solid var(--kg-border);
}

/* Sol Tek Sıra Büyük Yatay Haber Listesi */
.esh-cat-feed-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.esh-feed-row {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--kg-border);
}

.esh-feed-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.esh-feed-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: 4px;
	overflow: hidden;
	background: var(--kg-surface-alt);
}

.esh-feed-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.esh-feed-row:hover .esh-feed-thumb img {
	transform: scale(1.04);
}

.esh-feed-title {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--kg-text);
}

.esh-feed-row:hover .esh-feed-title {
	color: var(--kg-red);
}

.esh-feed-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--kg-text-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Sağ Sticky Sidebar: En Çok Okunanlar */
.esh-cat-sidebar {
	position: sticky;
	top: 120px;
}

.esh-popular-header {
	margin-bottom: 16px;
}

.esh-popular-badge {
	display: inline-block;
	background: var(--kg-red);
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	padding: 5px 10px;
	border-radius: 2px;
	line-height: 1.2;
}

.esh-popular-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.esh-popular-item {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--kg-border);
}

.esh-popular-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.esh-popular-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10.5;
	border-radius: 3px;
	overflow: hidden;
	background: var(--kg-surface-alt);
}

.esh-popular-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.esh-popular-item:hover .esh-popular-thumb img {
	transform: scale(1.05);
}

.esh-popular-title {
	margin: 0;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.38;
	color: var(--kg-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.esh-popular-item:hover .esh-popular-title {
	color: var(--kg-red);
}

/* WP-PageNavi Uyumluluğu */
.wp-pagenavi {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.wp-pagenavi a,
.wp-pagenavi span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 4px;
	border: 1px solid var(--kg-border) !important;
	background: var(--kg-surface);
	color: var(--kg-text);
	font-size: 14px;
	font-weight: 700;
	margin: 0 !important;
}

.wp-pagenavi span.current,
.wp-pagenavi a:hover {
	background: var(--kg-red) !important;
	border-color: var(--kg-red) !important;
	color: #ffffff !important;
}

@media (max-width: 1024px) {
	.esh-cat-lower-layout {
		grid-template-columns: 1fr;
	}
	.esh-cat-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	.esh-feed-row {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.esh-feed-title {
		font-size: 17.5px;
	}
}

/* ==================== PANEL AYARLARI İÇİN ÖN YÜZ ==================== */
/* Logo açık/koyu + yükseklik */
.esh-logo img { max-height: var(--kg-logo-h, 36px); width: auto; }
.esh-logo-dark { display: none; }
[data-theme="dark"] .esh-logo-light { display: none; }
[data-theme="dark"] .esh-logo-dark { display: inline-block; }

/* Sticky kontrol */
.esh-header { position: sticky; top: 0; }
.esh-header:not(.kg-is-sticky) { position: static; }

/* Linki kopyala butonu */
.esh-share-copy {
	background: #334155; color: #fff; border: none; padding: 6px 13px;
	border-radius: 5px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.esh-share-copy:hover { background: #1e293b; }

/* ==================== ADMIN BAR + STICKY HEADER DÜZELTMESİ ==================== */
body.admin-bar .esh-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .esh-header { top: 46px; } }
body.admin-bar .esh-cat-sidebar { top: 152px; }
.esh-comments-wrap { padding: 10px 0 40px; }

/* ==================== YORUMLAR ==================== */
.esh-comments { margin: 30px 0 10px; }
.esh-comments-head {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 14px; border-bottom: 2px solid var(--kg-red); padding-bottom: 12px; margin-bottom: 22px;
}
.esh-comments-title { margin: 0; font-size: 20px; font-weight: 800; }
.esh-comments-sort { display: flex; flex-wrap: wrap; gap: 6px; }
.esh-sort-btn {
	background: var(--kg-surface); border: 1px solid var(--kg-border); color: var(--kg-text);
	font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 6px; cursor: pointer;
}
.esh-sort-btn:hover { border-color: var(--kg-red); color: var(--kg-red); }
.esh-sort-btn.is-active { background: var(--kg-red); border-color: var(--kg-red); color: #fff; }

.esh-comments-list, .esh-comments-list .children { list-style: none; margin: 0; padding: 0; }
.esh-comments-list > li { margin-bottom: 18px; }
.esh-comments-list .children { margin: 14px 0 0 26px; padding-left: 20px; border-left: 2px solid var(--kg-border); }

.esh-comment-inner { display: flex; gap: 14px; background: var(--kg-surface); border: 1px solid var(--kg-border); border-radius: 10px; padding: 16px; }
.esh-comment-avatar {
	flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%;
	color: #fff; font-weight: 800; font-size: 16px;
	display: flex; align-items: center; justify-content: center;
}
.esh-comment-main { min-width: 0; flex: 1; }
.esh-comment-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.esh-comment-author { font-weight: 800; font-size: 15px; }
.esh-comment-time { font-size: 12px; color: var(--kg-text-muted); }
.esh-comment-text { font-size: 14.5px; line-height: 1.6; color: var(--kg-text); }
.esh-comment-text p:last-child { margin-bottom: 0; }
.esh-comment-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.esh-vote {
	background: var(--kg-bg); border: 1px solid var(--kg-border); border-radius: 20px;
	color: var(--kg-text-muted); font-size: 12.5px; font-weight: 700; padding: 4px 12px; cursor: pointer;
	display: inline-flex; align-items: center; gap: 4px;
}
.esh-vote:hover { border-color: var(--kg-red); color: var(--kg-red); }
.esh-vote.is-voted { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.esh-comment-actions .comment-reply-link {
	font-size: 12.5px; font-weight: 700; color: var(--kg-text-muted); padding: 4px 10px;
	border: 1px solid var(--kg-border); border-radius: 20px;
}
.esh-comment-actions .comment-reply-link:hover { color: var(--kg-red); border-color: var(--kg-red); }
.esh-comments-empty, .esh-comments-closed { color: var(--kg-text-muted); padding: 20px 0; }

/* Form */
.esh-comments #respond { margin-top: 30px; background: var(--kg-surface); border: 1px solid var(--kg-border); border-radius: 12px; padding: 20px 22px; }
.esh-comments .comment-reply-title { font-size: 18px; font-weight: 800; margin: 0 0 14px; }
.esh-comments .comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.esh-comments .comment-form p { margin: 0; }
.esh-comments .comment-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.esh-comments .comment-form input[type="text"],
.esh-comments .comment-form input[type="email"],
.esh-comments .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--kg-border); border-radius: 8px;
	font-size: 14px; font-family: inherit; background: var(--kg-bg); color: var(--kg-text);
}
.esh-comments .comment-form input:focus, .esh-comments .comment-form textarea:focus { outline: none; border-color: var(--kg-red); box-shadow: 0 0 0 3px rgba(227,6,19,.1); }
.esh-comments .comment-form-comment,
.esh-comments .comment-form-math,
.esh-comments .form-submit,
.esh-comments .comment-form-cookies-consent,
.esh-comments .comment-notes,
.esh-comments .kg-hp,
.esh-comments .cf-turnstile { grid-column: 1 / -1; }
.esh-char-count { display: block; text-align: right; font-size: 12px; color: var(--kg-text-muted); margin-top: 4px; }
.esh-comments .kg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.esh-comment-submit {
	background: var(--kg-red); color: #fff; border: none; border-radius: 8px;
	padding: 12px 26px; font-size: 14px; font-weight: 800; cursor: pointer;
}
.esh-comment-submit:hover { background: var(--kg-red-hover); }
@media (max-width: 640px) {
	.esh-comments .comment-form { grid-template-columns: 1fr; }
	.esh-comments-list .children { margin-left: 8px; padding-left: 12px; }
	.esh-comments-head { flex-direction: column; align-items: flex-start; }
}

/* Etiketler etiketi */
.esh-tags-label { font-size: 13px; font-weight: 800; color: var(--kg-text); margin-right: 4px; }
