/**
 * IndianAgri Quiz Engine Results screen styles.
 */

.iae-result-screen {
	animation: iae-fade-in 0.4s ease;
}

@keyframes iae-fade-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.iae-result-hero {
	background: linear-gradient(135deg, #1e293b, #0f172a);
	color: #fff;
	border-radius: 12px;
	padding: 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
}

.iae-result-kicker {
	font-size: 10px;
	font-weight: 700;
	color: #38bdf8;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.iae-result-hero h2 {
	margin: 5px 0;
	color: #fff !important;
}

.iae-result-hero p {
	font-size: 12px;
	color: #94a3b8;
	margin: 0;
}

.iae-score-ring {
	background: rgba(255, 255, 255, 0.05);
	border: 3px solid #38bdf8;
	border-radius: 50%;
	width: 100px;
	height: 100px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.iae-score-ring strong {
	font-size: 24px;
	color: #fff;
}

.iae-score-ring span {
	font-size: 9px;
	text-transform: uppercase;
	color: #94a3b8;
	letter-spacing: 0.5px;
}

/* Result Statistics cards */
.iae-result-summary-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 20px;
	margin-bottom: 25px;
}

.iae-result-summary-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 15px 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.iae-result-summary-card.primary {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.iae-result-summary-card.primary strong {
	color: #1e40af;
}

.result-label {
	font-size: 11px;
	color: #64748b;
	text-transform: uppercase;
	display: block;
	margin-bottom: 5px;
}

.iae-result-summary-card strong {
	font-size: 26px;
	font-weight: 700;
	display: block;
	color: #0f172a;
}

.iae-result-summary-card strong small {
	font-size: 14px;
	color: #64748b;
	font-weight: 500;
}

.result-sub {
	font-size: 11px;
	color: #64748b;
	display: block;
	margin-top: 5px;
}

.iae-result-details {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin-bottom: 30px;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	padding: 20px 0;
}

.iae-result-details > div {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #475569;
	background: #f8fafc;
	padding: 10px 15px;
	border-radius: 6px;
	border: 1px solid #f1f5f9;
}

.iae-result-details strong {
	color: #0f172a;
}

.iae-status-text.passed { color: #16a34a; }
.iae-status-text.failed { color: #ef4444; }

.iae-result-actions {
	display: flex;
	gap: 15px;
	justify-content: center;
}

/* Detailed review card status borders */
.iae-review-card {
	border-left: 4px solid #cbd5e1 !important;
	transition: all 0.2s ease;
}

.iae-review-card.correct {
	border-left-color: #16a34a !important;
	background: #fbfdfb;
}

.iae-review-card.wrong {
	border-left-color: #ef4444 !important;
	background: #fffbfa;
}

.iae-review-card.skipped {
	border-left-color: #64748b !important;
	background: #fafafa;
}

.iae-review-option {
	transition: background 0.15s ease;
}

.iae-review-option.correct-option {
	background: #ecfdf5;
	border-color: #a7f3d0 !important;
	color: #065f46;
	font-weight: 500;
}

.iae-review-option.wrong-option {
	background: #fef2f2;
	border-color: #fca5a5 !important;
	color: #991b1b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.iae-result-summary-grid {
		grid-template-columns: 1fr !important;
	}
	
	.iae-result-details {
		grid-template-columns: 1fr !important;
	}
	
	.iae-result-hero {
		flex-direction: column;
		text-align: center;
		gap: 20px;
	}
}
