/**
 * Social Media Links - Brmgina (front-end).
 */

.brmgina-sml-wrap {
	width: 120px;
	height: 90px;
	box-sizing: border-box;
	position: fixed;
	left: 40px;
	bottom: 20px;
	z-index: 1000;
	transform: translateX(-50%) translateY(50%);
	transition: all 0.3s ease-in-out;
}
.brmgina-sml-wrap.active {
	transform: translateX(0);
	left: 60px;
	bottom: 50px;
}
.brmgina-sml-wrap *,
.brmgina-sml-wrap *::before,
.brmgina-sml-wrap *::after {
	box-sizing: inherit;
}

.brmgina-sml-menu {
	--brmgina-sml-count: 8;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-inline: auto;
}

.brmgina-sml-toggle {
	position: relative;
	height: 50px;
	width: 50px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	font-size: 25px;
	cursor: pointer;
	transition: transform 1.25s;
	z-index: 5;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.brmgina-sml-menu.brmgina-sml-active .brmgina-sml-toggle {
	transform: rotate(360deg);
	box-shadow:
		0 6px 8px rgba(0, 0, 0, 0.15),
		0 0 0 2px #333,
		0 0 0 8px #fff;
}

.brmgina-sml-list {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.brmgina-sml-item {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 40px;
	height: 40px;
	margin: -25px 0 0 -25px;
	transform: rotate(calc(360deg / var(--brmgina-sml-count) * var(--i))) translateX(0);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: transform 0.45s ease, opacity 0.45s ease, visibility 0.45s ease;
	transition-delay: calc(0.05s * var(--i));
	z-index: 1;
}

.brmgina-sml-menu.brmgina-sml-active .brmgina-sml-item {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: rotate(calc(360deg / var(--brmgina-sml-count) * var(--i))) translateX(var(--brmgina-sml-radius, 90px));
}

.brmgina-sml-item a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #fff;
	border-radius: 50%;
	color: var(--clr);
	font-size: 18px;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transform: rotate(calc(-360deg / var(--brmgina-sml-count) * var(--i)));
	transition: transform 0.2s, box-shadow 0.2s;
}

.brmgina-sml-item a:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
	transform: rotate(calc(-360deg / var(--brmgina-sml-count) * var(--i))) scale(1.08);
}
