/* ── VexMobi Language Switcher v5 ── */

#vls-widget {
	position: fixed;
	bottom: 24px;
	right: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	z-index: 9999;
	overflow: visible;
}

/* ── Linha principal (menu + botão) ── */
.vls-main-row {
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
	overflow: visible;
}

/* ── Botão globo ── */
#vls-toggle {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: none;
	background: #1a1a1a;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 18px rgba(0,0,0,.38);
	transition: transform .2s ease, box-shadow .2s ease;
	padding: 0;
	flex-shrink: 0;
	outline-offset: 3px;
	position: relative;
	z-index: 1;
}
#vls-toggle:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 24px rgba(0,0,0,.50);
}
/* Brilhinho no hover */
#vls-toggle::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.22) 0%, transparent 65%);
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}
#vls-toggle:hover::after { opacity: 1; }
#vls-toggle:focus-visible { outline: 2px solid #c9a84c; }

/* Menu de idiomas - Modo lateral */
#vls-widget[data-open-dir="side"] #vls-menu {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
	white-space: nowrap;
}
#vls-widget[data-open-dir="side"][data-pos-h="left"] #vls-menu {
	left: calc(100% + 12px);
	right: auto;
	transform: translateY(-50%) translateX(-6px);
}
#vls-widget[data-open-dir="side"][data-pos-h="right"] #vls-menu,
#vls-widget[data-open-dir="side"][data-pos-h="center"] #vls-menu {
	right: calc(100% + 12px);
	left: auto;
	transform: translateY(-50%) translateX(6px);
}
#vls-widget[data-open-dir="side"].vls-open #vls-menu {
	opacity: 1;
	pointer-events: all;
	transform: translateY(-50%) translateX(0);
}

/* Menu de idiomas - Modo para cima */
#vls-widget[data-open-dir="up"] #vls-menu {
	position: relative;
	order: -1;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
}
#vls-widget[data-open-dir="up"].vls-open #vls-menu {
	opacity: 1;
	pointer-events: all;
	transform: translateY(0);
}

/* Layout interno do menu */
#vls-menu {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #141414;
	border-radius: 10px;
	padding: 6px;
	overflow: visible;
}

/* ── Opção de idioma ── */
.vls-option {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(255,255,255,.06);
	color: #fff;
	padding: 8px 14px;
	border-radius: 7px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .5px;
	border-left: 3px solid transparent;
	white-space: nowrap;
	transition: background .15s ease, transform .15s ease;
	position: relative;
	overflow: hidden;
	cursor: pointer;
}
/* Brilhinho hover nas opções */
.vls-option::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(255,255,255,.10) 0%, transparent 60%);
	opacity: 0;
	transition: opacity .2s ease;
}
.vls-option:hover::before { opacity: 1; }
.vls-option:hover {
	background: rgba(255,255,255,.12);
	color: #fff;
	text-decoration: none;
}
.vls-option.vls-active {
	border-left: 3px solid #c9a84c;
	padding-left: 11px;
}
.vls-option svg {
	flex-shrink: 0;
	border-radius: 2px;
	box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.vls-slug {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* ── Redes sociais ── */
.vls-social-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.vls-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: transform .2s ease, filter .2s ease, color .2s ease;
	flex-shrink: 0;
	outline-offset: 3px;
	border: none;
	/* tamanho e fundo via CSS dinâmico */
	position: relative;
	cursor: pointer;
}
/* Brilhinho hover nos ícones sociais */
.vls-social-btn::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.25) 0%, transparent 60%);
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}
.vls-social-btn:hover { transform: scale(1.14); filter: brightness(1.15); color: #fff; text-decoration: none; }
.vls-social-btn:hover::after { opacity: 1; }
.vls-social-btn:focus-visible { outline: 2px solid #c9a84c; }
.vls-social-btn svg { flex-shrink: 0; }

/* Hover colorido por rede (só no estilo bola) */
.vls-social-instagram:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888) !important; }
.vls-social-facebook:hover  { background: #1877f2 !important; }
.vls-social-whatsapp:hover  { background: #25d366 !important; }
.vls-social-youtube:hover   { background: #ff0000 !important; }
.vls-social-linkedin:hover  { background: #0a66c2 !important; }
.vls-social-tiktok:hover    { background: #000 !important; }
.vls-social-twitter:hover   { background: #000 !important; }

/* Responsivo - Mobile */
@media (max-width: 768px) {
	#vls-widget { 
		bottom: 16px; 
		right: 16px;
		overflow: visible;
	}
	#vls-toggle { 
		width: 46px; 
		height: 46px; 
	}
	
	/* No mobile, forçar menu para modo empilhado se estiver lateral */
	#vls-widget[data-open-dir="side"] #vls-menu {
		position: relative;
		order: -1;
		transform: translateY(8px);
		white-space: normal;
	}
	#vls-widget[data-open-dir="side"][data-pos-h="left"] #vls-menu,
	#vls-widget[data-open-dir="side"][data-pos-h="right"] #vls-menu,
	#vls-widget[data-open-dir="side"][data-pos-h="center"] #vls-menu {
		left: auto;
		right: auto;
		transform: translateY(8px);
	}
	#vls-widget[data-open-dir="side"].vls-open #vls-menu {
		transform: translateY(0);
	}
}
