/*
==================================================
MYEXAMPATH
STUDENT SUBJECTIVE RESULTS
==================================================

Student-side Subjective Results page.

Handles:

- Page header
- Back to My Results
- Result summary
- Subjective result cards
- View Evaluation actions

Individual evaluated answer papers are styled
separately in student-subjective-evaluation.css.
==================================================
*/


/*
==================================================
MAIN PAGE
==================================================
*/

.em-student-subjective-results {
	width: 100%;
	max-width: 1200px;

	margin: 0 auto;
	padding: 24px 28px 40px;

	box-sizing: border-box;
}


/*
==================================================
PAGE HEADER
==================================================
*/

.em-subjective-results-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;

	margin-bottom: 22px;
	padding: 22px 24px;

	background: #ffffff;

	border: 1px solid #dce5ef;
	border-radius: 12px;

	box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}

.em-subjective-results-header > div:first-child {
	flex: 1;
	min-width: 0;
}

.em-subjective-results-header h2 {
	margin: 0 0 7px;

	color: #172033;

	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

.em-subjective-results-header p {
	max-width: 720px;

	margin: 0;

	color: #64748b;

	font-size: 14px;
	line-height: 1.6;
}


/*
==================================================
BACK TO MY RESULTS
==================================================
*/

.em-subjective-results-back {
	flex: 0 0 auto;
}

.em-subjective-results-back a {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;
	padding: 9px 15px;

	background: #f8fafc;
	color: #193451;

	border: 1px solid #cbd5e1;
	border-radius: 8px;

	text-decoration: none;

	font-size: 13px;
	font-weight: 700;
	line-height: 1;

	white-space: nowrap;

	transition:
		background 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease,
		transform 0.18s ease;
}

.em-subjective-results-back a:hover {
	background: #edf6ff;
	color: #075ea8;

	border-color: #0878ee;

	text-decoration: none;

	transform: translateY(-1px);
}


/*
==================================================
RESULT SUMMARY
==================================================
*/

.em-subjective-results-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));

	gap: 16px;

	margin-bottom: 24px;
}


/*
==================================================
SUMMARY CARD
==================================================
*/

.em-subjective-summary-card {
	position: relative;

	min-width: 0;
	min-height: 105px;

	padding: 18px 20px;

	background: #ffffff;

	border: 1px solid #dce5ef;
	border-radius: 12px;

	box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);

	box-sizing: border-box;

	overflow: hidden;
}


/*
--------------------------------------------------
BLUE ACCENT
--------------------------------------------------
*/

.em-subjective-summary-card::before {
	content: "";

	position: absolute;
	top: 0;
	left: 0;

	width: 4px;
	height: 100%;

	background: #0878ee;
}


/*
--------------------------------------------------
SUMMARY LABEL
--------------------------------------------------
*/

.em-subjective-summary-card span {
	display: block;

	margin-bottom: 10px;

	color: #64748b;

	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;

	text-transform: uppercase;
	letter-spacing: 0.35px;
}


/*
--------------------------------------------------
SUMMARY VALUE
--------------------------------------------------
*/

.em-subjective-summary-card strong {
	display: block;

	color: #172033;

	font-size: 25px;
	font-weight: 800;
	line-height: 1.1;
}

/*
==================================================
SUBJECTIVE RESULT LIST
==================================================
*/

.em-subjective-results-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));

	gap: 18px;

	width: 100%;
}


/*
==================================================
SUBJECTIVE RESULT CARD
==================================================
*/

.em-subjective-result-card {
	display: flex;
	flex-direction: column;

	min-width: 0;

	padding: 20px;

	background: #ffffff;

	border: 1px solid #dce5ef;
	border-radius: 12px;

	box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);

	box-sizing: border-box;

	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.em-subjective-result-card:hover {
	border-color: #c5d5e6;

	box-shadow: 0 7px 20px rgba(15, 23, 42, 0.08);

	transform: translateY(-2px);
}


/*
==================================================
RESULT CARD HEADER
==================================================
*/

.em-subjective-result-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;

	gap: 16px;

	margin-bottom: 18px;
	padding-bottom: 16px;

	border-bottom: 1px solid #e8edf3;
}

.em-subjective-result-card-header > div:first-child {
	flex: 1;
	min-width: 0;
}


/*
==================================================
EXAM NAME
==================================================
*/

