/*!
 * LearnMore – yüzen rozet + video modal
 * NGTech
 */

/* =========================================================
   1. YÜZEN ROZET
   ========================================================= */

.ngtlm-widget {
	--ngtlm-size: 140px;
	--ngtlm-accent: #00a2ff;
	--ngtlm-accent-dark: #0b86d4;
	--ngtlm-navy: #12245c;
	--ngtlm-glitch: 420ms;

	position: fixed;
	z-index: 99940;
	left: 12px;
	/* CookieYes "revisit" rozeti sol altta (15px) duruyor; üstünde konumlanıyoruz. */
	bottom: 74px;
	width: var(--ngtlm-size);
	height: var(--ngtlm-size);
	margin: 0;
	padding: 0;
	line-height: 0;
	pointer-events: none;
}

/* Selector iki sınıf içeriyor (0-2-0): temaların
   :is(.btn,.button,button,…) kuralı (0-1-0) bunu ezemesin diye. */
.ngtlm-widget .ngtlm-badge {
	pointer-events: auto;
	position: relative;
	display: block;
	width: var(--ngtlm-size);
	height: var(--ngtlm-size);
	min-width: 0;
	min-height: 0;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	background-color: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	line-height: 0;
	text-transform: none;
	text-shadow: none;
	cursor: pointer;
	overflow: visible;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	filter: none;
	transform: translate3d(0, 0, 0);
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.25, 1);
	animation: ngtlm-enter 0.75s cubic-bezier(0.2, 0.85, 0.25, 1) 1.1s both;
}

.ngtlm-widget .ngtlm-badge:hover,
.ngtlm-widget .ngtlm-badge:focus-visible {
	background: none;
	background-color: transparent;
	box-shadow: none;
	transform: translate3d(0, -4px, 0) scale(1.04);
}

.ngtlm-widget .ngtlm-badge:focus {
	outline: none;
}

.ngtlm-widget .ngtlm-badge:focus-visible {
	outline: 3px solid var(--ngtlm-accent);
	outline-offset: 6px;
}

.ngtlm-widget .ngtlm-badge:active {
	background: none;
	background-color: transparent;
	transform: translate3d(0, -1px, 0) scale(0.99);
}

