/* ============================================================
   DE/EN Language Switcher — Frontend Styles
   All visual variants driven by CSS classes + --det-color var
   ============================================================ */

/* ---- Base wrapper ---- */
.det-switcher {
	--det-color: #0073aa;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: inherit;
	line-height: 1;
}

.det-layout-vertical {
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
}

.det-layout-vertical .det-divider {
	display: none;
}

.det-divider {
	color: #bbb;
	font-size: 12px;
	user-select: none;
	padding: 0 2px;
}

/* ---- Base button ---- */
.det-lang-btn {
	display: inline-block;
	text-decoration: none;
	cursor: pointer;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-align: center;
	transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
	white-space: nowrap;
}

.det-lang-btn:hover,
.det-lang-btn:focus {
	text-decoration: none;
	outline: none;
}

/* ---- Sizes ---- */
.det-size-small  .det-lang-btn { font-size: 11px; padding: 3px 8px;  border-radius: 3px; }
.det-size-medium .det-lang-btn { font-size: 13px; padding: 5px 12px; border-radius: 4px; }
.det-size-large  .det-lang-btn { font-size: 16px; padding: 8px 18px; border-radius: 5px; }

/* ---- Style: filled (default) ---- */
.det-style-filled .det-lang-btn {
	background: #f0f0f0;
	border: 1px solid #ddd;
	color: #444;
}
.det-style-filled .det-lang-btn:hover {
	background: #e0e0e0;
	border-color: #bbb;
	color: #222;
}
.det-style-filled .det-lang-btn.det-active {
	background: var(--det-color);
	border-color: var(--det-color);
	color: #fff;
}
.det-style-filled .det-lang-btn.det-active:hover {
	opacity: 0.88;
}

/* ---- Style: outline ---- */
.det-style-outline .det-lang-btn {
	background: transparent;
	border: 2px solid #ccc;
	color: #555;
}
.det-style-outline .det-lang-btn:hover {
	border-color: var(--det-color);
	color: var(--det-color);
}
.det-style-outline .det-lang-btn.det-active {
	border-color: var(--det-color);
	color: var(--det-color);
	background: transparent;
}

/* ---- Style: text-only ---- */
.det-style-text .det-lang-btn {
	background: none;
	border: none;
	color: #888;
	padding-left: 4px;
	padding-right: 4px;
}
.det-style-text .det-lang-btn:hover {
	color: var(--det-color);
}
.det-style-text .det-lang-btn.det-active {
	color: var(--det-color);
	font-weight: 700;
	text-decoration: underline;
}

/* ---- Style: pill ---- */
.det-size-small  .det-style-pill .det-lang-btn { border-radius: 20px; }
.det-size-medium .det-style-pill .det-lang-btn { border-radius: 24px; }
.det-size-large  .det-style-pill .det-lang-btn { border-radius: 30px; }

.det-style-pill .det-lang-btn {
	background: #f0f0f0;
	border: 1px solid #ddd;
	color: #444;
}
.det-style-pill .det-lang-btn:hover {
	background: #e4e4e4;
}
.det-style-pill .det-lang-btn.det-active {
	background: var(--det-color);
	border-color: var(--det-color);
	color: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ---- Fixed / floating position ---- */
.det-fixed {
	position: fixed !important;
	z-index: 99999;
	/* small drop shadow so it's visible on any background */
	filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.det-pos-tr { top: 18px;    right: 18px;  }
.det-pos-tl { top: 18px;    left:  18px;  }
.det-pos-br { bottom: 18px; right: 18px;  }
.det-pos-bl { bottom: 18px; left:  18px;  }

/* Fixed + vertical layout: stack nicely */
.det-fixed.det-layout-vertical {
	align-items: flex-start;
}

/* ---- Widget area container ---- */
.widget .det-switcher,
.sidebar .det-switcher {
	padding: 4px 0;
}