.em-subjective-result-card h3 {
	margin: 0 0 8px;

	color: #172033;

	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;

	overflow-wrap: anywhere;
}


/*
==================================================
SUBJECTIVE BADGE
==================================================
*/

.em-subjective-result-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 27px;
	padding: 5px 9px;

	background: #edf6ff;
	color: #075ea8;

	border: 1px solid #c9e2fb;
	border-radius: 999px;

	font-size: 11px;
	font-weight: 700;
	line-height: 1;

	white-space: nowrap;
}


/*
==================================================
RESULT STATUS
==================================================
*/

.em-subjective-result-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 auto;

	min-height: 30px;
	padding: 5px 10px;

	background: #ecfdf3;
	color: #147a42;

	border: 1px solid #b9e8cb;
	border-radius: 999px;

	font-size: 11px;
	font-weight: 700;
	line-height: 1;

	white-space: nowrap;
}


/*
==================================================
RESULT DETAILS
==================================================
*/

.em-subjective-result-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));

	gap: 10px;

	margin-bottom: 18px;
}


/*
==================================================
RESULT DETAIL
==================================================
*/

.em-subjective-result-detail {
	display: flex;
	flex-direction: column;
	justify-content: center;

	min-width: 0;
	min-height: 70px;

	padding: 11px 12px;

	background: #f8fafc;

	border: 1px solid #e2e8f0;
	border-radius: 8px;

	box-sizing: border-box;
}

.em-subjective-result-detail span {
	display: block;

	margin-bottom: 6px;

	color: #64748b;

	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
}

.em-subjective-result-detail strong {
	display: block;

	color: #172033;

	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;

	overflow-wrap: anywhere;
}


/*
==================================================
RESULT ACTIONS
==================================================
*/

.em-subjective-result-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;

	margin-top: auto;
}


/*
==================================================
VIEW EVALUATION BUTTON
==================================================
*/

.em-view-subjective-evaluation {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;
	padding: 9px 16px;

	background: #0878ee;
	color: #ffffff;

	border: 1px solid #0878ee;
	border-radius: 8px;

	text-decoration: none;

	font-size: 13px;
	font-weight: 700;
	line-height: 1;

	cursor: pointer;

	box-shadow: 0 3px 8px rgba(8, 120, 238, 0.16);

	transition:
		background 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.em-view-subjective-evaluation:hover {
	background: #066bd7;
	color: #ffffff;

	border-color: #066bd7;

	text-decoration: none;

	box-shadow: 0 4px 10px rgba(8, 120, 238, 0.22);

	transform: translateY(-1px);
}


/*
==================================================
TABLET
==================================================
*/

@media (max-width: 900px) {

	.em-student-subjective-results {
		padding: 18px 18px 32px;
	}

	.em-subjective-results-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.em-subjective-results-list {
		grid-template-columns: 1fr;
	}
}


/*
==================================================
MOBILE
==================================================
*/

@media (max-width: 640px) {

	.em-student-subjective-results {
		padding: 12px 12px 28px;
	}

	.em-subjective-results-header {
		flex-direction: column;
		align-items: stretch;

		gap: 16px;

		padding: 16px;
	}

	.em-subjective-results-header h2 {
		font-size: 20px;
	}

	.em-subjective-results-header p {
		font-size: 13px;
	}

	.em-subjective-results-back {
		width: 100%;
	}

	.em-subjective-results-back a {
		width: 100%;

		box-sizing: border-box;
	}

	.em-subjective-results-summary {
		grid-template-columns: 1fr;

		gap: 12px;
	}

	.em-subjective-summary-card {
		min-height: 92px;

		padding: 16px 18px;
	}

.em-subjective-summary-card strong {
	font-size: 22px;
}


/*
--------------------------------------------------
RESULT CARD MOBILE
--------------------------------------------------
*/

.em-subjective-result-card {
	padding: 15px;
}

.em-subjective-result-card-header {
	gap: 12px;

	margin-bottom: 14px;
	padding-bottom: 14px;
}

.em-subjective-result-card h3 {
	font-size: 17px;
}

.em-subjective-result-details {
	grid-template-columns: 1fr;

	gap: 8px;

	margin-bottom: 14px;
}

.em-subjective-result-detail {
	min-height: 62px;

	padding: 10px 11px;
}

.em-subjective-result-actions {
	width: 100%;
}

.em-view-subjective-evaluation {
	width: 100%;

	box-sizing: border-box;
}

}