/* ==========================================================================
   TT-MIM Email Gate (Ben insanım kutucuğu + bekleme + reveal)
   currentColor ile çalıştığı için açık/koyu her zeminde uyumludur.
   ========================================================================== */

.ttmim-email-gate {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: inherit;
	line-height: 1.4;
	color: inherit;
}

/* ----------------------------------------------------------------
   Buton modu — başlangıçta "E-posta Adresini Göster"
   ---------------------------------------------------------------- */
.ttmim-email-gate__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 20px;
	border-radius: 6px;
	border: 1.5px solid #2AB391;
	background: #2AB391;
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	line-height: 1.2;
	box-shadow: 0 6px 18px rgba(42, 179, 145, 0.28);
	transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ttmim-email-gate__btn:hover {
	background: #1F9C7C;
	border-color: #1F9C7C;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(42, 179, 145, 0.34);
}

.ttmim-email-gate__btn:focus-visible {
	outline: 2px solid #2AB391;
	outline-offset: 3px;
}

.ttmim-email-gate__btn-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.ttmim-email-gate__check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
	min-height: 24px;
}

/* native input ekranda yok ama klavye ile erişilebilir */
.ttmim-email-gate__cb {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
	margin: 0;
}

.ttmim-email-gate__box {
	display: inline-block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border: 1.5px solid currentColor;
	border-radius: 3px;
	background: transparent;
	opacity: 0.85;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
	position: relative;
}

.ttmim-email-gate__check:hover .ttmim-email-gate__box {
	opacity: 1;
}

.ttmim-email-gate__cb:checked + .ttmim-email-gate__box {
	background: #2AB391;
	border-color: #2AB391;
	opacity: 1;
}

.ttmim-email-gate__cb:checked + .ttmim-email-gate__box::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ttmim-email-gate__cb:focus-visible + .ttmim-email-gate__box {
	outline: 2px solid #2AB391;
	outline-offset: 2px;
}

.ttmim-email-gate__text {
	font-size: 13.5px;
	line-height: 1.4;
	color: inherit;
	opacity: 0.85;
}

.ttmim-email-gate__loading {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	opacity: 0.85;
	font-size: 13.5px;
}

.ttmim-email-gate__spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: ttmim-eg-spin 0.7s linear infinite;
	opacity: 0.9;
}

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

.ttmim-email-gate__link {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: opacity 0.2s ease;
	animation: ttmim-eg-fade 0.35s ease both;
}

@keyframes ttmim-eg-fade {
	from { opacity: 0; transform: translateY(2px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ttmim-email-gate__link:hover {
	color: #2AB391;
}

.ttmim-email-gate.is-revealed .ttmim-email-gate__check {
	display: none;
}

.ttmim-email-gate__noscript {
	font-size: 13px;
	opacity: 0.85;
}

/* Koyu zemine özel (footer gibi) */
.ttmim-email-gate--dark .ttmim-email-gate__link:hover {
	color: #5DCBAE;
}
