/* Text Manager Styles */

/* Pulse animation for selected text */
@keyframes pulse-glow {
	0%, 100% {
		box-shadow: 0 0 0 3px rgba(254, 174, 0, 0.8),
		            0 0 20px rgba(254, 174, 0, 0.6),
		            0 2px 12px rgba(0, 0, 0, 0.6);
	}
	50% {
		box-shadow: 0 0 0 3px rgba(254, 174, 0, 1),
		            0 0 30px rgba(254, 174, 0, 0.9),
		            0 2px 16px rgba(0, 0, 0, 0.8);
	}
}

.text-marker-overlay {
	position: absolute;
	transition: opacity 0.2s, transform 0.2s;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.text-marker-overlay:hover {
	opacity: 0.9;
	transform: scale(1.02);
}

.text-marker-overlay.selected {
	border: 3px solid rgba(254, 174, 0, 1) !important;
	box-shadow: 0 0 0 3px rgba(254, 174, 0, 0.8),
	            0 0 20px rgba(254, 174, 0, 0.6),
	            0 2px 12px rgba(0, 0, 0, 0.6) !important;
	transform: scale(1.1);
	z-index: 10000 !important;
	background: linear-gradient(135deg, 
		transparent 0%, 
		rgba(254, 174, 0, 0.1) 50%, 
		transparent 100%) !important;
	animation: pulse-glow 2s ease-in-out infinite;
}

.text-marker-overlay.dragging {
	cursor: grabbing !important;
	opacity: 0.7;
}

/* Hide text markers when not in relevant category */
body[data-map-filter="illegale"] .text-marker-overlay[data-illegale="false"] {
	display: none;
}

body[data-map-filter="generale"] .text-marker-overlay[data-generale="false"] {
	display: none;
}

body[data-map-filter="evenementielle"] .text-marker-overlay[data-evenementielle="false"] {
	display: none;
}
