/* ------------------------------------------------------------- *
 *  Language Selector
/* ------------------------------------------------------------- */

.tt-language-selector {
	display: flex;
	align-items: center;
	margin-right: 20px;
	gap: 5px;
	position: relative;
	z-index: 9999;
	pointer-events: auto;
}

.tt-lang-btn {
	display: inline-block;
	padding: 4px 6px;
	font-size: 14px;
	font-weight: 500;
	color: #FFF;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 4px;
	transition: all 0.3s ease;
	background-color: transparent;
	position: relative;
	z-index: 9999;
	cursor: pointer;
	pointer-events: auto;
	user-select: none;
	outline: none;
}

/* Button elementleri için özel stiller */
button.tt-lang-btn {
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #FFF;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	padding: 4px 6px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	z-index: 9999;
	pointer-events: auto;
	user-select: none;
	outline: none;
}

.tt-lang-btn:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.5);
	color: #FFF;
}

.tt-lang-btn.active {
	background-color: #FFF;
	color: #0a0a0a;
	border-color: #FFF;
}

/* Dark theme adjustments for language selector */
body.ph-bg-image-light-on:not(.tt-ol-menu-open) .tt-lang-btn {
	color: #111;
	border-color: rgba(17, 17, 17, 0.3);
}

body.ph-bg-image-light-on:not(.tt-ol-menu-open) .tt-lang-btn:hover {
	background-color: rgba(17, 17, 17, 0.1);
	border-color: rgba(17, 17, 17, 0.5);
	color: #111;
}

body.ph-bg-image-light-on:not(.tt-ol-menu-open) .tt-lang-btn.active {
	background-color: #111;
	color: #FFF;
	border-color: #111;
}

body.psi-light-image-on .tt-lang-btn {
	color: #111;
	border-color: rgba(17, 17, 17, 0.3);
}

body.psi-light-image-on .tt-lang-btn:hover {
	background-color: rgba(17, 17, 17, 0.1);
	border-color: rgba(17, 17, 17, 0.5);
	color: #111;
}

body.psi-light-image-on .tt-lang-btn.active {
	background-color: #111;
	color: #FFF;
	border-color: #111;
}

body.tt-light-bg-on .tt-lang-btn {
	color: #111;
	border-color: rgba(17, 17, 17, 0.3);
}

body.tt-light-bg-on .tt-lang-btn:hover {
	background-color: rgba(17, 17, 17, 0.1);
	border-color: rgba(17, 17, 17, 0.5);
	color: #111;
}

body.tt-light-bg-on .tt-lang-btn.active {
	background-color: #111;
	color: #FFF;
	border-color: #111;
}

/* Dil değiştirme animasyonları */
.tt-lang-btn {
	position: relative;
	overflow: hidden;
}

.tt-lang-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.tt-lang-btn:hover::before {
	left: 100%;
}

/* Aktif dil butonu animasyonu */
.tt-lang-btn.active {
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
	}
}

/* Dil değiştirme geçiş efekti */
.language-transition {
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
}

.language-transition.active {
	opacity: 1;
	transform: translateY(0);
}

/* Dil butonları hover efekti */
.tt-lang-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive tasarım */
@media (max-width: 768px) {
	.tt-language-selector {
		margin-right: 15px;
	}
	
	.tt-lang-btn {
		padding: 6px 10px;
		font-size: 13px;
	}
	
	/* Mobilde dil butonları daha küçük */
	.tt-lang-btn {
		padding: 4px 8px;
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.tt-language-selector {
		margin-right: 10px;
		gap: 3px;
	}
	
	.tt-lang-btn {
		padding: 3px 6px;
		font-size: 11px;
	}
}
