/**
 * Voice Announcer Styles
 * Control button for text-to-speech
 */

.voice-control-btn {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(10px);
	border: 2px solid rgba(255, 255, 255, 0.1);
	color: white;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	z-index: 9999;
}

.voice-control-btn:hover {
	background: rgba(0, 0, 0, 0.95);
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
	border-color: rgba(255, 255, 255, 0.2);
}

.voice-control-btn:active {
	transform: translateY(0) scale(0.95);
}

.voice-control-btn.active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-color: rgba(255, 255, 255, 0.3);
	animation: pulse-voice 2s ease-in-out infinite;
}

@keyframes pulse-voice {
	0%, 100% {
		box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
	}
	50% {
		box-shadow: 0 4px 30px rgba(102, 126, 234, 0.8);
	}
}

/* Speaking animation */
.voice-control-btn.speaking {
	animation: speaking-pulse 0.5s ease-in-out infinite;
}

@keyframes speaking-pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
}

/* Mobile responsive */
@media (max-width: 640px) {
	.voice-control-btn {
		top: 10px;
		width: 44px;
		height: 44px;
		font-size: 20px;
	}
}

/* Tooltip */
.voice-control-btn::before {
	content: attr(title);
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 8px;
	padding: 6px 12px;
	background: rgba(0, 0, 0, 0.9);
	color: white;
	font-size: 12px;
	border-radius: 6px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.voice-control-btn:hover::before {
	opacity: 1;
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
	.voice-control-btn {
		background: rgba(20, 20, 20, 0.95);
		border-color: rgba(255, 255, 255, 0.15);
	}
}