@keyframes ngtlm-enter {
	from {
		opacity: 0;
		transform: translate3d(-34px, 10px, 0) scale(0.9);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

.ngtlm-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---- Sahne ve kareler ---- */

.ngtlm-stage {
	position: absolute;
	inset: 0;
	display: block;
}

/* top/bottom 0 + auto dikey margin: her kare kutuda dikeyde ortalanır. */
.ngtlm-frame {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	margin: auto 0;
	display: block;
	opacity: 0;
	visibility: hidden;
}

/* Proven Partner rozetleri kare (440x440). */
.ngtlm-frame--badge {
	height: 100%;
}

/* "Şimdi İzle" görseli 440x234 -> kutu genişliğinin %53.182'si. */
.ngtlm-frame--cta {
	height: 53.182%;
}

.ngtlm-frame.is-active {
	opacity: 1;
	visibility: visible;
}

.ngtlm-img,
.ngtlm-gl {
	position: absolute;
	inset: 0;
	display: block;
	background-image: var(--ngtlm-src);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 100% 100%;
}

.ngtlm-img {
	z-index: 2;
}

.ngtlm-gl {
	z-index: 3;
	opacity: 0;
	will-change: clip-path, transform, opacity;
}

.ngtlm-gl--1 {
	filter: drop-shadow(5px 0 0 rgba(255, 0, 82, 0.8));
}

.ngtlm-gl--2 {
	filter: drop-shadow(-5px 0 0 rgba(0, 224, 255, 0.8));
}

.ngtlm-gl--3 {
	filter: brightness(1.9) saturate(0.25);
}

/* Tarama çizgileri – görselin alfa maskesiyle sınırlanır,
   böylece şeffaf köşelerde dikdörtgen bir blok görünmez. */
.ngtlm-fx {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: block;
	opacity: 0;
	pointer-events: none;
	background-image: repeating-linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.55) 0,
		rgba(0, 0, 0, 0.55) 1px,
		rgba(0, 162, 255, 0.22) 1px,
		rgba(0, 162, 255, 0.22) 2px,
		rgba(255, 255, 255, 0) 2px,
		rgba(255, 255, 255, 0) 4px
	);
	-webkit-mask-image: var(--ngtlm-src);
	mask-image: var(--ngtlm-src);
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

/* =========================================================
   2. GLITCH GEÇİŞİ
   ========================================================= */

@keyframes ngtlm-out {
	0% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
		filter: none;
	}
	8% {
		opacity: 1;
		transform: translate3d(-4%, 0, 0);
		filter: drop-shadow(4px 0 0 rgba(255, 0, 82, 0.9)) drop-shadow(-4px 0 0 rgba(0, 224, 255, 0.9));
	}
	22% {
		opacity: 0.95;
		transform: translate3d(5%, 0, 0) scaleY(1.05);
		filter: drop-shadow(-7px 0 0 rgba(255, 0, 82, 0.85)) drop-shadow(7px 0 0 rgba(0, 224, 255, 0.85)) contrast(1.45);
	}
	36% {
		opacity: 0.5;
		transform: translate3d(-3%, 0, 0) scaleY(0.9);
		filter: brightness(2.4) saturate(0.1);
	}
	54% {
		opacity: 0.28;
		transform: translate3d(4%, 0, 0) scaleY(1.02);
	}
	72% {
		opacity: 0.12;
		transform: translate3d(-1%, 0, 0);
	}
	100% {
		opacity: 0;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes ngtlm-in {
	0% {
		opacity: 0;
		transform: translate3d(7%, 0, 0) scaleY(0.68);
		filter: brightness(2.8) saturate(0.2);
	}
	14% {
		opacity: 1;
		transform: translate3d(-5%, 0, 0) scaleY(1.14);
		filter: drop-shadow(-5px 0 0 rgba(0, 224, 255, 0.9)) drop-shadow(5px 0 0 rgba(255, 0, 82, 0.9));
	}
	28% {
		opacity: 0.55;
		transform: translate3d(4%, 0, 0) scaleY(0.95);
		filter: none;
	}
	44% {
		opacity: 1;
		transform: translate3d(-2%, 0, 0) scaleY(1.03);
		filter: drop-shadow(3px 0 0 rgba(255, 0, 82, 0.6)) drop-shadow(-3px 0 0 rgba(0, 224, 255, 0.6));
	}
	62% {
		opacity: 0.85;
		transform: translate3d(1%, 0, 0);
		filter: none;
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
		filter: none;
	}
}

@keyframes ngtlm-slice-1 {
	0%,
	100% {
		opacity: 0;
	}
	5% {
		opacity: 1;
		clip-path: inset(6% 0 76% 0);
		transform: translate3d(-12%, 0, 0);
	}
	19% {
		opacity: 1;
		clip-path: inset(53% 0 33% 0);
		transform: translate3d(10%, 0, 0);
	}
	33% {
		opacity: 1;
		clip-path: inset(79% 0 5% 0);
		transform: translate3d(-8%, 0, 0);
	}
	47% {
		opacity: 1;
		clip-path: inset(21% 0 63% 0);
		transform: translate3d(13%, 0, 0);
	}
	61% {
		opacity: 1;
		clip-path: inset(65% 0 19% 0);
		transform: translate3d(-6%, 0, 0);
	}
	75% {
		opacity: 0.85;
		clip-path: inset(37% 0 49% 0);
		transform: translate3d(5%, 0, 0);
	}
	88% {
		opacity: 0;
	}
}

@keyframes ngtlm-slice-2 {
	0%,
	100% {
		opacity: 0;
	}
	9% {
		opacity: 1;
		clip-path: inset(44% 0 40% 0);
		transform: translate3d(9%, 0, 0);
	}
	24% {
		opacity: 1;
		clip-path: inset(14% 0 70% 0);
		transform: translate3d(-10%, 0, 0);
	}
	39% {
		opacity: 1;
		clip-path: inset(70% 0 14% 0);
		transform: translate3d(7%, 0, 0);
	}
	54% {
		opacity: 1;
		clip-path: inset(30% 0 56% 0);
		transform: translate3d(-13%, 0, 0);
	}
	69% {
		opacity: 0.9;
		clip-path: inset(58% 0 26% 0);
		transform: translate3d(6%, 0, 0);
	}
	83% {
		opacity: 0;
	}
}

@keyframes ngtlm-slice-3 {
	0%,
	100% {
		opacity: 0;
	}
	12% {
		opacity: 0.95;
		clip-path: inset(26% 0 58% 0);
		transform: translate3d(3%, -2%, 0);
	}
	30% {
		opacity: 0.95;
		clip-path: inset(60% 0 24% 0);
		transform: translate3d(-4%, 2%, 0);
	}
	50% {
		opacity: 0.95;
		clip-path: inset(2% 0 84% 0);
		transform: translate3d(5%, 0, 0);
	}
	68% {
		opacity: 0.8;
		clip-path: inset(84% 0 2% 0);
		transform: translate3d(-3%, 0, 0);
	}
	82% {
		opacity: 0;
	}
}

@keyframes ngtlm-fx {
	0% {
		opacity: 0;
	}
	10% {
		opacity: 0.9;
	}
	24% {
		opacity: 0.12;
	}
	38% {
		opacity: 0.75;
	}
	55% {
		opacity: 0.08;
	}
	70% {
		opacity: 0.5;
	}
	86% {
		opacity: 0.18;
	}
	100% {
		opacity: 0;
	}
}

.ngtlm-frame.is-out .ngtlm-img {
	animation: ngtlm-out var(--ngtlm-glitch) linear both;
}

.ngtlm-frame.is-in .ngtlm-img {
	animation: ngtlm-in var(--ngtlm-glitch) linear both;
}

.ngtlm-frame.is-out .ngtlm-gl--1,
.ngtlm-frame.is-in .ngtlm-gl--1 {
	animation: ngtlm-slice-1 var(--ngtlm-glitch) steps(1, end) both;
}

.ngtlm-frame.is-out .ngtlm-gl--2,
.ngtlm-frame.is-in .ngtlm-gl--2 {
	animation: ngtlm-slice-2 var(--ngtlm-glitch) steps(1, end) both;
}

.ngtlm-frame.is-out .ngtlm-gl--3,
.ngtlm-frame.is-in .ngtlm-gl--3 {
	animation: ngtlm-slice-3 var(--ngtlm-glitch) steps(1, end) both;
}

.ngtlm-frame.is-out .ngtlm-fx,
.ngtlm-frame.is-in .ngtlm-fx {
	animation: ngtlm-fx var(--ngtlm-glitch) steps(1, end) both;
}

/* =========================================================
   3. VİDEO MODAL
   ========================================================= */

.ngtlm-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 26px 18px;
	font-family: "Poppins", Arial, Helvetica, sans-serif;
	-webkit-tap-highlight-color: transparent;
}

.ngtlm-modal[hidden] {
	display: none !important;
}

.ngtlm-modal__bg {
	position: absolute;
	inset: 0;
	background: rgba(5, 12, 30, 0.88);
	-webkit-backdrop-filter: blur(8px) saturate(1.1);
	backdrop-filter: blur(8px) saturate(1.1);
	animation: ngtlm-fade 0.28s ease both;
}

@keyframes ngtlm-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.ngtlm-modal__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	max-width: 100%;
	animation: ngtlm-pop 0.34s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

@keyframes ngtlm-pop {
	from {
		opacity: 0;
		transform: translate3d(0, 18px, 0) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

.ngtlm-player {
	position: relative;
	width: min(1120px, 92vw, calc((100vh - 210px) * 1.7778));
	width: min(1120px, 92vw, calc((100svh - 210px) * 1.7778));
	aspect-ratio: 16 / 9;
	background: #05080f;
	box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6);
	overflow: hidden;
}

/* aspect-ratio desteklemeyen çok eski tarayıcılar için yedek. */
@supports not (aspect-ratio: 16 / 9) {
	.ngtlm-player {
		height: 0;
		padding-bottom: 56.25%;
	}
}

.ngtlm-video {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	background: #05080f;
	object-fit: contain;
}

@supports not (aspect-ratio: 16 / 9) {
	.ngtlm-video {
		position: absolute;
		inset: 0;
	}
}

.ngtlm-modal .ngtlm-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: none;
	color: #fff;
	font: inherit;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ngtlm-modal .ngtlm-modal__close:hover,
.ngtlm-modal .ngtlm-modal__close:focus-visible {
	background: var(--ngtlm-accent, #00a2ff);
	color: #fff;
	transform: rotate(90deg);
}

.ngtlm-modal .ngtlm-modal__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.ngtlm-modal__foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}

.ngtlm-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 32px;
	border: 0;
	border-radius: 0;
	background: var(--ngtlm-accent, #00a2ff);
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.22s ease, transform 0.22s ease;
}

.ngtlm-cta:hover,
.ngtlm-cta:focus-visible {
	background: var(--ngtlm-accent-dark, #0b86d4);
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
}

.ngtlm-cta svg {
	transition: transform 0.22s ease;
}

.ngtlm-cta:hover svg {
	transform: translateX(4px);
}

.ngtlm-modal__hint {
	margin: 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
}

/* ---- Yükleniyor ---- */

.ngtlm-spinner {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: #05080f;
	color: rgba(255, 255, 255, 0.7);
	font-size: 12px;
	letter-spacing: 0.05em;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ngtlm-spinner.is-on {
	opacity: 1;
	visibility: visible;
}

.ngtlm-spinner > span {
	display: block;
	width: 34px;
	height: 34px;
	border: 3px solid rgba(255, 255, 255, 0.18);
	border-top-color: var(--ngtlm-accent, #00a2ff);
	border-radius: 50%;
	animation: ngtlm-spin 0.85s linear infinite;
}

.ngtlm-spinner > em {
	font-style: normal;
}

@keyframes ngtlm-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---- Sesi aç ---- */

.ngtlm-player .ngtlm-unmute {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 0;
	margin: 0;
	padding: 10px 16px;
	border: 0;
	border-radius: 0;
	background: var(--ngtlm-accent, #00a2ff);
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	animation: ngtlm-fade 0.3s ease both;
}

.ngtlm-player .ngtlm-unmute[hidden] {
	display: none !important;
}

.ngtlm-player .ngtlm-unmute:hover {
	background: var(--ngtlm-accent-dark, #0b86d4);
	color: #fff;
}

/* ---- Kaydırma kilidi ---- */

html.ngtlm-lock {
	overflow: hidden !important;
	padding-right: var(--ngtlm-sbw, 0px);
}

/* =========================================================
   4. DUYARLI
   ========================================================= */

@media (max-width: 1024px) {
	.ngtlm-widget {
		--ngtlm-size: 124px;
	}
}

/* Mobil: alt orta (sağda reCAPTCHA, sol altta çerez rozeti var). */
@media (max-width: 767px) {
	.ngtlm-widget {
		--ngtlm-size: 116px;
		left: 50%;
		right: auto;
		bottom: 12px;
		transform: translateX(-50%);
	}

	.ngtlm-badge {
		filter: drop-shadow(0 8px 18px rgba(8, 22, 54, 0.32));
	}

	.ngtlm-modal {
		padding: 16px 12px;
	}

	.ngtlm-player {
		width: min(96vw, calc((100vh - 170px) * 1.7778));
		width: min(96vw, calc((100svh - 170px) * 1.7778));
	}

	.ngtlm-modal__close {
		top: 8px;
		right: 8px;
		width: 40px;
		height: 40px;
	}

	.ngtlm-cta {
		padding: 14px 24px;
		font-size: 13px;
	}

	.ngtlm-modal__hint {
		font-size: 11px;
	}
}

@media (max-width: 400px) {
	.ngtlm-widget {
		--ngtlm-size: 104px;
	}
}

/* Yatay ve kısa ekranlar (telefon yan çevrildiğinde). */
@media (max-height: 520px) and (orientation: landscape) {
	.ngtlm-modal {
		padding: 10px;
	}

	.ngtlm-player {
		width: min(92vw, calc((100vh - 96px) * 1.7778));
	}

	.ngtlm-modal__inner {
		gap: 10px;
	}

	.ngtlm-cta {
		padding: 10px 20px;
		font-size: 12px;
	}

	.ngtlm-modal__hint {
		display: none;
	}
}

/* =========================================================
   5. HAREKET AZALTMA TERCİHİ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
	.ngtlm-badge {
		animation: none;
	}

	.ngtlm-frame {
		transition: opacity 0.3s linear;
	}

	.ngtlm-frame.is-out {
		opacity: 0;
	}

	.ngtlm-frame.is-out *,
	.ngtlm-frame.is-in * {
		animation: none !important;
	}

	.ngtlm-modal__bg,
	.ngtlm-modal__inner,
	.ngtlm-unmute {
		animation: none;
	}

	.ngtlm-spinner > span {
		animation-duration: 2s;
	}
}

/* Yazdırma: rozet ve modal görünmesin. */
@media print {
	.ngtlm-widget,
	.ngtlm-modal {
		display: none !important;
	}
}
