/**
 * La-Kass Language Switcher Styles
 *
 * @package La-Kass
 * @since   1.0.0
 */

/* ==========================================================================
   Language Switcher (Header / Footer — Dropdown)
   ========================================================================== */

.lk-lang-switcher {
	position: relative;
	display: inline-flex;
	z-index: 100;
}

.lk-lang-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 10px;
	background: transparent;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	transition: border-color 0.2s, background 0.2s;
}

.lk-lang-switcher__toggle:hover {
	border-color: #999;
	background: #f9f9f9;
}

.lk-lang-switcher__flag {
	font-size: 16px;
	line-height: 1;
}

.lk-lang-switcher__code {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.lk-lang-switcher__arrow {
	transition: transform 0.2s;
}

.lk-lang-switcher[data-open="true"] .lk-lang-switcher__arrow {
	transform: rotate(180deg);
}

/* Dropdown */
.lk-lang-switcher__dropdown {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 140px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	list-style: none;
	margin: 0;
	padding: 6px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.lk-lang-switcher[data-open="true"] .lk-lang-switcher__dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lk-lang-switcher__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 13px;
	color: #333;
	text-decoration: none;
	transition: background 0.15s;
}

.lk-lang-switcher__item:hover {
	background: #f5f5f5;
	color: var(--lk-color-primary, #ff4d00);
}

.lk-lang-switcher__name {
	font-weight: 500;
}

/* ==========================================================================
   Mobile Language Switcher (Flat)
   ========================================================================== */

.lk-lang-mobile {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-top: 1px solid #eee;
}

.lk-lang-mobile__label {
	font-size: 13px;
	font-weight: 500;
	color: #888;
}

.lk-lang-mobile__options {
	display: flex;
	gap: 6px;
}

.lk-lang-mobile__item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 10px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #555;
	text-decoration: none;
	transition: border-color 0.2s, background 0.2s;
}

.lk-lang-mobile__item:hover {
	border-color: var(--lk-color-primary, #ff4d00);
	color: var(--lk-color-primary, #ff4d00);
}

.lk-lang-mobile__item--active {
	background: var(--lk-color-primary, #ff4d00);
	border-color: var(--lk-color-primary, #ff4d00);
	color: #fff;
	cursor: default;
}
