/**
 * Styles frontend pour ViralQuiz
 */

.vq-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.vq-quiz-header {
	margin-bottom: 30px;
	text-align: center;
}

.vq-quiz-title {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 15px;
	color: #333;
}

.vq-quiz-description {
	font-size: 16px;
	line-height: 1.6;
	color: #666;
	margin-top: 15px;
}

.vq-progress-container {
	margin-bottom: 30px;
}

.vq-progress-bar {
	width: 100%;
	height: 8px;
	background-color: #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 10px;
}

.vq-progress-fill {
	height: 100%;
	background-color: #0073aa;
	transition: width 0.3s ease;
	border-radius: 4px;
}

.vq-progress-text {
	display: block;
	text-align: center;
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

.vq-questions-wrapper {
	position: relative;
	min-height: 300px;
}

.vq-question-wrapper {
	display: none;
	padding: 25px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.vq-question-wrapper.vq-active {
	display: block;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.vq-question-title {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 25px;
	color: #333;
	line-height: 1.4;
}

.vq-answers-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vq-answer-option {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	background: #fff;
}

.vq-answer-option:hover {
	border-color: #0073aa;
	background: #f0f7fc;
}

.vq-answer-option input[type="radio"] {
	margin-right: 12px;
	width: 20px;
	height: 20px;
	cursor: pointer;
	flex-shrink: 0;
}

.vq-answer-option input[type="radio"]:checked + .vq-answer-text {
	font-weight: 600;
	color: #0073aa;
}

.vq-answer-option:has(input[type="radio"]:checked) {
	border-color: #0073aa;
	background: #f0f7fc;
}

.vq-answer-text {
	flex: 1;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
	cursor: pointer;
}

.vq-navigation {
	margin-top: 30px;
	text-align: center;
}

.vq-btn {
	padding: 12px 30px;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.vq-btn-next {
	background-color: #0073aa;
	color: #fff;
}

.vq-btn-next:hover:not(:disabled) {
	background-color: #005a87;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.vq-btn-next:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}

.vq-result-wrapper {
	margin-top: 30px;
	padding: 30px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	text-align: center;
}

.vq-result-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 20px;
	color: #333;
}

.vq-result-text {
	font-size: 18px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 25px;
}

.vq-result-text p {
	margin-bottom: 10px;
}

.vq-score {
	font-size: 20px;
	font-weight: 600;
	color: #0073aa;
	margin-top: 15px;
}

/* Styles pour les résultats de maison Poudlard */
.vq-house-result {
	text-align: center;
	padding: 20px;
}

.vq-house-title {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 20px;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.vq-house-description {
	font-size: 16px;
	line-height: 1.8;
	color: #555;
	margin-bottom: 20px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.vq-house-score {
	font-size: 18px;
	color: #0073aa;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 2px solid #e0e0e0;
}

.vq-restart-quiz {
	background-color: #666;
	color: #fff;
	padding: 12px 30px;
	font-size: 16px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.vq-restart-quiz:hover {
	background-color: #555;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
	.vq-container {
		padding: 15px;
	}
	
	.vq-quiz-title {
		font-size: 24px;
	}
	
	.vq-question-title {
		font-size: 20px;
	}
	
	.vq-answer-option {
		padding: 12px 15px;
	}
	
	.vq-answer-text {
		font-size: 15px;
	}
}

