/**
 * Haber kartları, kaydırıcı okları ve tek yazı görünümü.
 *
 * Hiyerarşi:
 *  - Öne çıkan (gridlove-post-b, kaydırıcı): beyaz yüzey, görsel solda, büyük başlık.
 *  - Liste kartı (gridlove-post-a): kutusuz, editoryal; görsel + başlık + tarih.
 */

/* Ortak kart */
.gridlove-box {
	overflow: hidden;
	border: 1px solid var(--ufb-line);
	border-radius: var(--ufb-radius);
	box-shadow: none;
}

.gridlove-post .entry-title,
.gridlove-post .entry-content,
.gridlove-post .entry-category {
	text-align: left;
}

.gridlove-post .entry-title {
	line-height: 1.22;
}

.gridlove-post .entry-title a {
	transition: color var(--ufb-ease);
}

.gridlove-post .entry-title a:hover,
.gridlove-post .entry-title a:focus-visible {
	color: var(--ufb-navy);
	text-decoration: underline;
	text-decoration-color: var(--ufb-yellow);
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}

.gridlove-post .entry-content {
	color: var(--ufb-muted);
}

.gridlove-post .entry-meta {
	color: var(--ufb-muted);
	font-size: 13px;
}

/* Kategori etiketleri ve yazar adı kartlarda gösterilmez */
.entry-category,
.gridlove-post .meta-author {
	display: none;
}

/* Öne çıkan kart */
.gridlove-post-b.gridlove-box {
	border-color: transparent;
	box-shadow: var(--ufb-shadow-sm);
	transition: box-shadow var(--ufb-ease);
}

.gridlove-post-b.gridlove-box:hover {
	box-shadow: var(--ufb-shadow-md);
}

/* Liste kartı: kutusuz editoryal görünüm */
.gridlove-post-a.gridlove-box {
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.gridlove-post-a .entry-image {
	overflow: hidden;
	border-radius: var(--ufb-radius);
}

.gridlove-post-a .box-inner-p {
	padding: var(--ufb-space-4) 0 0;
}

.gridlove-post-a .entry-title {
	font-size: var(--ufb-fs-lg);
}

.gridlove-post-a .entry-meta {
	margin-top: var(--ufb-space-2);
}

.gridlove-post-a:hover .entry-image img {
	opacity: .92;
}

@media (max-width: 767px) {
	.gridlove-post .entry-sm-overlay .entry-title a {
		text-shadow: 0 1px 10px rgba(0, 0, 0, .8);
	}

	.gridlove-post .entry-sm-overlay .entry-title a:hover {
		color: var(--ufb-yellow);
	}
}

/*
 * Hazır kapak görselleri (HABER, DUYURU, KÖŞE YAZISI) yerine marka deseni.
 * Görsel yerinde kalır (boyutu korunur, yerleşim kaymaz); yalnızca görünmez yapılır.
 */
.entry-image:has(img[src*="/DUYURU"]),
.entry-image:has(img[src*="/HABER-"]),
.entry-image:has(img[src*="/KOSE_YAZISI"]) {
	position: relative;
	background: var(--ufb-stripes);
}

.entry-image:has(img[src*="/DUYURU"]) img,
.entry-image:has(img[src*="/HABER-"]) img,
.entry-image:has(img[src*="/KOSE_YAZISI"]) img {
	opacity: 0;
}

.entry-image:has(img[src*="/DUYURU"])::after,
.entry-image:has(img[src*="/HABER-"])::after,
.entry-image:has(img[src*="/KOSE_YAZISI"])::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: var(--ufb-z-raised);
	width: min(40%, 120px);
	aspect-ratio: 473 / 600;
	background: url("../../img/ufb-fb-logo.png") center / contain no-repeat;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.gridlove-post-a .entry-image:is(:has(img[src*="/DUYURU"]), :has(img[src*="/HABER-"]), :has(img[src*="/KOSE_YAZISI"]))::after {
	width: 64px;
}

.gridlove-post-d .entry-image:is(:has(img[src*="/DUYURU"]), :has(img[src*="/HABER-"]), :has(img[src*="/KOSE_YAZISI"]))::after {
	top: auto;
	right: 20px;
	bottom: 20px;
	left: auto;
	width: 76px;
	transform: none;
}

@media (max-width: 767px) {
	.entry-image:is(:has(img[src*="/DUYURU"]), :has(img[src*="/HABER-"]), :has(img[src*="/KOSE_YAZISI"]))::after {
		top: auto;
		right: 16px;
		bottom: 16px;
		left: auto;
		width: 68px;
		transform: none;
	}
}

/* Kaydırıcı okları */
.gridlove-module .owl-prev,
.gridlove-module .owl-next {
	background: var(--ufb-yellow);
	color: var(--ufb-navy);
	transition: background-color var(--ufb-ease);
}

.gridlove-module .owl-prev:hover,
.gridlove-module .owl-next:hover {
	background: var(--ufb-yellow-dark);
	color: var(--ufb-navy);
}

@media (pointer: coarse) {
	.gridlove-module .gridlove-slider-controls > div {
		width: 40px;
		height: 40px;
		line-height: 40px;
	}
}

/* Tek yazı */
.box-single .entry-title,
article.gridlove-box > .box-inner-p-bigger > .entry-header .entry-title {
	font-family: var(--ufb-font-display);
	font-size: var(--ufb-fs-3xl);
	font-weight: 800;
	line-height: 1.05;
}

/* Tek yazıda hazır kapak görseli ince bir şerit olarak kalır */
.single .gridlove-box > .entry-image:is(:has(img[src*="/DUYURU"]), :has(img[src*="/HABER-"]), :has(img[src*="/KOSE_YAZISI"])) {
	height: clamp(140px, 18vw, 220px);
}

.single .gridlove-box > .entry-image:is(:has(img[src*="/DUYURU"]), :has(img[src*="/HABER-"]), :has(img[src*="/KOSE_YAZISI"]))::after {
	top: 50%;
	right: auto;
	bottom: auto;
	left: 50%;
	width: clamp(72px, 8vw, 110px);
	transform: translate(-50%, -50%);
}
