/*
 * otocekicim — sayfa-blog.css
 *
 * Blog listesi (home.php / index.php), arşivler (archive.php) ve arama (search.php).
 * Ölçüler prototipten birebir: Blog.dc.html / _tools/out/D-Blog.txt
 *
 * Yalnız .otc-bl-* sınıfları tanımlanır; temel.css'teki paylaşılan sınıflar
 * (.otc-kap, .otc-kart*, .otc-btn*, .otc-sayfabasi) yeniden tanımlanmaz (K8).
 * HEX yazılmaz, 100vw ve !important kullanılmaz (K3, K5, K32).
 * Kırılımlar yalnız 1000 / 760 / 560 (K31) — bu dosyada 760 ve 560 kullanılır.
 */

/* ---------------------------------------------------- 1. Öne çıkan yazı */

/* Prototip: padding:72px 0 0 */
.otc-bl-one-bolum {
	padding: 72px 0 0;
}

/*
 * Prototip: repeat(auto-fit, minmax(min(100%,400px),1fr)) — kart 800px'in altında
 * kendiliğinden tek sütuna iner, bunun için @media gerekmez (K5).
 */
.otc-bl-one {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
	gap: 0;
	background: var(--otc-beyaz);
	border: 1px solid var(--otc-cizgi);
	border-radius: var(--otc-r-buyuk);
	overflow: hidden;
}

.otc-bl-one-gorsel {
	display: block;
	min-height: 320px;
	overflow: hidden;
	background: var(--otc-krem);
}

.otc-bl-one-gorsel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.otc-bl-one-govde {
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	justify-content: center;
	min-width: 0;
}

.otc-bl-one-etiket {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--otc-turuncu-metin);
	text-transform: uppercase;
}

.otc-bl-one-baslik {
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.2;
	text-wrap: pretty;
}

.otc-bl-one-baslik a {
	color: var(--otc-koyu);
}

.otc-bl-one-baslik a:hover {
	color: var(--otc-turuncu-metin);
}

.otc-bl-one-ozet {
	font-size: 16px;
	line-height: 1.6;
	color: var(--otc-gri);
	text-wrap: pretty;
}

/* Prototip: padding:12px 20px; font-size:14.5px; align-self:flex-start */
.otc-bl-one-btn {
	align-self: flex-start;
	padding: 12px 20px;
	font-size: 14.5px;
}

/* ---------------------------------------------------- 2. Liste bölümü */

/*
 * Öne çıkan kart yoksa (arşiv, arama, 2. sayfa) bölüm normal ritmini alır;
 * kartın altındayken prototipteki 40px'e iner.
 */
.otc-bl-liste {
	padding: 72px 0 96px;
}

.otc-bl-one-bolum + .otc-bl-liste {
	padding-top: 40px;
}

/* Prototip: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap:20px */
.otc-bl-izgara {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 20px;
}

/* ---------------------------------------------------- 3. Arama kutusu */

.otc-bl-arama {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}

.otc-bl-arama-alan {
	flex: 1 1 280px;
	min-width: 0;
	min-height: 44px;
	padding: 12px 14px;
	border: 1px solid var(--otc-cizgi);
	border-radius: var(--otc-r-kucuk);
	background: var(--otc-beyaz);
	font-size: 15px;
	color: var(--otc-koyu);
}

.otc-bl-arama-alan::placeholder {
	color: var(--otc-gri);
}

.otc-bl-arama .otc-btn {
	padding: 12px 22px;
	min-height: 44px;
}

/* ---------------------------------------------------- 4. Karışık sonuç listesi */

.otc-bl-sonuclar {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--otc-cizgi-acik);
}

.otc-bl-sonuc {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 0;
	border-bottom: 1px solid var(--otc-cizgi-acik);
}

.otc-bl-sonuc-etiket {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--otc-turuncu-metin);
	text-transform: uppercase;
}

.otc-bl-sonuc-baslik {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.3;
	text-wrap: pretty;
}

.otc-bl-sonuc-baslik a {
	color: var(--otc-koyu);
}

.otc-bl-sonuc-baslik a:hover {
	color: var(--otc-turuncu-metin);
}

.otc-bl-sonuc-ozet {
	font-size: 15px;
	line-height: 1.55;
	color: var(--otc-gri);
	max-width: 70ch;
}

/* ---------------------------------------------------- 5. Boş durum */

.otc-bl-bos {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	padding: 40px;
	background: var(--otc-zemin);
	border-radius: var(--otc-r-buyuk);
}

.otc-bl-bos-metin {
	font-size: 17px;
	line-height: 1.6;
	color: var(--otc-gri);
	max-width: 62ch;
	text-wrap: pretty;
}

.otc-bl-bos-dugmeler {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------------------------------------------------- 6. Sayfalama */

/*
 * Prototipte sayfalama yoktur; WP gerçeğidir. Çekirdek işaretlemesi
 * (nav.pagination > .nav-links > .page-numbers) yalnız bu kapsamda biçimlenir.
 */
.otc-bl-sayfalama {
	margin-top: 40px;
}

.otc-bl-sayfalama .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* Çekirdeğin gizli başlığı: temel.css'te .screen-reader-text tanımı yok. */
.otc-bl-sayfalama .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.otc-bl-sayfalama .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--otc-cizgi);
	border-radius: var(--otc-r-kucuk);
	color: var(--otc-koyu);
	font-size: 15px;
	font-weight: 600;
	transition: border-color .15s, background .15s;
}

.otc-bl-sayfalama a.page-numbers:hover {
	border-color: var(--otc-koyu);
	color: var(--otc-koyu);
}

.otc-bl-sayfalama .page-numbers.current {
	background: var(--otc-koyu);
	border-color: var(--otc-koyu);
	color: var(--otc-beyaz);
	font-weight: 700;
}

.otc-bl-sayfalama .page-numbers.dots {
	border-color: transparent;
	min-width: 0;
	padding: 0 4px;
	color: var(--otc-gri);
}

.otc-bl-sayfalama .page-numbers.prev,
.otc-bl-sayfalama .page-numbers.next {
	font-weight: 700;
}

/* ---------------------------------------------------- 7. Kırılımlar */

/* 760px — iki sütunlu yapılar tek sütuna iner (K31). */
@media (max-width: 759.98px) {

	.otc-bl-one-bolum {
		padding: 48px 0 0;
	}

	.otc-bl-one-gorsel {
		min-height: 220px;
	}

	.otc-bl-one-govde {
		padding: 26px;
	}

	.otc-bl-liste {
		padding: 48px 0 64px;
	}

	.otc-bl-one-bolum + .otc-bl-liste {
		padding-top: 32px;
	}

	.otc-bl-bos {
		padding: 28px;
	}
}

/* 560px — yatay satırlar dikeye döner, düğmeler tam genişlik olur (K31). */
@media (max-width: 559.98px) {

	.otc-bl-arama .otc-btn,
	.otc-bl-bos-dugmeler .otc-btn {
		flex: 1 1 100%;
		justify-content: center;
	}

	.otc-bl-one-btn {
		align-self: stretch;
		justify-content: center;
	}

	.otc-bl-sayfalama .page-numbers {
		padding: 0 10px;
	}
}
