/* LMC Duyuru Popup ------------------------------------------------------- */

:root {
	--lmc-popup-accent: #1668b3;
}

.lmc-popup-overlay[hidden] {
	display: none;
}

.lmc-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: rgba(15, 23, 42, 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.28s ease;
	overscroll-behavior: contain;
}

.lmc-popup-overlay.is-open {
	opacity: 1;
}

.lmc-popup {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 48px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.lmc-popup-overlay.is-open .lmc-popup {
	opacity: 1;
}

/* Odaklanan pencerede çerçeve çıkmasın. */
.lmc-popup:focus,
.lmc-popup:focus-visible {
	outline: none !important;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18) !important;
}

/* Üst vurgu şeridi */
.lmc-popup__bar {
	display: block;
	height: 3px;
	flex: none;
	background: var(--lmc-popup-accent);
}

/* Kapat düğmesi. Tema buton stillerine karşı sıfırlanır. */
.lmc-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 28px !important;
	height: 28px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	font-size: 0 !important;
	line-height: 1 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: #111827;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: opacity 0.15s ease;
	opacity: 0.75;
}

/* X ikonu */
.lmc-popup__close-icon {
	position: relative;
	display: block;
	width: 16px;
	height: 16px;
	pointer-events: none;
}

.lmc-popup__close-icon::before,
.lmc-popup__close-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.lmc-popup__close-icon::before {
	transform: translateY(-50%) rotate(45deg);
}

.lmc-popup__close-icon::after {
	transform: translateY(-50%) rotate(-45deg);
}

.lmc-popup__close:hover,
.lmc-popup__close:focus-visible {
	background: none !important;
	color: #000;
	opacity: 1;
}

.lmc-popup__cta:focus-visible,
.lmc-popup__dismiss:focus-visible {
	outline: 2px solid var(--lmc-popup-accent);
	outline-offset: 2px;
}

.lmc-popup__close:focus,
.lmc-popup__close:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

/* Gövde. Çubuk gizli ama uzun içerikte kaydırılabilir. */
.lmc-popup__scroll {
	padding: 30px 32px 28px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.lmc-popup__scroll::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.lmc-popup__title {
	margin: 0 34px 14px 0;
	padding: 0;
	font-size: 21px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--lmc-popup-accent);
	letter-spacing: -0.01em;
}

.lmc-popup__content {
	color: #334155;
	font-size: 15px;
	line-height: 1.7;
	text-align: justify;
	hyphens: auto;
}

.lmc-popup__content p {
	margin: 0 0 14px;
}

.lmc-popup__content p:last-child {
	margin-bottom: 0;
}

.lmc-popup__content strong,
.lmc-popup__content b {
	color: #0f172a;
	font-weight: 700;
}

.lmc-popup__content a {
	color: var(--lmc-popup-accent);
	text-decoration: underline;
}

.lmc-popup__content ul,
.lmc-popup__content ol {
	margin: 0 0 14px;
	padding-left: 20px;
	text-align: left;
}

/* Görsel */
.lmc-popup__media {
	margin: 20px 0 0;
	padding: 0;
	text-align: center;
}

.lmc-popup__img {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
	margin: 0 auto;
	border-radius: 8px;
}

/* Butonlar */
.lmc-popup__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #eef2f7;
}

.lmc-popup__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 20px;
	border-radius: 4px;
	background: var(--lmc-popup-accent);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color 0.15s ease;
}

.lmc-popup__cta:hover {
	background: #0f5296;
}

.lmc-popup__dismiss {
	min-height: 40px;
	padding: 9px 14px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: none;
	color: #4b5563;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lmc-popup__dismiss:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

/* Arka plan kaydırma kilidi */
html.lmc-popup-open,
html.lmc-popup-open body {
	overflow: hidden !important;
}

/* Mobil */
@media (max-width: 600px) {
	.lmc-popup-overlay {
		padding: 16px;
		align-items: center;
	}

	.lmc-popup {
		max-width: 100%;
		max-height: 88vh;
		max-height: 88dvh;
		border-radius: 8px;
		box-shadow: 0 8px 28px rgba(15, 23, 42, 0.22);
	}

	.lmc-popup__scroll {
		padding: 22px 18px 20px;
	}

	.lmc-popup__close {
		top: 8px;
		right: 8px;
		width: 40px !important;
		height: 40px !important;
	}

	.lmc-popup__title {
		margin-right: 40px;
		font-size: 18px;
		line-height: 1.35;
	}

	.lmc-popup__content {
		font-size: 15px;
		line-height: 1.65;
		text-align: left;
	}

	.lmc-popup__content p {
		margin-bottom: 12px;
	}

	.lmc-popup__media {
		margin-top: 16px;
	}

	.lmc-popup__img {
		max-width: 180px;
	}

	.lmc-popup__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		margin-top: 18px;
		padding-top: 14px;
	}

	.lmc-popup__cta,
	.lmc-popup__dismiss {
		width: 100%;
		min-height: 46px;
		font-size: 15px;
	}

	.lmc-popup__dismiss {
		border: 0;
		background: none;
	}
}

/* Çok kısa ekranlarda (yatay mod) görseli gizleyip metne yer aç. */
@media (max-height: 520px) {
	.lmc-popup__media {
		display: none;
	}
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
	.lmc-popup-overlay,
	.lmc-popup,
	.lmc-popup__close,
	.lmc-popup__cta {
		transition: none !important;
	}

	.lmc-popup {
		transform: none;
	}
}

/* Yazdırma */
@media print {
	.lmc-popup-overlay {
		display: none !important;
	}
}
