/* ==========================================================================
   WP Translate Engine – Frontend styles
   ========================================================================== */

/* Language switcher list (widget / shortcode)
   ========================================================================== */
ul.wpte-switcher {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 8px;
}

ul.wpte-switcher li a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	text-decoration: none;
}

ul.wpte-switcher li.wpte-active a {
	font-weight: bold;
}

/* Dropdown language switcher (nav menu injection)
   ========================================================================== */
li.wpte-lang-dropdown {
	position: relative;
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.wpte-lang-current {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0 10px;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	color: inherit;
}

.wpte-lang-list {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	width: 100px !important;
	min-width: 0 !important;
	max-width: 100px !important;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	list-style: none;
	margin: 4px 0 0;
	padding: 4px 0;
	z-index: 9999;
}

li.wpte-lang-dropdown:hover .wpte-lang-list,
li.wpte-lang-dropdown.wpte-open .wpte-lang-list {
	display: block;
}

.wpte-lang-list li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpte-lang-list li a {
	display: block;
	padding: 11px 14px;
	font-size: 18px;
	line-height: 1.3;
	text-decoration: none;
	color: #333;
	white-space: nowrap;
	transition: background 0.15s;
}

.wpte-lang-list li a:hover {
	background: #f0f0f0;
	color: #000;
}

.wpte-lang-list li.wpte-active a {
	font-weight: 700;
	color: #000;
}

/* Inline language flags – common
   ========================================================================== */
li.wpte-lang-inline-item a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

li.wpte-lang-inline-item.wpte-active > a {
	font-weight: 700;
}

/* Desktop / tablet (> 600 px): individual items visible, mobile wrapper hidden */
@media screen and (min-width: 601px) {
	.wpte-inline-desktop { display: list-item; }
	.wpte-inline-mobile  { display: none !important; }
}

/* Smartphone (≤ 600 px): individual items hidden, wrapper enters the hamburger */
@media screen and (max-width: 600px) {
	.wpte-inline-desktop { display: none !important; }
	.wpte-inline-mobile  { display: list-item; }

	ul.wpte-lang-inline-list {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 4px;
		list-style: none;
		margin: 0;
		padding: 6px 0;
	}
}

/* Flag images */
.wpte-flag {
	display: inline-block;
	width: 20px;
	height: auto;
	vertical-align: middle;
	border-radius: 2px;
	margin: 0 !important;
	padding: 0 !important;
}
