/* Auto Translate Site – jezični switcher */

.ats-switcher {
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
}

/* ---------- Dropdown (nativni <details>) ---------- */
.ats-switcher-dropdown {
	position: relative;
	display: inline-block;
}

.ats-switcher-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: #ffffff;
	color: #1e1e1e;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	list-style: none;
	user-select: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Ukloni nativni marker <summary> elementa */
.ats-switcher-toggle::-webkit-details-marker {
	display: none;
}

.ats-switcher-toggle::marker {
	content: none;
}

.ats-switcher-toggle:hover,
.ats-switcher-dropdown[open] > .ats-switcher-toggle {
	border-color: #999;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.ats-switcher-toggle .ats-caret {
	font-size: 10px;
	transition: transform 0.15s ease;
}

.ats-switcher-dropdown[open] > .ats-switcher-toggle .ats-caret {
	transform: rotate(180deg);
}

/* Dropdown se po defaultu otvara PREMA DOLJE (prirodno za header/topbar).
   Samo plutajuci switcher u donjem kutu ekrana otvara se prema gore. */
.ats-switcher-menu {
	position: absolute;
	top: calc(100% + 6px);
	bottom: auto;
	left: 0;
	right: 0;
	margin: 0;
	padding: 4px;
	list-style: none;
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	display: none;
	z-index: 99999;
	min-width: 150px;
}

.ats-switcher-dropdown[open] > .ats-switcher-menu {
	display: block;
}

/* Plutajuci switcher u donjem kutu ekrana – otvori prema GORE */
.ats-floating.ats-pos-bottom-right .ats-switcher-menu,
.ats-floating.ats-pos-bottom-left .ats-switcher-menu {
	top: auto;
	bottom: calc(100% + 6px);
}

.ats-switcher-menu li {
	margin: 0;
}

.ats-switcher-menu li a {
	display: block;
	padding: 8px 12px;
	color: #1e1e1e;
	text-decoration: none;
	border-radius: 4px;
	white-space: nowrap;
}

.ats-switcher-menu li a:hover {
	background: #f0f0f0;
}

.ats-switcher-menu li.ats-current a {
	font-weight: 600;
	background: #eef4ff;
}

/* ---------- Lista ---------- */
.ats-switcher-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ats-switcher-list li {
	margin: 0;
}

.ats-switcher-list li a {
	text-decoration: none;
}

.ats-switcher-list li.ats-current a {
	font-weight: 700;
	text-decoration: underline;
}

/* ---------- U izborniku ---------- */
.ats-menu-item {
	display: flex;
	align-items: center;
}

/* ---------- Uz Navigation blok (blok teme) ---------- */
.ats-nav-block-switcher {
	display: flex;
	align-items: center;
	padding: 4px 8px;
}

.ats-nav-block-switcher .ats-switcher-toggle {
	background: transparent;
	border-color: transparent;
	padding: 4px 8px;
}

.ats-nav-block-switcher .ats-switcher-toggle:hover {
	border-color: #d0d0d0;
}

/* ---------- Plutajući switcher ---------- */
.ats-floating {
	position: fixed;
	z-index: 99998;
}

.ats-floating.ats-pos-bottom-right {
	right: 20px;
	bottom: 20px;
}

.ats-floating.ats-pos-bottom-left {
	left: 20px;
	bottom: 20px;
}

.ats-floating.ats-pos-top-right {
	right: 20px;
	top: 20px;
}

.ats-floating.ats-pos-top-left {
	left: 20px;
	top: 20px;
}

.ats-floating .ats-switcher-menu {
	left: auto;
	right: 0;
}

.ats-floating.ats-pos-bottom-left .ats-switcher-menu,
.ats-floating.ats-pos-top-left .ats-switcher-menu {
	left: 0;
	right: auto;
}

@media (max-width: 600px) {
	.ats-floating.ats-pos-bottom-right { right: 10px; bottom: 10px; }
	.ats-floating.ats-pos-bottom-left { left: 10px; bottom: 10px; }
	.ats-floating.ats-pos-top-right { right: 10px; top: 10px; }
	.ats-floating.ats-pos-top-left { left: 10px; top: 10px; }
}
