/* Frontend Styles - Quiz Plugin - Minimalist Navy & White */

.quiz-container {
	max-width: 800px;
	margin: 40px auto 30px;
	background: #ffffff;
	border: 3px solid #1e3a8a;
	border-radius: 12px;
	padding: 40px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.quiz-header {
	margin-bottom: 25px;
}

.quiz-title {
	color: #1e3a8a;
	font-size: 32px !important;
	font-weight: 700;
	margin: 0 0 25px 0;
	text-align: center;
}

/* Progress Bar */
.quiz-progress {
	margin-bottom: 20px;
}

.progress-bar {
	width: 100%;
	height: 12px;
	background: #f3f4f6;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 10px;
}

.progress-fill {
	height: 100%;
	background: #1e3a8a;
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
	text-align: center;
	color: #1e3a8a;
	font-size: 16px;
	font-weight: 600;
}

/* Questions */
.quiz-question {
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-question.visible {
	opacity: 1;
	transform: translateY(0);
}

.question-text {
	color: #1e3a8a;
	font-size: 24px !important;
	font-weight: 600;
	margin: 0 0 20px 0;
	line-height: 1.4;
}

/* Answers */
.quiz-answers {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.quiz-answer {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 20px;
	background: #ffffff;
	border: 3px solid #1e3a8a;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-size: 18px;
	width: 100%;
	text-align: left;
}

.quiz-answer:hover:not(.disabled) {
	background: #f0f6ff;
	transform: translateX(5px);
}

.quiz-answer.disabled {
	cursor: not-allowed;
}

.answer-letter {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	background: #1e3a8a;
	color: #ffffff;
	border-radius: 50%;
	font-weight: 700;
	font-size: 18px;
}

.answer-text {
	flex: 1;
	color: #1e3a8a;
	font-weight: 500;
}

.answer-icon {
	min-width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
}

.quiz-answer.correct {
	background: #ffffff;
	border-color: #059669;
}

.quiz-answer.correct .answer-letter {
	background: #059669;
}

.quiz-answer.correct .answer-icon::before {
	content: '✓';
	color: #059669;
}

.quiz-answer.incorrect {
	background: #ffffff;
	border-color: #dc2626;
}

.quiz-answer.incorrect .answer-letter {
	background: #dc2626;
}

.quiz-answer.incorrect .answer-icon::before {
	content: '✗';
	color: #dc2626;
}

/* Navigation */
.quiz-navigation {
	margin-top: 30px;
	text-align: center;
}

.quiz-btn {
	padding: 16px 40px;
	background: #1e3a8a;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-btn:hover {
	background: #1e40af;
	transform: translateY(-2px);
}

.quiz-btn-next {
	animation: fadeInUp 0.5s ease;
}

.quiz-btn-login {
	animation: fadeInUp 0.5s ease;
	padding: 18px 50px;
	font-size: 16px;
	background: #059669;
}

.quiz-btn-login:hover {
	background: #047857;
}

/* Results */
.quiz-results {
	animation: fadeIn 0.5s ease;
}

.results-header h3 {
	color: #1e3a8a;
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	margin: 0 0 40px 0;
}

.results-score {
	text-align: center;
	margin-bottom: 50px;
}

.score-circle {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 200px;
	height: 200px;
	border: 8px solid #1e3a8a;
	border-radius: 50%;
	position: relative;
	background: #ffffff;
}

.score-circle::before {
	content: '';
	position: absolute;
	top: -8px;
	left: -8px;
	right: -8px;
	bottom: -8px;
	border-radius: 50%;
	border: 8px solid transparent;
	border-top-color: #1e3a8a;
	transform: rotate(0deg);
	transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-circle.animated::before {
	transform: rotate(calc(3.6deg * var(--percentage)));
}

.score-number {
	font-size: 48px;
	font-weight: 700;
	color: #1e3a8a;
	line-height: 1;
	margin-bottom: 10px;
}

.score-percentage {
	font-size: 24px;
	font-weight: 600;
	color: #1e3a8a;
}

/* Results Details */
.results-details h4 {
	color: #1e3a8a;
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 20px 0;
}

.results-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 40px;
}

.result-item {
	display: flex;
	gap: 15px;
	padding: 20px;
	background: #ffffff;
	border: 3px solid #1e3a8a;
	border-radius: 8px;
}

.result-item.correct {
	border-color: #059669;
}

.result-item.incorrect {
	border-color: #dc2626;
}

.result-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 24px;
	font-weight: 700;
}

.result-item.correct .result-icon {
	background: #059669;
	color: #ffffff;
}

.result-item.incorrect .result-icon {
	background: #dc2626;
	color: #ffffff;
}

.result-content {
	flex: 1;
}

.result-question {
	color: #1e3a8a;
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 10px;
}

.result-answers {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.user-answer,
.correct-answer {
	font-size: 16px;
	padding: 8px 12px;
	border-radius: 4px;
}

.user-answer {
	background: #fee2e2;
	color: #991b1b;
}

.correct-answer {
	background: #d1fae5;
	color: #065f46;
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.quiz-container {
		padding: 25px;
		margin: 20px;
	}

	.quiz-title {
		font-size: 24px;
	}

	.question-text {
		font-size: 20px;
	}

	.quiz-answer {
		padding: 15px;
		font-size: 16px;
	}

	.answer-letter {
		min-width: 35px;
		height: 35px;
		font-size: 16px;
	}

	.score-circle {
		width: 160px;
		height: 160px;
	}

	.score-number {
		font-size: 36px;
	}

	.score-percentage {
		font-size: 20px;
	}

	.results-header h3 {
		font-size: 24px;
	}
}