/**
 * MBC Language Switcher for Weglot
 * 
 * @package MBC_WG
 * @version 1.0.0
 * 
 * Note: Critical styles are inlined in shortcode for instant rendering
 */

/* ==========================================================================
   Hide Default Weglot Widget (we use custom switcher)
   ========================================================================== */

.weglot-dropdown,
.country-selector,
aside.weglot-default,
[data-wg-notranslate].country-selector {
	display: none !important;
}

/* ==========================================================================
   Container
   ========================================================================== */

.mbc-wg {
	position: relative;
	display: inline-flex;
	align-items: center;
	font-family: inherit;
}

/* ==========================================================================
   Button
   ========================================================================== */

.mbc-wg__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	line-height: 1;
	color: currentColor;
	font-family: inherit;
	font-size: inherit;
	transition: opacity 0.2s ease;
}

.mbc-wg__btn:hover {
	opacity: 0.7;
}

.mbc-wg__btn:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 4px;
}

.mbc-wg__btn:focus:not(:focus-visible) {
	outline: none;
}

/* ==========================================================================
   Icon
   ========================================================================== */

.mbc-wg__icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

/* ==========================================================================
   Label
   ========================================================================== */

.mbc-wg__label {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* ==========================================================================
   Dropdown Menu
   ========================================================================== */

.mbc-wg__menu {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	min-width: 160px;
	padding: 6px;
	margin: 0;
	list-style: none;
	
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 
		0 4px 6px -1px rgba(0, 0, 0, 0.1),
		0 2px 4px -1px rgba(0, 0, 0, 0.06);
	
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: 
		opacity 0.15s ease,
		visibility 0.15s ease,
		transform 0.15s ease;
	
	z-index: 1000;
}

.mbc-wg.is-open .mbc-wg__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mbc-wg__menu li {
	margin: 0;
	padding: 0;
}

.mbc-wg__menu a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 6px;
	text-decoration: none;
	color: #1f2937;
	font-size: 1.3rem;
	line-height: 1.5rem;
	font-weight: 400;
	transition: background-color 0.15s ease;
}

.mbc-wg__menu a:hover {
	background: #f3f4f6;
	color: #111827;
}

.mbc-wg__menu a:focus {
	outline: 2px solid #3b82f6;
	outline-offset: -2px;
}

.mbc-wg__menu a[aria-selected="true"] {
	background: #f3f4f6;
	color: #111827;
	font-weight: 500;
}

.mbc-wg__menu-label {
	flex: 1;
	text-align: left;
	font-size: 1.3rem;
}

.mbc-wg__menu-code {
	font-size: 1rem;
	font-weight: 600;
	color: #9ca3af;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.mbc-wg__menu a[aria-selected="true"] .mbc-wg__menu-code {
	color: #6b7280;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
	.mbc-wg__menu {
		min-width: 140px;
		padding: 4px;
	}
	
	.mbc-wg__menu a {
		padding: 6px 8px;
		font-size: 1.3rem;
	}
	
	.mbc-wg__menu-label {
		font-size: 1.3rem;
	}
	
	.mbc-wg__menu-code {
		font-size: 1rem;
	}
}

/* ==========================================================================
   Dark Mode Support (disabled - always light theme)
   ========================================================================== */

/* Dark mode intentionally disabled to match site design */

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
	.mbc-wg {
		display: none !important;
	}
}

