/* Turbo i18n — language floater + inline switcher */

.turbo-lang-floater {
	position: fixed;
	top: 14px;
	right: 14px;
	z-index: 9999;
	display: flex;
	gap: 6px;
	background: #1a1a1a;
	border-radius: 999px;
	padding: 5px 8px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}

.turbo-lang-floater .turbo-lang-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 17px;
	line-height: 1;
	text-decoration: none;
	opacity: .55;
	transition: opacity .15s ease, background .15s ease;
}

.turbo-lang-floater .turbo-lang-link:hover,
.turbo-lang-floater .turbo-lang-link:focus-visible {
	opacity: 1;
	background: rgba(255, 255, 255, .12);
}

.turbo-lang-floater .turbo-lang-link.is-active {
	opacity: 1;
	background: #FFD500;
}

/* Inline switcher (shortcode / menu usage) */
.turbo-lang-switcher {
	display: inline-flex;
	gap: 8px;
}

.turbo-lang-switcher a {
	font-size: 18px;
	text-decoration: none;
	opacity: .6;
}

.turbo-lang-switcher a.is-active,
.turbo-lang-switcher a:hover {
	opacity: 1;
}

/* Arabic typography — Arabic script needs more line-height than Latin
   and a font stack that covers Arabic glyphs. */
html[lang="ar"] body,
html[lang="ar"] .main-menu,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select,
html[lang="ar"] button {
	font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

html[lang="ar"] body {
	line-height: 1.75;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
	line-height: 1.45;
}

/* Mirror the floater to the opposite corner under RTL. */
html[dir="rtl"] .turbo-lang-floater {
	right: auto;
	left: 14px;
}
