/*
 * Yazılım ve mobil uygulama lokalizasyonu · m02 "… Nedir?" (.bt-hs--ym-tanim, tutamaç bt-hs-ym-tanim).
 * A2 Lacivert Taşma. Figma 1224:2099 (1440 × 801) / 1224:2136 (390 × 746). Bant: beyaz.
 * Masaüstü: açık yanıt 760 ölçü (üst başlık → 16 → H2 40/48 → 24 → tanım 21/33) → 48 → lacivert-600 levha x 120'den
 * görünümün sağ kenarına (sol köşeler 12, gölgesiz, 1 px beyaz %8 üst ışık; dolgu 40/48/42; satırlar 640 ölçü).
 * Mobil (≤ 767): H2 26/31, tanım 18/28; levha tam taşma (x 0–390, köşesiz, dolgu 24/20), satırlar 18/27 ve 15/24.
 * Taşma: margin-right calc(50% - 50vw), bantta overflow-x: clip.
 * Hareket (script.js, yalnız JS ile): tanım görünüme girince levha sağdan kayar (64 → 0, 450 ms), satırlar 6 px
 * yükselerek belirir (120 ms arayla). Azaltılmış harekette ve JS'siz durumda levha durağan.
 */

.bt-hs--ym-tanim {
	--hs-pad-top: 96px;
	--hs-pad-bottom: 96px;
	overflow-x: clip;
}

/* ---------------------------------------------------------------- Açık yanıt: üst başlık + H2 + tanım */

.bt-hs--ym-tanim .ym-tanim__open {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 760px;
}

/* Figma metin kutusu 19.5 → 20 (tam piksel). */
.bt-hs--ym-tanim .ym-tanim__kicker {
	min-height: 20px;
}

.bt-hs--ym-tanim .ym-tanim__h2 {
	margin-top: 16px;
	color: var(--hs-navy);
	font-size: 40px;
	font-weight: 800;
	line-height: 48px;
	letter-spacing: -0.01em;
}

.bt-hs--ym-tanim .ym-tanim__kicker + .ym-tanim__def,
.bt-hs--ym-tanim .ym-tanim__h2 + .ym-tanim__def {
	margin-top: 24px;
}

.bt-hs--ym-tanim .ym-tanim__def {
	color: var(--hs-navy);
	font-size: 21px;
	font-weight: 500;
	line-height: 33px;
}

/* İşaretleme katmanı (sonra eklenir): kalın lacivert, italik, site işaretçisi (home-base). */
.bt-hs--ym-tanim .ym-tanim__def strong {
	color: var(--hs-navy);
	font-weight: 700;
}

.bt-hs--ym-tanim em {
	font-style: italic;
}

/* ---------------------------------------------------------------- Levha: sağ kenardan taşan lacivert-600 */

.bt-hs--ym-tanim .ym-tanim__plate {
	--hs-c-focus: var(--hs-gold);
	--hs-focus-offset: 2px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin-top: 48px;
	margin-right: calc(50% - 50vw);
	padding: 40px 48px 42px;
	border-top: 1px solid var(--hs-white-a08);
	border-radius: 12px 0 0 12px;
	background: var(--hs-navy-600);
	color: var(--hs-white);
}

.bt-hs--ym-tanim .ym-tanim__plate--solo {
	margin-top: 0;
}

.bt-hs--ym-tanim .ym-tanim__human,
.bt-hs--ym-tanim .ym-tanim__pointer {
	max-width: 640px;
}

.bt-hs--ym-tanim .ym-tanim__human {
	color: var(--hs-white);
	font-size: 20px;
	font-weight: 600;
	line-height: 30px;
}

.bt-hs--ym-tanim .ym-tanim__pointer {
	color: var(--hs-white-a80);
	font-size: 16px;
	font-weight: 400;
	line-height: 26px;
}

/* Levhada vurgu yok (plate-scoped kural); işaretleme katmanı yine de eklerse: beyaz kalın, altın %35 işaretçi
   (beyaz metin ≥ 4.5:1). */
.bt-hs--ym-tanim .ym-tanim__plate strong {
	color: var(--hs-white);
	font-weight: 700;
}

.bt-hs--ym-tanim .ym-tanim__plate mark.bt-mark {
	background: linear-gradient(transparent 62%, color-mix(in srgb, var(--hs-gold) 35%, transparent) 62%);
	color: inherit;
}

/* ---------------------------------------------------------------- Bağlantılar: yalnız metin altı çizili + altın ok çipi */

/* Bağlantı nowrap: çip son sözcükten ayrılmaz; önceki sözcükler (span.ym-tanim__lead) normal kırılır. */
.bt-hs--ym-tanim .ym-tanim__def a,
.bt-hs--ym-tanim .ym-tanim__pointer a {
	color: var(--hs-navy);
	text-decoration-line: underline;
	text-decoration-color: currentColor;
	text-decoration-thickness: 1.5px;
	text-underline-offset: auto;
	white-space: nowrap;
	transition: color var(--hs-dur-fast) ease, text-decoration-color var(--hs-dur-fast) ease;
}

