/* Modal de paramètres - Récompute après 3 reloads */

.reload-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.reload-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.reload-modal-box {
	background: var(--card-bg);
	border: 2px solid var(--primary-20);
	border-radius: 16px;
	width: 90%;
	max-width: 450px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-primary);
	transform: scale(0.85);
	transition: transform 0.3s ease;
	backdrop-filter: blur(10px);
}

.reload-modal-overlay.active .reload-modal-box {
	transform: scale(1);
}

.reload-modal-header {
	padding: 20px 25px;
	border-bottom: 1px solid var(--primary-20);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.reload-modal-header h2 {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--text-light);
}

.reload-modal-close {
	background: none;
	border: none;
	color: var(--text-light);
	font-size: 1.8rem;
	cursor: pointer;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.reload-modal-close:hover {
	color: var(--primary);
	transform: rotate(90deg);
}

.reload-modal-content {
	padding: 25px;
}

.reload-modal-section {
	margin-bottom: 25px;
}

.reload-modal-section:last-child {
	margin-bottom: 0;
}

.reload-modal-section h3 {
	margin: 0 0 12px 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-light);
}

.reload-modal-options {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.reload-modal-btn {
	flex: 1;
	min-width: 140px;
	padding: 15px;
	background: var(--primary-05);
	border: 2px solid var(--primary-20);
	border-radius: 10px;
	color: var(--text-light);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: all 0.2s ease;
}

/* Style spécifique pour les boutons de thème */
.reload-theme-btn {
	gap: 12px;
	padding: 12px;
}

.reload-theme-btn .theme-color-single {
	margin-bottom: 4px;
}

.reload-modal-btn:hover {
	background: var(--primary-10);
	border-color: var(--primary-40);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px var(--primary-20);
}

.reload-modal-btn.active {
	background: var(--primary-20);
	border-color: var(--primary);
	box-shadow: 0 0 16px var(--primary-30);
}

.reload-modal-btn span:first-child {
	font-size: 2rem;
}

.theme-color {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 2px solid var(--text-light);
	display: block;
}

/* Couleur unique pour les thèmes (comme le modal) */
.theme-color-single {
	width: 100%;
	height: 40px;
	border-radius: 6px;
	border: 2px solid rgba(255, 255, 255, 0.2);
	display: block;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.reload-modal-footer {
	padding: 20px 25px;
	border-top: 1px solid var(--primary-20);
}

.reload-modal-confirm {
	width: 100%;
	padding: 14px;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	border: none;
	border-radius: 10px;
	color: var(--dark-bg);
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 12px var(--primary-30);
}

.reload-modal-confirm:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px var(--primary-40);
}

.reload-modal-confirm:active {
	transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
	.reload-modal-box {
		width: 95%;
		max-width: none;
	}

	.reload-modal-btn {
		min-width: calc(50% - 6px);
	}

	.reload-modal-options {
		justify-content: space-between;
	}
}
