/**
 * PressGo Live Sync — bottom-right toggle pill.
 *
 * Small, unobtrusive, fits Elementor's dark editor. Green dot = on,
 * gray dot = off. Brief flash when a remote change syncs in.
 */

.pressgo-live-pill {
	position: fixed;
	bottom: 16px;
	right: 16px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	background: rgba(28, 30, 36, 0.92);
	color: #c9ccd5;
	font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	opacity: 0.85;
}

.pressgo-live-pill:hover {
	opacity: 1;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}

.pressgo-live-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #555a66;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.pressgo-live-on .pressgo-live-dot {
	background: #2bd66a;
	box-shadow: 0 0 0 0 rgba(43, 214, 106, 0.6);
}

.pressgo-live-off {
	opacity: 0.6;
}

.pressgo-live-off .pressgo-live-label {
	color: #8a8f99;
}

/* Flash animation when a remote change just synced in. */
.pressgo-live-flash .pressgo-live-dot {
	animation: pressgo-live-pulse 0.55s ease-out;
}

@keyframes pressgo-live-pulse {
	0%   { box-shadow: 0 0 0 0   rgba(43, 214, 106, 0.55); }
	70%  { box-shadow: 0 0 0 10px rgba(43, 214, 106, 0);   }
	100% { box-shadow: 0 0 0 0   rgba(43, 214, 106, 0);   }
}