.bt-hs--ym-tanim .ym-tanim__lead {
	white-space: normal;
}

.bt-hs--ym-tanim .ym-tanim__pointer a {
	color: var(--hs-white);
}

.bt-hs--ym-tanim .ym-tanim__def a:hover,
.bt-hs--ym-tanim .ym-tanim__pointer a:hover {
	text-decoration-color: var(--hs-gold);
}

/* Çip: satır içi blok (alt çizgi taşınmaz), satır kutusunda dikey ortalı; bağlantı düz metne inince yok olur.
   Figma: tanımda 22 (ok 14), göstergede 18 (ok 12); mobilde 18 / 16. */
.bt-hs--ym-tanim .ym-tanim__def a::after,
.bt-hs--ym-tanim .ym-tanim__pointer a::after {
	--ymt-chip: 22px;
	--ymt-icon: 14px;
	content: "";
	position: relative;
	top: calc((1lh - var(--ymt-chip)) / 2);
	display: inline-block;
	width: var(--ymt-chip);
	height: var(--ymt-chip);
	margin-inline: var(--ymt-chip-ml, 5px) var(--ymt-chip-mr, 4px);
	border-radius: 50%;
	background: var(--hs-gold) url("img/chip-arrow.svg") center / var(--ymt-icon) no-repeat;
	vertical-align: top;
}

.bt-hs--ym-tanim .ym-tanim__pointer a::after {
	--ymt-chip: 18px;
	--ymt-icon: 12px;
}

/* ---------------------------------------------------------------- Hareket (script.js: armed → play → done) */

.bt-hs--ym-tanim[data-ym-anim="armed"] .ym-tanim__plate {
	opacity: 0;
	transform: translate3d(64px, 0, 0);
}

.bt-hs--ym-tanim[data-ym-anim="armed"] .ym-tanim__plate > * {
	opacity: 0;
	transform: translate3d(0, 6px, 0);
}

.bt-hs--ym-tanim[data-ym-anim="play"] .ym-tanim__plate {
	transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease-out;
}

.bt-hs--ym-tanim[data-ym-anim="play"] .ym-tanim__plate > * {
	transition: opacity 300ms ease-out 360ms, transform 300ms ease-out 360ms;
}

.bt-hs--ym-tanim[data-ym-anim="play"] .ym-tanim__plate > * + * {
	transition-delay: 480ms;
}

/* ---------------------------------------------------------------- Tablet (≤ 1024) */

@media (max-width: 1024px) {
	.bt-hs--ym-tanim {
		--hs-pad-top: var(--hs-pad-y);
		--hs-pad-bottom: var(--hs-pad-y);
	}

	.bt-hs--ym-tanim .ym-tanim__h2 {
		font-size: 34px;
		line-height: 41px;
	}

	.bt-hs--ym-tanim .ym-tanim__plate {
		padding: 36px 40px 38px;
	}
}

/* ---------------------------------------------------------------- Mobil (≤ 767) */

@media (max-width: 767px) {
	.bt-hs--ym-tanim .ym-tanim__open {
		max-width: none;
	}

	.bt-hs--ym-tanim .ym-tanim__kicker {
		min-height: 18px;
		font-size: 14px;
		line-height: 18px;
	}

	.bt-hs--ym-tanim .ym-tanim__h2 {
		margin-top: 12px;
		font-size: 26px;
		line-height: 31px;
		letter-spacing: -0.01em;
	}

	.bt-hs--ym-tanim .ym-tanim__kicker + .ym-tanim__def,
	.bt-hs--ym-tanim .ym-tanim__h2 + .ym-tanim__def {
		margin-top: 16px;
	}

	.bt-hs--ym-tanim .ym-tanim__def {
		font-size: 18px;
		line-height: 28px;
	}

	/* Tam taşma: x 0 → görünüm genişliği, köşesiz; satırlar 350 ölçü (390'da). */
	.bt-hs--ym-tanim .ym-tanim__plate {
		margin-top: 32px;
		margin-inline: calc(50% - 50vw);
		padding: 24px 20px;
		border-radius: 0;
	}

	.bt-hs--ym-tanim .ym-tanim__human {
		font-size: 18px;
		line-height: 27px;
	}

	.bt-hs--ym-tanim .ym-tanim__pointer {
		font-size: 15px;
		line-height: 24px;
	}

	.bt-hs--ym-tanim .ym-tanim__def a::after {
		--ymt-chip: 18px;
		--ymt-icon: 12px;
	}

	.bt-hs--ym-tanim .ym-tanim__pointer a::after {
		--ymt-chip: 16px;
		--ymt-icon: 10px;
	}
}

/* ---------------------------------------------------------------- Azaltılmış hareket: durağan son durum */

@media (prefers-reduced-motion: reduce) {
	.bt-hs--ym-tanim .ym-tanim__plate,
	.bt-hs--ym-tanim .ym-tanim__plate > * {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
