/*
 * Yazılım ve mobil uygulama lokalizasyonu · m04 dosya biçimleri (.bt-hs--ym-dosyalar, tutamaç bt-hs-ym-dosyalar).
 * C1 Emanet Fişi. Figma 1236:2099 (1440 × 834) / 1236:2183 (390 × 1494). Bant: lacivert + üç bulanık ışıma.
 * Masaüstü: 12 sütun (24 aralık). Başlık sütun 1–6 (altın üst başlık, beyaz H2 36/42), öncü fiş sütun 7–12 (588 × 260);
 * 32 altta üç fiş (384 × 254); 40 altta çoğul satırı (beyaz 18/28, 792 ölçü). Liste ızgaranın alt ızgarasıdır
 * (subgrid): başlık ve öncü fiş aynı satırı paylaşır, satır yüksekliği uzun dilde büyür.
 * Fiş: koçan (lacivert-açık, üst köşeler 12, alt köşelerde r 12 çentik; delik çizgisi 2 × 6 lacivert %40, koçan
 * kenarının 6 px üstünde, yanlardan 20 içeride) + 10 aralık + dip koçan (beyaz, üst köşelerde r 12 çentik, alt köşeler
 * 12). Tek gölge sarmalayıcıda: drop-shadow 0 16 18 (mobil 0 12 14) #0F1626 %38.
 * ≤ 1024: başlık üstte, öncü fiş tam genişlik, üç fiş yan yana. ≤ 860: fişler alt alta. Mobil (≤ 767): 390 çizimi.
 * Hareket (script.js, yalnız JS ile): fişler 12 px yükselir (90 ms arayla), sonra koçan 10 px yukarı ayrılır.
 */

.bt-hs--ym-dosyalar {
	--hs-pad-top: 96px;
	--hs-pad-bottom: 96px;
	--ymd-grey: #4a4a55;
	--ymd-perf: rgba(27, 42, 74, 0.4);
	--ymd-shadow: drop-shadow(0 16px 18px rgba(15, 22, 38, 0.38));
}

/* ---------------------------------------------------------------- Işımalar (süs) */

.bt-hs--ym-dosyalar .ym-dosyalar__glow {
	position: absolute;
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.bt-hs--ym-dosyalar .ym-dosyalar__glow--n500 {
	top: 90px;
	left: calc(50% + 420px);
	width: 1000px;
	height: 660px;
	background: rgba(47, 70, 117, 0.8);
	filter: blur(110px);
}

.bt-hs--ym-dosyalar .ym-dosyalar__glow--n400 {
	top: 330px;
	left: calc(50% + 520px);
	width: 560px;
	height: 380px;
	background: rgba(61, 90, 150, 0.35);
	filter: blur(90px);
}

.bt-hs--ym-dosyalar .ym-dosyalar__glow--deep {
	top: calc(100% + 26px);
	left: calc(50% - 530px);
	width: 900px;
	height: 520px;
	background: rgba(15, 22, 38, 0.7);
	filter: blur(110px);
}

/* ---------------------------------------------------------------- Izgara: başlık | öncü fiş, altında üç fiş */

.bt-hs--ym-dosyalar .ym-dosyalar__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 32px;
}

.bt-hs--ym-dosyalar .ym-dosyalar__head {
	position: relative;
	z-index: 1;
	grid-column: 1 / 7;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	min-width: 0;
}

.bt-hs--ym-dosyalar .ym-dosyalar__kicker {
	min-height: 19.5px;
}

.bt-hs--ym-dosyalar .ym-dosyalar__h2 {
	color: var(--hs-white);
	font-size: 36px;
	font-weight: 800;
	line-height: 42px;
	letter-spacing: -0.01em;
}

.bt-hs--ym-dosyalar .ym-dosyalar__tickets {
	display: grid;
	grid-column: 1 / -1;
	grid-row: 1 / span var(--ymd-rows, 2);
	grid-template-columns: subgrid;
	grid-template-rows: subgrid;
}

.bt-hs--ym-dosyalar .ym-dosyalar__grid--nohead .ym-dosyalar__tickets {
	grid-row: 1;
	grid-template-rows: none;
	row-gap: 32px;
}

/* Öncü fiş 1. satırda sütun 7–12; diğerleri 2. satırdan itibaren üçer üçer (satır: şablondaki --ymd-row). */
.bt-hs--ym-dosyalar .ym-dosyalar__item {
	grid-row: var(--ymd-row, auto);
	grid-column: span 4;
	min-width: 0;
}

.bt-hs--ym-dosyalar .ym-dosyalar__item--lead {
	grid-column: 7 / 13;
	grid-row: 1;
}

/* subgrid yoksa: başlık üstte, fişler kendi 12 sütunlu ızgarasında. */
@supports not (grid-template-rows: subgrid) {
	.bt-hs--ym-dosyalar .ym-dosyalar__tickets {
		grid-row: 2;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 32px 24px;
	}
}

