/*
 * ATAUNI Popup — kurumsal görünüm katmanı.
 *
 * Atatürk Üniversitesi Görsel Kimlik Kılavuzu:
 *   ana renk   #211261 (lacivert, Pantone 2755 C)
 *   ikincil    #E1B77E (altın, Pantone 7508 C)
 *   zemin      #FFFFFF, metin #1A1A1A / #211261
 *
 * PopupJS'in kendi değişkenleri bu dosyada kurumsal değerlere çekilir.
 */

/* Manrope — yerelden servis edilir, dış kaynak kullanılmaz. */
@font-face {
	font-family: 'Manrope ATAUNI';
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url('../fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Manrope ATAUNI';
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--atauni-lacivert: #211261;
	--atauni-lacivert-koyu: #180d47;
	--atauni-altin: #E1B77E;
	--atauni-altin-acik: #f3e3cd;
	--atauni-metin: #1A1A1A;
	--atauni-gri-yuzey: #F5F5F7;
	--atauni-gri-kenar: #E5E7EB;
	--atauni-gri-metin: #6B7280;
	--atauni-yazi: 'Manrope ATAUNI', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* PopupJS değişkenlerinin kurumsal karşılıkları. */
	--pujs-popup-background: #FFFFFF;
	--pujs-popup-text-color: var(--atauni-metin);
	--pu-blue: var(--atauni-lacivert);
}

/* Koyu kip dâhil kurumsal zemin korunur (kılavuz: zemin beyaz). */
.puJS-popup,
.pujs-poAlert,
.puJS-action-sheet,
.puJS-lasting-banner,
.pujs-alert {
	font-family: var(--atauni-yazi);
}

.puJS-popup-container {
	border-top: 4px solid var(--atauni-lacivert);
}

.puJS-popup-container > .padding > .title,
.puJS-action-sheet > .first-part > .title {
	color: var(--atauni-lacivert);
	font-weight: 800;
	letter-spacing: -0.01em;
}

.puJS-popup-container > .padding > .message,
.puJS-action-sheet > .first-part > .message {
	color: var(--atauni-metin);
}

.puJS-popup-button,
.puJS-action-sheet button {
	font-family: var(--atauni-yazi);
	color: var(--atauni-lacivert);
}

.puJS-popup-button.emphasized {
	color: var(--atauni-lacivert);
	font-weight: 800;
}

/* Çekmece / şerit gövdesi. */
.atauni-popup-govde {
	font-family: var(--atauni-yazi);
	color: var(--atauni-metin);
	padding: 4px 4px 8px;
	text-align: left;
}

.atauni-popup-ic-baslik {
	margin: 0 0 10px;
	color: var(--atauni-lacivert);
	font-size: 1.35rem;
	line-height: 1.25;
	font-weight: 800;
}

.atauni-popup-metin {
	font-size: 1rem;
	line-height: 1.6;
}

.atauni-popup-metin p:first-child {
	margin-top: 0;
}

.atauni-popup-govde-butonlar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.atauni-popup-eylem,
.atauni-popup-kapat,
.atauni-popup-tetik {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 10px;
	border: 2px solid var(--atauni-lacivert);
	font-family: var(--atauni-yazi);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.atauni-popup-eylem,
.atauni-popup-tetik {
	background-color: var(--atauni-lacivert);
	color: #FFFFFF;
}

.atauni-popup-eylem:hover,
.atauni-popup-eylem:focus-visible,
.atauni-popup-tetik:hover,
.atauni-popup-tetik:focus-visible {
	background-color: var(--atauni-altin);
	border-color: var(--atauni-altin);
	color: var(--atauni-lacivert);
}

.atauni-popup-kapat {
	background-color: transparent;
	color: var(--atauni-lacivert);
}

.atauni-popup-kapat:hover,
.atauni-popup-kapat:focus-visible {
	background-color: var(--atauni-gri-yuzey);
}

.atauni-popup-eylem:focus-visible,
.atauni-popup-kapat:focus-visible,
.atauni-popup-tetik:focus-visible {
	outline: 3px solid var(--atauni-altin);
	outline-offset: 2px;
}

.atauni-popup-tetik-sarmal {
	display: flex;
}

/* Kalıcı şeritte metin kontrastı. */
.puJS-lasting-banner .atauni-popup-ic-baslik,
.puJS-lasting-banner .atauni-popup-metin {
	color: inherit;
}

.puJS-lasting-banner .atauni-popup-govde {
	color: inherit;
	padding: 0;
}

/* Görseller pencereyi taşırmasın. */
.puJS-popup-container img,
.pujs-poAlert img,
.puJS-lasting-banner img,
.puJS-action-sheet img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Başlık isteğe bağlı: boşsa satır yer kaplamasın. */
.puJS-popup-container > .padding > .title:empty,
.puJS-action-sheet > .first-part > .title:empty,
.puJS-popup-container > .padding > .message:empty,
.puJS-action-sheet > .first-part > .message:empty {
	display: none;
}

/* Eylem sayfasında başlık/metin hiyerarşisi okunur olsun. */
.puJS-action-sheet > .first-part > .title {
	font-size: 1.05rem;
	font-weight: 800;
}

.puJS-action-sheet > .first-part > .message {
	font-size: .95rem;
	line-height: 1.5;
}

/* Çekmece (pull-out): içerik kadar yükseklik, tutamak için üstte boşluk. */
.pujs-poAlert {
	max-height: 85vh;
	overflow-y: auto;
	padding: 3.2rem 1.5rem 2rem;
	border-top: 4px solid var(--atauni-lacivert);
}

.pujs-poAlert > .atauni-popup-govde {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
}

/* Kalıcı şerit içeriği kenarlara yapışmasın. */
.puJS-lasting-banner .inner {
	padding: 2px 4px;
}

/* Elementor düzenleyicisindeki bilgi kutusu. */
.atauni-popup-duzenleyici-uyari {
	padding: 16px 18px;
	border: 2px dashed var(--atauni-altin);
	border-radius: 10px;
	background: var(--atauni-gri-yuzey);
	color: var(--atauni-lacivert);
	font-family: var(--atauni-yazi);
	font-weight: 600;
}

@media (max-width: 600px) {
	.atauni-popup-govde-butonlar {
		flex-direction: column;
	}

	.atauni-popup-eylem,
	.atauni-popup-kapat {
		width: 100%;
	}
}
