/* ---------------------------------------------------------------------------
 * Dil seçici (inc/i18n.php, assets/js/lang.js): üst bilgide "Menü" düğmesinin solunda. Düğmede küçük dönen bir
 * dünya; açılınca diller büyük dünyanın çevresinde yörüngede döner.
 * ------------------------------------------------------------------------ */
.motto-lang {
	position: relative;
	margin-inline-end: 10px;
}

.motto-hdr .motto-lang__btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	width: auto;
	height: 46px;
	margin: 0;
	padding: 0 16px 0 11px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	background-color: transparent;
	color: var(--motto-ink);
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: border-color 0.35s ease, background-color 0.35s ease;
}

.motto-hdr .motto-lang__btn:hover,
.motto-hdr .motto-lang__btn:focus-visible,
.motto-lang.is-open .motto-lang__btn {
	border-color: rgba(201, 160, 80, 0.8);
	background-color: rgba(255, 255, 255, 0.06);
}

.motto-lang__mini {
	display: block;
	width: 22px;
	height: 22px;
}

.motto-lang__panel {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 3;
	width: 340px;
	height: 250px;
	overflow: hidden;
	border-radius: 20px;
	background: rgba(14, 15, 19, 0.95);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -20px rgba(0, 0, 0, 0.85);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	visibility: hidden;
	opacity: 0;
	transform: translateY(-8px) scale(0.98);
	transform-origin: top right;
	transition: opacity 0.3s var(--motto-ease-out), transform 0.45s var(--motto-ease-out), visibility 0s 0.45s;
}

.motto-lang.is-open .motto-lang__panel {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition: opacity 0.3s var(--motto-ease-out), transform 0.45s var(--motto-ease-out);
}

.motto-lang__globe {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 5;
	width: 116px;
	height: 116px;
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.motto-lang__panel .motto-lang__chip,
.motto-lang__panel .motto-lang__chip:visited {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(20, 21, 27, 0.96);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	will-change: transform;
	transition: box-shadow 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.motto-lang__panel .motto-lang__chip:hover,
.motto-lang__panel .motto-lang__chip:focus-visible,
.motto-lang__panel .motto-lang__chip.is-hot {
	outline: none;
	background: rgba(40, 33, 20, 0.97);
	box-shadow: inset 0 0 0 1px var(--motto-gold), 0 0 22px rgba(201, 160, 80, 0.35);
	color: #fff;
}

.motto-lang__panel .motto-lang__chip.is-on {
	color: #f0d79a;
}

/* Tarayıcının dili sitedeki başka bir dilse Türkçe sayfada altta bir kez çıkan öneri. */
.motto-lang-tip {
	position: fixed;
	bottom: 22px;
	left: 50%;
	z-index: 9980;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: calc(100vw - 32px);
	padding: 10px 10px 10px 18px;
	border-radius: 999px;
	background: rgba(16, 17, 22, 0.95);
	box-shadow: inset 0 0 0 1px rgba(201, 160, 80, 0.45), 0 20px 40px -14px rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	transform: translate(-50%, 170%);
	transition: transform 0.7s var(--motto-ease-out);
}

.motto-lang-tip.is-in {
	transform: translate(-50%, 0);
}

.motto-lang-tip a,
.motto-lang-tip a:visited {
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--motto-gold);
	color: #121212;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}

.motto-lang-tip .motto-lang-tip__close {
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 767px) {
	.motto-lang {
		margin-inline-end: 8px;
	}

	.motto-hdr .motto-lang__btn {
		gap: 6px;
		height: 44px;
		padding: 0 11px 0 9px;
	}

	.motto-lang__panel {
		position: fixed;
		top: calc(var(--motto-hdr-h) + 6px);
		right: 50%;
		width: min(340px, calc(100vw - 24px));
		transform: translate(50%, -8px) scale(0.98);
	}

	.motto-lang.is-open .motto-lang__panel {
		transform: translate(50%, 0);
	}

	.motto-lang-tip {
		bottom: 86px;
		flex-wrap: wrap;
		border-radius: 18px;
	}
}

/* Sağdan sola diller ve kendi yazı sistemleri: Arapça harfler bitişik yazılır, harf aralığı açılmaz;
 * Gürcücede büyük harfe çevirme yapılmaz. Montserrat'ta olmayan harfler sistemin yazı tipiyle gelir. */
.motto-dil-ar .motto-lang__panel {
	right: auto;
	left: 0;
	transform-origin: top left;
}

html[lang^="ar"] body *,
html[lang^="ka"] body * {
	letter-spacing: normal !important;
}

html[lang^="ka"] body * {
	text-transform: none !important;
}

.motto-lang__chip:lang(ar),
html[lang^="ar"] body {
	font-family: "Montserrat", "Segoe UI", Tahoma, "Noto Kufi Arabic", sans-serif;
}

.motto-lang__chip:lang(ka),
html[lang^="ka"] body {
	font-family: "Montserrat", "Segoe UI", Sylfaen, "Noto Sans Georgian", sans-serif;
}