/* ---------------------------------------------------------------- Fiş: koçan + dip koçan, çentikler, delik çizgisi */

.bt-hs--ym-dosyalar .ym-ticket {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	color: var(--hs-navy);
	filter: var(--ymd-shadow);
}

.bt-hs--ym-dosyalar .ym-ticket__stub,
.bt-hs--ym-dosyalar .ym-ticket__foil {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 51% 100%;
	mask-size: 51% 100%;
	-webkit-mask-position: left, right;
	mask-position: left, right;
}

/* Koçan: alt köşelerde r 12 çeyrek çentik (dip koçanın üst çentikleriyle 10 px aralıkta yarım daire okunur). */
.bt-hs--ym-dosyalar .ym-ticket__stub {
	position: relative;
	flex: none;
	gap: 8px;
	min-height: 124px;
	padding: 24px;
	border-radius: 12px 12px 0 0;
	background: var(--hs-navy-tint);
	-webkit-mask-image: radial-gradient(circle at 0 100%, transparent 12px, #000 12.5px), radial-gradient(circle at 100% 100%, transparent 12px, #000 12.5px);
	mask-image: radial-gradient(circle at 0 100%, transparent 12px, #000 12.5px), radial-gradient(circle at 100% 100%, transparent 12px, #000 12.5px);
}

/* Delik çizgisi: 2 px, ~6 px çizgi / ~6 px boşluk (Figma periyodu 11.9), uçlarda yarım çizgi. */
.bt-hs--ym-dosyalar .ym-ticket__stub::after {
	content: "";
	position: absolute;
	right: 20px;
	bottom: 6px;
	left: 20px;
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--ymd-perf) 0 2.975px, transparent 2.975px 8.925px, var(--ymd-perf) 8.925px 11.9px);
}

