/* ==========================================================================
   Acilci — Bileşenler (kart, rozet, meta, sayfalama, breadcrumb, widget)
   ========================================================================== */

/* --- Rozet (kategori etiketi) --- */
.badge {
	display: inline-block;
	font-family: var(--acilci-font-ui);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--acilci-amber-deep);
	background: var(--acilci-amber-soft);
	padding: 0.25em 0.7em;
	border-radius: 999px;
	line-height: 1.6;
	text-decoration: none;
	transition: background var(--acilci-transition), color var(--acilci-transition);
}
.badge:hover { background: var(--acilci-amber); color: #fff; }

/* ==========================================================================
   Yazı kartı — editoryal tasarım
   Görsel üstte (kategori sol-üst, ses sağ-üst yüzer), gövdede başlık →
   tarih·okuma → ince çizgi → yazar. Kartlar ızgarada eşit yükseklikte.
   ========================================================================== */
.post-card {
	display: flex;
	flex-direction: column;
	background: var(--acilci-surface);
	border: 1px solid var(--acilci-line);
	border-radius: var(--acilci-radius);
	overflow: hidden;
	box-shadow: var(--acilci-shadow);
	transition: transform var(--acilci-transition), box-shadow var(--acilci-transition), border-color var(--acilci-transition);
}
.post-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--acilci-shadow-lg);
	border-color: var(--acilci-amber-line);
}

/* --- Görsel + üstteki yüzen öğeler --- */
.post-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--acilci-cream-2); }
.post-card__thumb { position: absolute; inset: 0; display: block; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(0.4,0,0.2,1); }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
/* Alt köşelere doğru çok hafif karartma — rozet/ses okunurluğu ve derinlik */
.post-card__media::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(26,18,11,0.16) 0%, rgba(26,18,11,0) 26%);
}

