/**
 * WP Floating Background Music — Player Stylesheet v1.1
 *
 * Base styles only. Dynamic values (colours, sizing, position, z-index)
 * are injected via wp_add_inline_style() which always loads AFTER this file,
 * so dynamic rules naturally win without requiring !important.
 *
 * @package WP_Floating_Background_Music
 */

/* ── Reset ────────────────────────────────────────────────────────────────── */
#wp-fbm-player,
#wp-fbm-player *,
#wp-fbm-player *::before,
#wp-fbm-player *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
#wp-fbm-player {
	position: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.35);
	background-color: #1a1a2e;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#wp-fbm-player:hover {
	transform: translateY(-2px);
}

/* ── Toggle button ────────────────────────────────────────────────────────── */
.wp-fbm-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	border-radius: inherit;
	color: inherit;
	outline-offset: 3px;
	-webkit-tap-highlight-color: transparent;
	transition: opacity 0.15s ease, color 0.2s ease;
}

.wp-fbm-toggle:hover { opacity: 0.85; }

.wp-fbm-toggle:focus-visible {
	outline: 3px solid currentColor;
}

/* ── SVG icons ────────────────────────────────────────────────────────────── */
.wp-fbm-icon {
	width: 22px;
	height: 22px;
	fill: currentColor;
	flex-shrink: 0;
	display: block;
}

/* ── Custom image icons (SVG/PNG uploaded by admin) ──────────────────────── */
.wp-fbm-custom-icon {
	width: 22px;
	height: 22px;
	object-fit: contain;
	flex-shrink: 0;
	display: block;
}

/* ── Text label ───────────────────────────────────────────────────────────── */
.wp-fbm-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #ffffff;
	user-select: none;
	white-space: nowrap;
}

/* ── Playing state — pulse glow ───────────────────────────────────────────── */
#wp-fbm-player.is-playing {
	animation: wp-fbm-pulse 3s ease-in-out infinite;
}

@keyframes wp-fbm-pulse {
	0%,100% { box-shadow: 0 4px 20px rgba(0,0,0,0.35); }
	50%      { box-shadow: 0 6px 32px rgba(0,0,0,0.55); }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	#wp-fbm-player,
	#wp-fbm-player.is-playing,
	.wp-fbm-toggle,
	.wp-fbm-icon,
	.wp-fbm-custom-icon {
		animation: none !important;
		transition: none !important;
	}
}
