/**
 * Bölüm arka plan videosu (front-page.php: hero + final CTA).
 * Yalnızca ana sayfada yüklenir (bkz. inc/enqueue.php).
 * Kurallar sadece .hd-has-bg-video sınıfı varken devreye girer.
 */

/* ---- Ortak video katmanı ---- */
.hd-bg-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	pointer-events: none;
}

/* YouTube / Vimeo gömme: iframe'i 16:9 koruyarak alanı kaplat */
.hd-bg-video-embed {
	overflow: hidden;
	background-size: cover;
	background-position: center;
}
.hd-bg-video-embed iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;      /* 16 / 9 */
	min-width: 177.78vh;  /* 16 / 9 */
	min-height: 100%;
	transform: translate(-50%, -50%);
	border: 0;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.hd-bg-video,
	.hd-bg-video-embed {
		display: none !important;
	}
}

/* ===================== HERO ===================== */
.hd-hero.hd-has-bg-video {
	overflow: hidden;
	grid-template-columns: minmax(0, 1fr);
}
.hd-hero.hd-has-bg-video .hd-bg-video,
.hd-hero.hd-has-bg-video .hd-bg-video-embed {
	z-index: -2;
}

/* Temanın açık kırılma gradyanı yerine, promo video için koyu okunabilirlik katmanı */
.hd-hero.hd-has-bg-video::before {
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(13, 24, 26, .68) 0%, rgba(13, 24, 26, .30) 58%, rgba(13, 24, 26, .12) 100%),
		linear-gradient(180deg, rgba(13, 24, 26, .10) 0%, rgba(13, 24, 26, .55) 100%);
}
.hd-hero.hd-has-bg-video::after {
	opacity: .35;
}

/* Metni açık renge çevir */
.hd-hero.hd-has-bg-video .hd-hero-copy h1,
.hd-hero.hd-has-bg-video .hd-hero-meta span {
	color: #fff;
}
.hd-hero.hd-has-bg-video .hd-lead {
	color: rgba(255, 255, 255, .84);
}
.hd-hero.hd-has-bg-video .hd-kicker {
	color: var(--hd-rose);
}
.hd-hero.hd-has-bg-video .hd-kicker::before {
	background: var(--hd-rose);
}
.hd-hero.hd-has-bg-video .hd-hero-meta {
	border-top-color: rgba(255, 255, 255, .22);
}
.hd-hero.hd-has-bg-video .hd-hero-meta div + div {
	border-left-color: rgba(255, 255, 255, .18);
}

/* Randevu kartı: koyu zeminde cam görünüm */
.hd-hero.hd-has-bg-video .hd-hero-card {
	background: rgba(255, 253, 248, .92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 24px 60px -20px rgba(13, 24, 26, .55);
}

/* ===================== FINAL CTA ===================== */
.hd-final-cta.hd-has-bg-video {
	isolation: isolate;
}
.hd-final-cta.hd-has-bg-video .hd-bg-video,
.hd-final-cta.hd-has-bg-video .hd-bg-video-embed {
	z-index: 0;
}
.hd-final-cta.hd-has-bg-video::before {
	z-index: 1;
	background: rgba(13, 24, 26, .74);
}
.hd-final-cta.hd-has-bg-video > *:not(.hd-bg-video):not(.hd-bg-video-embed) {
	z-index: 2;
}