.post-card__badge { position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2; max-width: calc(100% - 4.2rem); }
.post-card__badge .badge {
	background: rgba(255,255,255,0.94);
	color: var(--acilci-amber-deep);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	box-shadow: 0 2px 10px rgba(26,18,11,0.18);
}
.post-card__badge .badge:hover { background: var(--acilci-amber); color: #fff; }

.post-card__audio {
	position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2;
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: rgba(255,255,255,0.94); color: #1db954;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	box-shadow: 0 2px 10px rgba(26,18,11,0.20);
	transition: background var(--acilci-transition), color var(--acilci-transition), transform var(--acilci-transition);
}
.post-card__audio svg { width: 20px; height: 20px; }
.post-card__audio:hover { background: #1db954; color: #fff; transform: scale(1.08); }

/* --- Gövde --- */
.post-card__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.1rem 1.15rem 1.15rem; flex: 1; }
.post-card__title {
	font-size: clamp(1.05rem, 0.97rem + 0.4vw, 1.25rem);
	font-weight: 600; line-height: 1.34; margin: 0;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__title a { color: var(--acilci-ink); text-decoration: none; transition: color var(--acilci-transition); }
.post-card__title a:hover { color: var(--acilci-amber-deep); }

.post-card__stats {
	display: flex; align-items: center; gap: 0.45rem;
	font-family: var(--acilci-font-ui); font-size: 0.8rem; color: var(--acilci-ink-4);
}
.post-card__stats .post-card__date { color: var(--acilci-ink-3); font-weight: 500; }
.post-card__date { display: inline-flex; align-items: center; gap: 0.32rem; }
.post-card__date::before {
	content: "";
	width: 0.9em; height: 0.9em;
	background: currentColor; opacity: 0.75;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='17' rx='2'/%3E%3Cpath d='M3 9h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='17' rx='2'/%3E%3Cpath d='M3 9h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.post-card__stat-dot { color: var(--acilci-line-strong); }

.post-card__author {
	display: flex; align-items: center;
	margin-top: auto; padding-top: 0.9rem;
	border-top: 1px solid var(--acilci-line);
}
.post-card__author .entry-author { min-width: 0; }
.post-card__author .entry-author__avatar img, .post-card__author .entry-author .avatar { width: 30px; height: 30px; border-width: 1px; }
.post-card__author .entry-author__name { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Tekil yazı meta'sı (paylaşılan yazar/tarih/okuma stilleri) --- */
.entry-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem 0.55rem;
	font-family: var(--acilci-font-ui);
	font-size: var(--acilci-fs-small);
	color: var(--acilci-ink-4);
	margin-top: auto;
}
.entry-author { display: inline-flex; align-items: center; gap: 0.45rem; }
.entry-author__avatar { flex-shrink: 0; display: inline-flex; }
.entry-author__avatar img, .entry-author .avatar { border-radius: 50%; border: 2px solid var(--acilci-cream-2); }
.entry-author__name { color: var(--acilci-ink-2); text-decoration: none; font-weight: 500; }
.entry-author__name:hover { color: var(--acilci-amber-deep); }
.entry-meta__sep { color: var(--acilci-line-strong); }
.entry-date { color: var(--acilci-ink-3); font-weight: 500; }

.entry-readtime { display: inline-flex; align-items: center; gap: 0.32rem; }
.entry-readtime::before {
	content: "";
	width: 0.9em;
	height: 0.9em;
	background: currentColor;
	opacity: 0.75;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Breadcrumb --- */
.breadcrumb {
	font-family: var(--acilci-font-ui);
	font-size: var(--acilci-fs-small);
	color: var(--acilci-ink-4);
	margin-bottom: 1rem;
}
.breadcrumb a { color: var(--acilci-ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--acilci-amber-deep); }
.breadcrumb__sep { margin-inline: 0.35em; color: var(--acilci-line-strong); }

/* --- Sayfalama --- */
.pagination { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 0.75rem;
	font-family: var(--acilci-font-ui); font-weight: 500;
	color: var(--acilci-ink-2); text-decoration: none;
	background: var(--acilci-surface);
	border: 1px solid var(--acilci-line);
	border-radius: var(--acilci-radius-sm);
	transition: all var(--acilci-transition);
}
.pagination .page-numbers:hover { border-color: var(--acilci-amber); color: var(--acilci-amber-deep); }
.pagination .page-numbers.current { background: var(--acilci-amber); border-color: var(--acilci-amber); color: #fff; }

/* --- Widget (kenar çubuğu) --- */
.widget-area { display: flex; flex-direction: column; gap: 1.5rem; }
.widget {
	background: var(--acilci-surface);
	border: 1px solid var(--acilci-line);
	border-radius: var(--acilci-radius);
	padding: 1.25rem 1.35rem;
}
.widget__title {
	font-size: 1.05rem;
	margin: 0 0 0.85rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--acilci-amber-soft);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.4rem 0; border-bottom: 1px solid var(--acilci-line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--acilci-ink-2); text-decoration: none; }
.widget a:hover { color: var(--acilci-amber-deep); }

/* --- Arama formu --- */
.search-form { display: flex; gap: 0.5rem; }
.search-form .search-submit { flex-shrink: 0; }

/* --- "Sonuç yok" --- */
.no-results {
	text-align: center;
	background: var(--acilci-surface);
	border: 1px solid var(--acilci-line);
	border-radius: var(--acilci-radius);
	padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
	max-width: 640px;
	margin-inline: auto;
}
.no-results__title { font-size: var(--acilci-fs-h2); }
.no-results .search-form { max-width: 420px; margin: 1.25rem auto 0; }

/* --- 404 --- */
.error-404 { text-align: center; padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.error-404__code { font-family: var(--acilci-font-serif); font-size: clamp(4rem, 3rem + 8vw, 8rem); font-weight: 700; color: var(--acilci-amber); line-height: 1; margin: 0; }
.error-404__title { font-size: var(--acilci-fs-h1); }
.error-404__text { color: var(--acilci-ink-3); max-width: 48ch; margin-inline: auto; }
.error-404 .search-form { max-width: 420px; margin: 1.5rem auto; }

/* --- Statik sayfa gövde boşluğu --- */
.page-body { padding-block: clamp(1.75rem, 1.25rem + 2vw, 3rem); }

/* --- Kenar çubuğu mini yazı listesi --- */
.mini-posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.mini-post { display: flex; gap: 0.75rem; align-items: flex-start; }
.mini-post__thumb { flex-shrink: 0; width: 64px; height: 64px; border-radius: var(--acilci-radius-sm); overflow: hidden; background: var(--acilci-cream-2); }
.mini-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-post__body { display: flex; flex-direction: column; gap: 0.15rem; }
.mini-post__title { font-weight: 600; font-size: 0.9rem; line-height: 1.35; color: var(--acilci-ink); text-decoration: none; }
.mini-post__title:hover { color: var(--acilci-amber-deep); }
.mini-post__meta { font-size: 0.75rem; color: var(--acilci-ink-4); }

/* --- Podcast gömme (sade iframe — kendi kartı var, ekstra çerçeve yok) --- */
.podcast-embed { display: block; width: 100%; border: 0; }

/* --- Boş reklam alanlarını çökert --------------------------------------
   Ad Inserter reklam yüklenene kadar min-height ile yer ayırıyor; reklam
   yoksa (yerelde / boş kalınca) o boşluğu kaldırıyoruz. Reklam yüklenince
   kap artık :empty olmadığı için yükseklik geri gelir. */
.empower-ad:empty { min-height: 0 !important; }

/* --- Yazar arşivi profil başlığı --- */
.author-hero {
	background: linear-gradient(180deg, var(--acilci-cream) 0%, var(--acilci-surface) 100%);
	border-bottom: 1px solid var(--acilci-line);
	padding-block: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}
.author-hero__card { display: flex; align-items: flex-start; gap: clamp(1rem, 0.5rem + 2vw, 2rem); }
@media (max-width: 560px) { .author-hero__card { flex-direction: column; align-items: center; text-align: center; } }
.author-hero__avatar { flex-shrink: 0; }
.author-hero__avatar img {
	width: 116px; height: 116px; border-radius: 50%; object-fit: cover;
	border: 4px solid var(--acilci-surface);
	box-shadow: 0 0 0 2px var(--acilci-amber-line), var(--acilci-shadow);
}
.author-hero__info { flex: 1; min-width: 0; }
.author-hero__name { font-size: var(--acilci-fs-h1); margin: 0 0 0.6rem; }
.author-hero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 1rem; margin-bottom: 0.85rem; }
@media (max-width: 560px) { .author-hero__meta { justify-content: center; } }
.author-hero__count { font-size: 0.95rem; color: var(--acilci-ink-3); }
.author-hero__count strong { color: var(--acilci-amber-deep); font-size: 1.05rem; }
.author-hero__social { display: inline-flex; gap: 0.4rem; }
.author-hero__social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--acilci-cream-2); color: var(--acilci-ink-3);
	transition: background var(--acilci-transition), color var(--acilci-transition);
}
.author-hero__social a:hover { background: var(--acilci-amber); color: #fff; }
.author-hero__social svg { width: 17px; height: 17px; }
.author-hero__bio { color: var(--acilci-ink-2); line-height: 1.7; }
.author-hero__bio p { margin: 0 0 0.75rem; }
.author-hero__bio p:last-child { margin-bottom: 0; }

.author-posts-title { font-size: var(--acilci-fs-h3); margin: 0 0 1.25rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--acilci-amber-soft); }

/* ==========================================================================
   Favorilerim sayfası — CBX Bookmark listesi (eklentiye dokunmadan tema stili)
   ========================================================================== */
.cbxwpbookmark-mylist-wrap { margin: 0; }
/* Shortcode'un kendi başlığı (küçük "Favori Yazılarım" + listeyi paylaş bağlantısı)
   gizli — sayfa başlığı (h1) yeterli. */
.cbxwpbookmark-title-postlist { display: none; }

/* Liste — .entry-content içindeki varsayılan ul padding/list-style'ını ez */
.entry-content .cbxwpbookmark-mylist,
.cbxwpbookmark-mylist {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-direction: column; gap: 0.65rem;
}
.entry-content .cbxwpbookmark-mylist-item,
.cbxwpbookmark-mylist-item {
	display: flex; align-items: center; gap: 0.85rem; margin: 0;
	padding: 0.85rem 1.1rem;
	background: var(--acilci-surface);
	border: 1px solid var(--acilci-line); border-radius: var(--acilci-radius);
	transition: border-color var(--acilci-transition), box-shadow var(--acilci-transition);
}
.cbxwpbookmark-mylist-item:hover { border-color: var(--acilci-amber-line); box-shadow: var(--acilci-shadow); }
.cbxwpbookmark-mylist-item > a:first-child {
	flex: 1; min-width: 0;
	display: flex; align-items: center; gap: 0.65rem;
	font-family: var(--acilci-font-ui); font-size: 1rem; font-weight: 600; line-height: 1.4;
	color: var(--acilci-ink); text-decoration: none;
}
.cbxwpbookmark-mylist-item > a:first-child::before {
	content: ""; width: 16px; height: 16px; flex-shrink: 0;
	background: var(--acilci-amber);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6 3.5h12a1 1 0 0 1 1 1V21l-7-4-7 4V4.5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6 3.5h12a1 1 0 0 1 1 1V21l-7-4-7 4V4.5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cbxwpbookmark-mylist-item > a:first-child:hover { color: var(--acilci-amber-deep); }

/* Silme (favoriden çıkar) butonu — çöp ikonu tam ortada */
.cbxwpbookmark-mylist-item .cbxbookmark-delete-btn {
	flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%;
	margin: 0 !important; padding: 0 !important; line-height: 0 !important;
	color: var(--acilci-ink-4); background: var(--acilci-cream); cursor: pointer;
	transition: background var(--acilci-transition), color var(--acilci-transition);
}
.cbxwpbookmark-mylist-item .cbxbookmark-delete-btn:hover { background: #FBE4E0; color: var(--acilci-alert); }
.cbxwpbookmark-mylist-item .cbxbookmark-delete-btn .cbx-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: auto; height: auto; margin: 0 !important;
}
.cbxwpbookmark-mylist-item .cbxbookmark-delete-btn svg { width: 16px; height: 16px; display: block; }
.cbxwpbookmark-mylist-item .cbxbookmark-delete-btn .ld { color: currentColor; }
/* Silinirken çöp ikonunu gizle, spinner kalsın */
.cbxwpbookmark-mylist-item .cbxbookmark-delete-btn.running .cbx-icon { visibility: hidden; }

/* Boş durum */
.cbxwpbookmark-mylist-item-notfound {
	padding: 2.25rem 1.25rem; text-align: center;
	font-family: var(--acilci-font-ui); color: var(--acilci-ink-3);
	background: var(--acilci-cream);
	border: 1px dashed var(--acilci-line-strong); border-radius: var(--acilci-radius);
}

/* --- Reklam alanları (Empower) --------------------------------------------
 * Slot'lar yalnızca uygun kitleye basılır (bkz. inc/ads.php). Sağlayıcının
 * JS'i div'i doldurur; biz konumlandırma + boyut sınırı veririz. */
.acilci-ad { display: block; margin-inline: auto; text-align: center; line-height: 0; overflow: hidden; }
.acilci-ad > * { margin-inline: auto; max-width: 100%; }
.acilci-ad iframe, .acilci-ad img { max-width: 100%; }

/* Üst leaderboard (hero üstü): masaüstü 728, mobil 336 */
.acilci-ad--leaderboard { margin: 0 auto clamp(1rem, 0.75rem + 1vw, 1.5rem); max-width: 728px; }

/* İçerik arası: paragraflar arasında */
.acilci-ad--in-content { margin-block: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); max-width: 728px; }

@media (max-width: 600px) {
	.acilci-ad--leaderboard,
	.acilci-ad--in-content { max-width: 336px; }
}

/* Sidebar sticky: en altta, kaydırmada sabit kalır */
.content-with-sidebar--single #secondary { align-self: stretch; }
.widget-ad-sticky { position: sticky; top: 90px; margin-top: 1.5rem; }
.acilci-ad--sidebar { max-width: 336px; }
@media (max-width: 900px) {
	.widget-ad-sticky { position: static; } /* mobilde sidebar içerik altına iner */
}

/* Kategori eyebrow — yalnızca mobil kompakt kartta (başlık üstünde). */
.post-card__eyebrow { display: none; }

/* ==========================================================================
   Mobil: yatay kompakt yazı kartları (arşivler + anasayfa "Son Yazılar")
   Öne çıkan görsel solda, kategori + başlık + meta sağda; kutulu, aralıklı,
   yoğun ve kolay skroll.
   ========================================================================== */
@media (max-width: 600px) {
	.post-grid,
	.post-grid--4 {
		grid-template-columns: 1fr;
		gap: 0.9rem;
	}
	.post-card {
		flex-direction: row;
		align-items: stretch;
		gap: 0;
		min-width: 0;              /* grid öğesi içeriğe göre taşmasın */
	}
	.post-card__media {
		flex: 0 0 120px;
		width: 120px;
		align-self: stretch;
		aspect-ratio: auto;        /* satır yüksekliğine uzasın, görsel kaplasın */
		min-height: 100px;
	}
	.post-card__badge { display: none; }               /* kategori artık gövdede */
	.post-card__audio {                                 /* Spotify düğmesi görselde kalsın */
		width: 34px; height: 34px;
		top: auto; bottom: 0.5rem; right: 0.5rem;
	}
	.post-card__audio svg { width: 17px; height: 17px; }
	.post-card__body {
		padding: 0.7rem 0.9rem;
		gap: 0.3rem;
		justify-content: center;
		min-width: 0;              /* uzun başlık body'yi taşırmasın */
	}
	.post-card__title a { overflow-wrap: anywhere; }
	.post-card__eyebrow { display: block; line-height: 1; }
	.post-card__eyebrow .badge {
		padding: 0;
		background: none;
		color: var(--acilci-amber-deep);
		font-size: 0.72rem;
		font-weight: 700;
		letter-spacing: 0.02em;
		text-transform: uppercase;
	}
	.post-card__title { font-size: 1rem; line-height: 1.3; }
	.post-card__title a {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.post-card__stats { font-size: 0.78rem; }
	.post-card__author { display: none; }   /* yoğunluk için gizle */
}