.bt-hs--ym-dosyalar .ym-ticket__foil {
	flex: 1 1 auto;
	gap: 14px;
	padding: 24px 28px;
	border-radius: 0 0 12px 12px;
	background: var(--hs-white);
	-webkit-mask-image: radial-gradient(circle at 0 0, transparent 12px, #000 12.5px), radial-gradient(circle at 100% 0, transparent 12px, #000 12.5px);
	mask-image: radial-gradient(circle at 0 0, transparent 12px, #000 12.5px), radial-gradient(circle at 100% 0, transparent 12px, #000 12.5px);
}

.bt-hs--ym-dosyalar .ym-dosyalar__item--lead .ym-ticket__foil {
	padding: 22px 24px 24px;
}

.bt-hs--ym-dosyalar .ym-ticket__label {
	color: var(--hs-navy);
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
}

.bt-hs--ym-dosyalar .ym-ticket__send {
	font-size: 15px;
	line-height: 22px;
}

.bt-hs--ym-dosyalar .ym-ticket__receive {
	font-size: 16px;
	line-height: 24px;
}

/* İşaretleme katmanı (sonra eklenir): fişin açık zemininde lacivert kalın / açık zemin işaretçisi. */
.bt-hs--ym-dosyalar .ym-ticket strong {
	color: var(--hs-navy);
	font-weight: 700;
}

.bt-hs--ym-dosyalar .ym-ticket em,
.bt-hs--ym-dosyalar .ym-dosyalar__plural em {
	font-style: italic;
}

.bt-hs--ym-dosyalar .ym-ticket mark.bt-mark {
	background: linear-gradient(transparent 56%, color-mix(in srgb, var(--hs-gold) 60%, transparent) 56%);
}

/* Dosya adları: düz küçük yazı (çip değil), ayraç li::after "·" (okunmaz). */
.bt-hs--ym-dosyalar .ym-ticket__files {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 2px 6px;
	color: var(--ymd-grey);
	font-size: 13px;
	line-height: 18px;
}

.bt-hs--ym-dosyalar .ym-ticket__files li {
	display: flex;
	gap: 6px;
	white-space: nowrap;
}

.bt-hs--ym-dosyalar .ym-ticket__files li:not(:last-child)::after {
	content: "\00B7";
	content: "\00B7" / "";
}

/* ---------------------------------------------------------------- Çoğul satırı */

.bt-hs--ym-dosyalar .ym-dosyalar__plural {
	position: relative;
	max-width: 792px;
	margin-top: 40px;
	color: var(--hs-white);
	font-size: 18px;
	font-weight: 600;
	line-height: 28px;
}

/* İşaretçi bandı: metnin alt yarısında altın %35 (koyu zemin; beyaz metin ≥ 4.5:1). 2026-11-11: text-decoration yerine arka plan bandı;
   site kuralı "alt çizgi yalnız bağlantılarda" (Yeminli kararı 2026-10-19). */
.bt-hs--ym-dosyalar .ym-dosyalar__plural mark.bt-mark {
	padding: 0;
	color: inherit;
	text-decoration: none;
	background-color: transparent;
	background-image: linear-gradient(color-mix(in srgb, var(--hs-gold) 35%, transparent), color-mix(in srgb, var(--hs-gold) 35%, transparent));
	background-repeat: no-repeat;
	background-size: 100% 0.5em;
	background-position: 0 calc(100% - 0.1em);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.bt-hs--ym-dosyalar .ym-dosyalar__plural strong {
	color: var(--hs-white);
	font-weight: 700;
}

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

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

.bt-hs--ym-dosyalar[data-ym-anim="armed"] .ym-ticket__stub {
	transform: translate3d(0, 10px, 0);
}

.bt-hs--ym-dosyalar[data-ym-anim="play"] .ym-ticket {
	transition: opacity 360ms ease-out, transform 420ms var(--hs-ease);
	transition-delay: calc(var(--i, 0) * 90ms);
}

.bt-hs--ym-dosyalar[data-ym-anim="play"] .ym-ticket__stub {
	transition: transform 300ms var(--hs-ease);
	transition-delay: calc(400ms + var(--i, 0) * 90ms);
}

/* ---------------------------------------------------------------- Tablet (≤ 1024): başlık üstte */

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

	.bt-hs--ym-dosyalar .ym-dosyalar__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.bt-hs--ym-dosyalar .ym-dosyalar__head {
		grid-column: 1;
		max-width: 720px;
	}

	.bt-hs--ym-dosyalar .ym-dosyalar__tickets,
	.bt-hs--ym-dosyalar .ym-dosyalar__grid--nohead .ym-dosyalar__tickets {
		grid-column: 1;
		grid-row: 2;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: none;
		gap: 32px 24px;
	}

	.bt-hs--ym-dosyalar .ym-dosyalar__grid--nohead .ym-dosyalar__tickets {
		grid-row: 1;
	}

	.bt-hs--ym-dosyalar .ym-dosyalar__item {
		grid-row: auto;
		grid-column: auto;
	}

	.bt-hs--ym-dosyalar .ym-dosyalar__item--lead {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	/* Tam genişlikteki öncü fişte gönderme satırı tek satır: masaüstü koçan yüksekliği (124) boşluk bırakırdı. */
	.bt-hs--ym-dosyalar .ym-dosyalar__item--lead .ym-ticket__stub {
		min-height: 0;
	}
}

@media (max-width: 860px) {
	.bt-hs--ym-dosyalar .ym-dosyalar__tickets,
	.bt-hs--ym-dosyalar .ym-dosyalar__grid--nohead .ym-dosyalar__tickets {
		grid-template-columns: minmax(0, 1fr);
	}

	.bt-hs--ym-dosyalar .ym-ticket__stub {
		min-height: 0;
	}
}

/* ---------------------------------------------------------------- Mobil (≤ 767): 390 çizimi */

@media (max-width: 767px) {
	.bt-hs--ym-dosyalar {
		--ymd-shadow: drop-shadow(0 12px 14px rgba(15, 22, 38, 0.38));
	}

	.bt-hs--ym-dosyalar .ym-dosyalar__glow--n500 {
		top: 80px;
		left: calc(50% + 135px);
		width: 380px;
		height: 440px;
		background: rgba(47, 70, 117, 0.75);
		filter: blur(60px);
	}

	.bt-hs--ym-dosyalar .ym-dosyalar__glow--n400 {
		top: 57%;
		left: calc(50% + 135px);
		width: 260px;
		height: 300px;
		background: rgba(61, 90, 150, 0.3);
		filter: blur(60px);
	}

	.bt-hs--ym-dosyalar .ym-dosyalar__glow--deep {
		top: calc(100% - 164px);
		left: calc(50% - 185px);
		width: 460px;
		height: 520px;
		filter: blur(70px);
	}

	.bt-hs--ym-dosyalar .ym-dosyalar__head {
		gap: 12px;
	}

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

	.bt-hs--ym-dosyalar .ym-dosyalar__h2 {
		font-size: 28px;
		line-height: 34px;
	}

	.bt-hs--ym-dosyalar .ym-ticket__stub {
		padding: 20px;
	}

	.bt-hs--ym-dosyalar .ym-ticket__foil,
	.bt-hs--ym-dosyalar .ym-dosyalar__item--lead .ym-ticket__foil {
		gap: 12px;
		padding: 20px;
	}

	.bt-hs--ym-dosyalar .ym-ticket__label {
		font-size: 17px;
		line-height: 23px;
	}

	.bt-hs--ym-dosyalar .ym-dosyalar__plural {
		font-size: 17px;
		line-height: 27px;
	}
}

/* ---------------------------------------------------------------- Azaltılmış hareket: durağan, koçan ayrık */

@media (prefers-reduced-motion: reduce) {
	.bt-hs--ym-dosyalar .ym-ticket,
	.bt-hs--ym-dosyalar .ym-ticket__stub {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
