/**
 * Social Media Bar – frontend styles.
 *
 * All dynamic values (colours, sizes, blur, etc.) are injected as an inline
 * <style> block by class-smb-manager.php, so this file only contains the
 * structural / base rules that never change.
 */

/* ── Base ── */
.ffcw-smb {
	position: fixed;
	top: 50%;                    /* overridden by inline style */
	transform: translateY(-50%);
	z-index: 9990;
	display: flex;
	flex-direction: column;
	align-items: center;
	/* padding, gap, background, border, etc. set via inline style */
	transition: opacity 0.3s ease, transform 0.3s ease;
	box-sizing: border-box;
}

/* Positions */
.ffcw-smb--right {
	right: 24px;  /* overridden by inline style */
	left: auto;
}
.ffcw-smb--left {
	left: 24px;   /* overridden by inline style */
	right: auto;
}

/* ── Icon links ── */
.ffcw-smb__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	/* width, height, color, transition set via inline style */
	text-decoration: none;
	border-radius: 50%;          /* nice circular hover bg */
	outline-offset: 2px;
}

.ffcw-smb__icon:focus-visible {
	outline: 2px solid currentColor;
}

.ffcw-smb__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.ffcw-smb__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ── Scroll-triggered hide (applied by JS) ── */
.ffcw-smb.is-hidden {
	opacity: 0;
	pointer-events: none;
}

/* ── Responsive – hide on breakpoints not selected ──
   Breakpoint-specific hide rules are injected inline from PHP,
   so nothing additional is needed here for that purpose.       ── */

/* ── Tablet / mobile padding adjustments (progressive) ── */
@media (max-width: 1024px) {
	.ffcw-smb--right { right: 16px; }
	.ffcw-smb--left  { left: 16px; }
}

@media (max-width: 767px) {
	.ffcw-smb--right { right: 12px; }
	.ffcw-smb--left  { left: 12px; }
}
