/* Language Selector Custom Styles */

/* Menu Language Container */
.menu-language {
	position: absolute;
	top: 0px;
	left: 20px;
	z-index: 100;
	height: 45px;
	display: flex;
	align-items: center;
}

/* Custom Select Container */
.custom-select {
	position: relative;
	display: inline-block;
}

/* Selected Option Styling */
.select-selected {
	background: transparent;
	border: none;
	color: white;
	font-size: 16px;
	cursor: pointer;
	font-family: 'Roboto', helvetica;
	font-weight: 700;
	padding: 5px 20px 5px 0;
	position: relative;
}

/* Dropdown Items Container */
.select-items {
	position: absolute;
	background-color: #363636;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 102;
	display: none;
	border-radius: 3px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Individual Dropdown Options */
.select-items div {
	color: white;
	padding: 8px 12px;
	cursor: pointer;
	font-family: 'Roboto', helvetica;
	font-weight: 700;
}

/* Hover Effects */
.custom-select .select-items div:hover {
	background-color: #689f38 !important;
	color: white !important;
}

.custom-select .select-items div:active {
	background-color: #689f38 !important;
}

/* Dropdown Arrow */
.select-selected:after {
	content: "";
	position: absolute;
	top: 11px;
	right: 0px;
	width: 0;
	height: 0;
	border: 6px solid transparent;
	border-color: white transparent transparent transparent;
}

.select-selected.select-arrow-active:after {
	border-color: transparent transparent white transparent;
	top: 5px;
}

/* Mobile Optimizations - Sideways Dropdown */
@media (max-width: 720px) {
	.menu-language {
		height: 40px;
		z-index: 999;
		position: fixed !important;
		top: 8px;
		left: 20px;
	}
	
	.custom-select {
		z-index: 999;
	}
	
	/* Sideways dropdown positioning */
	.select-items {
		position: fixed !important;
		top: 8px !important;
		left: 60px !important;
		right: auto !important;
		background-color: #363636 !important;
		border-radius: 3px !important;
		box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
		z-index: 1000 !important;
		min-width: 50px !important;
		border: none !important;
		flex-direction: row !important;
	}
	
	/* Show dropdown when active - only override display when visible */
	.select-items.show {
		display: flex !important;
	}
	
	.select-items div {
		padding: 8px 12px !important;
		font-size: 16px !important;
		background-color: #363636 !important;
		color: white !important;
		border: none !important;
		margin: 0 !important;
		cursor: pointer !important;
		text-align: center !important;
		touch-action: manipulation !important;
		font-family: 'Roboto', helvetica !important;
		font-weight: 700 !important;
		transition: background-color 0.2s ease !important;
		display: block !important;
		min-width: 35px !important;
		box-sizing: border-box !important;
	}
	
	.select-items div:hover,
	.select-items div:active,
	.select-items div:focus {
		background-color: #689f38 !important;
		color: white !important;
	}
	
	.select-items div:first-child {
		border-top-left-radius: 3px !important;
		border-bottom-left-radius: 3px !important;
	}
	
	.select-items div:last-child {
		border-top-right-radius: 3px !important;
		border-bottom-right-radius: 3px !important;
	}
}
