/**
 * Auto Refresh Timer Styles
 * Bottom-right countdown bar
 */

.auto-refresh-timer {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	padding: 12px 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 200px;
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.auto-refresh-timer:hover {
	background: rgba(0, 0, 0, 0.95);
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
	transform: translateY(-2px);
}

.auto-refresh-timer.refreshing {
	animation: pulse 0.5s ease-in-out;
}

.auto-refresh-timer.paused {
	opacity: 0.6;
}

.auto-refresh-timer.paused .refresh-timer-icon {
	animation: none;
}

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

.refresh-timer-content {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.refresh-timer-icon {
	font-size: 24px;
	animation: rotate 2s linear infinite;
}

@keyframes rotate {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.refresh-timer-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.refresh-label {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.6);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 500;
}

.refresh-countdown {
	font-size: 20px;
	font-weight: 700;
	color: #4facfe;
	font-family: 'Courier New', monospace;
	text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

.refresh-progress-container {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 0 0 12px 12px;
	overflow: hidden;
}

.refresh-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #4facfe, #00f2fe);
	transition: width 1s linear, background 0.3s ease;
	box-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

.refresh-pause-btn {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 14px;
	color: white;
	transition: all 0.2s ease;
	padding: 0;
}

.refresh-pause-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.1);
}

.refresh-pause-btn:active {
	transform: scale(0.95);
}

/* Mobile responsive */
@media (max-width: 640px) {
	.auto-refresh-timer {
		bottom: 10px;
		right: 10px;
		padding: 10px 12px;
		min-width: 160px;
		gap: 8px;
	}
	
	.refresh-timer-icon {
		font-size: 20px;
	}
	
	.refresh-label {
		font-size: 10px;
	}
	
	.refresh-countdown {
		font-size: 18px;
	}
	
	.refresh-pause-btn {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
}

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

/* Animation for countdown warning */
@keyframes countdown-warning {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
}

.refresh-countdown.warning {
	animation: countdown-warning 0.5s ease-in-out;
	color: #ff6b6b;
}
