/**
 * Skill Certify Pro - Page-Specific CSS
 *
 * Dashboard, Certificate, Payment, Exam, Results
 *
 * @package SkillCertifyPro
 *
 * NOTE: Question pages CSS migrated to theme
 */

/* ========================================
   DASHBOARD PAGES (MIGRATED TO THEME)
   ======================================== */

/* Dashboard CSS migrated to theme - removed from plugin */

/* Verification Page (MIGRATED TO THEME) */
/* Verification CSS migrated to theme - removed from plugin */



.cancel-notice {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: rgba(245, 166, 35, 0.1);
	color: var(--gold-dark);
	padding: 16px 24px;
	border-radius: 12px;
	margin-bottom: 40px;
	border: 1.5px solid rgba(245, 166, 35, 0.3);
	font-size: 16px;
	font-weight: 500;
}



/* ========================================
   EXAM RUNNER PAGE
   ======================================== */

body.exam-runner-page .site-header,
body.exam-runner-page .site-footer,
body.exam-runner-page .entry-header {
	display: none !important;
}

.scp-exam-page {
	background: var(--gray-50);
	width: 100%;
	box-sizing: border-box;
}

.scp-exam-meta {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 32px;
}

.scp-exam-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: rgba(255,255,255,.1);
	padding: 6px 12px;
	border-radius: 9999px;
	font-size: 13px;
	color: var(--white);
	border: 1px solid rgba(255,255,255,.15);
	white-space: nowrap;
}

.scp-exam-meta-label {
	color: rgba(255,255,255,.6);
	font-size: 13px;
}

.scp-exam-meta-link {
	color: var(--white);
	text-decoration: none;
	transition: opacity 180ms var(--ease);
}

.scp-exam-meta-link:hover {
	opacity: 0.8;
	text-decoration: underline;
}

@media (max-width: 768px) {
	.scp-exam-meta {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}

.scp-exam-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
	width: 100%;
}

/* Exam Hero Section */
.scp-exam-hero {
	position: relative;
	background: linear-gradient(135deg, var(--navy) 0%, #1a3a5f 100%);
	padding: 80px 0 20px;
	text-align: center;
	color: var(--white);
	overflow: hidden;
}

.scp-exam-hero-inner {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

body.admin-bar .scp-exam-hero {
	padding-top: calc(80px + 32px);
}

@media (max-width: 782px) {
	body.admin-bar .scp-exam-hero {
		padding-top: calc(80px + 46px);
	}
}

.scp-exam-hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
}

.scp-exam-blob1,
.scp-exam-blob2 {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	filter: blur(60px);
}

.scp-exam-blob1 {
	width: 300px;
	height: 300px;
	top: -100px;
	right: -100px;
}

.scp-exam-blob2 {
	width: 400px;
	height: 400px;
	bottom: -150px;
	left: -150px;
}

.scp-exam-dots {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
	background-size: 20px 20px;
	opacity: 0.5;
}

.scp-exam-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin: 0 auto;
}

.scp-exam-hero h1 {
	font-size: 48px;
	margin-bottom: 16px;
	color: var(--white);
}

.scp-exam-hero p {
	font-size: 20px;
	opacity: 0.9;
	margin-bottom: 32px;
}

/* Badge Styles */
.scp-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.scp-badge-easy {
	background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
	color: #15803d;
	border: 1px solid #86efac;
}

.scp-badge-medium {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	color: #b45309;
	border: 1px solid #fcd34d;
}

.scp-badge-hard {
	background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
	color: #b91c1c;
	border: 1px solid #fca5a5;
}

/* Card Styles - Base component in theme/components.css, exam-specific styles below */

.scp-card-title {
	font-size: 20px;
	margin-bottom: 16px;
	color: var(--navy);
	font-weight: 700;
}

/* Mode Buttons */
.scp-mode-buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.scp-mode-btn {
	display: block;
	padding: 12px 20px;
	text-align: center;
	background: var(--gray-100);
	color: var(--gray-700);
	text-decoration: none;
	border-radius: 8px;
	font-weight: 500;
	transition: all var(--transition-base);
}

.scp-mode-btn:hover {
	background: var(--gray-200);
}

.scp-mode-btn.active {
	background: var(--teal);
	color: var(--white);
}

/* Exam Main Area */
.scp-exam-main {
	min-height: 500px;
	margin-top: 0 !important;
	padding-top: 32px;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

body.admin-bar .scp-exam-main {
	margin-top: 30px !important;
}

/* Intentional: removes card styling for pre-exam wrapper
   The inner .scp-dashboard-card provides the visible card */
.scp-exam-main .scp-card {
	/* Visual styling removed to prevent card-in-card effect with pre-exam card */
	background: transparent;
	border: none;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
	position: relative;
	overflow: hidden;
	margin: 0 auto;
	max-width: 680px;
	width: 100%;
}

/* Exam-specific minimal padding for compact layout */
.scp-exam-main .scp-card.scp-card-compact {
	padding: 0;
}

.scp-exam-main .scp-card::before {
	/* Gradient bar removed - visual styling removed from .scp-card */
	display: none;
}

@keyframes gradient-shift {
	0%, 100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

/* Progress bar for exam */
.scp-exam-progress {
	margin-bottom: 32px;
}

.scp-progress-bar {
	height: 8px;
	background: var(--gray-200);
	border-radius: 9999px;
	overflow: hidden;
	margin-bottom: 12px;
}

.scp-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--navy) 0%, var(--teal) 100%);
	border-radius: 9999px;
	transition: width 0.3s ease;
}

.scp-progress-text {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: var(--gray-600);
	font-weight: 600;
}

.scp-progress-text span {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Question navigation */
.scp-question-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding: 16px 20px;
	background: var(--gray-50);
	border-radius: 12px;
	border: 1px solid var(--gray-200);
}

.scp-question-number {
	font-size: 14px;
	font-weight: 700;
	color: var(--navy);
}

.scp-question-number span {
	color: var(--teal);
}

.scp-question-score {
	font-size: 13px;
	font-weight: 600;
	color: var(--gray-600);
}

/* Start Screen */
#exam-start-screen {
	text-align: center;
	padding: 40px 20px;
}

.scp-start-screen-title {
	font-size: 32px;
	margin-bottom: 40px;
	color: var(--navy);
	font-weight: 800;
	text-align: center;
	background: linear-gradient(135deg, var(--navy) 0%, #1a3a5f 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.scp-start-screen-info {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	max-width: 700px;
	margin: 0 auto 40px;
}

.scp-info-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 28px;
	background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
	border-radius: 12px;
	border: 2px solid rgba(26, 58, 95, 0.1);
	box-shadow: 0 4px 16px rgba(26, 58, 95, 0.08);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	flex: 1 1 calc(50% - 10px);
	min-width: 200px;
}

.scp-info-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--navy) 0%, #3b82f6 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.scp-info-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(26, 58, 95, 0.12);
	border-color: rgba(26, 58, 95, 0.2);
}

.scp-info-item:hover::before {
	opacity: 1;
}

.scp-info-label {
	font-size: 12px;
	color: var(--gray-500);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	min-width: 80px;
}

.scp-info-value {
	font-size: 24px;
	color: var(--navy);
	font-weight: 800;
}

@media (max-width: 600px) {
	.scp-start-screen-info {
		flex-direction: column;
	}

	.scp-info-item {
		flex: 1 1 100%;
		min-width: 100%;
	}
}

.scp-start-exam-btn {
	display: inline-block;
	padding: 18px 56px;
	background: linear-gradient(135deg, var(--teal) 0%, #0d9488 100%);
	color: var(--white);
	border: none;
	border-radius: 12px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
	position: relative;
	overflow: hidden;
}

.scp-start-exam-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.scp-start-exam-btn:hover {
	background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(13, 148, 136, 0.4);
}

.scp-start-exam-btn:hover::before {
	left: 100%;
}

/* Timer Display */
.scp-timer-display {
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: var(--gray-700);
	margin-bottom: 32px;
	padding: 16px 24px;
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	border-radius: 12px;
	border: 2px solid rgba(59, 130, 246, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	box-shadow: 0 2px 12px rgba(59, 130, 246, 0.1);
}

.scp-timer-display::before {
	content: '⏱️';
	font-size: 20px;
}

#time-remaining {
	color: var(--navy);
	font-weight: 800;
	font-size: 20px;
	letter-spacing: 0.5px;
}

/* Question Styles */
#question-title {
	font-size: 26px;
	margin-bottom: 32px;
	color: var(--navy);
	font-weight: 700;
	line-height: 1.4;
}

#question-title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 4px;
	background: linear-gradient(180deg, var(--navy) 0%, var(--teal) 100%);
	border-radius: 2px;
}

#options {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

#options button {
	padding: 18px 24px;
	text-align: left;
	background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
	border: 2px solid var(--gray-200);
	border-radius: 12px;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	color: var(--gray-700);
	font-weight: 500;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 16px;
}

#options button::before {
	content: '';
	width: 24px;
	height: 24px;
	border: 2px solid var(--gray-300);
	border-radius: 50%;
	flex-shrink: 0;
	transition: all 0.3s ease;
}

#options button:hover {
	border-color: var(--teal);
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	transform: translateX(4px);
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

#options button:hover::before {
	border-color: var(--teal);
	background: rgba(59, 130, 246, 0.1);
}

#options button.selected {
	border-color: var(--teal);
	background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
}

#options button.selected::before {
	border-color: var(--teal);
	background: var(--teal);
}

#options button.selected::after {
	content: '✓';
	position: absolute;
	right: 24px;
	color: var(--teal);
	font-weight: 700;
	font-size: 18px;
}

#options button:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

/* Next button improvement */
#next {
	display: inline-block;
	margin-top: 32px;
	padding: 16px 48px;
	background: linear-gradient(135deg, var(--teal) 0%, #0d9488 100%);
	color: var(--white);
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
	position: relative;
	overflow: hidden;
}

#next::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

#next:hover {
	background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(13, 148, 136, 0.4);
}

#next:hover::before {
	left: 100%;
}

/* Skeleton Loading */
.scp-skeleton-wrapper {
	padding: 20px 0;
}

.scp-skeleton {
	height: 20px;
	background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
	background-size: 200% 100%;
	animation: skeleton-loading 1.5s infinite;
	border-radius: 4px;
	margin-bottom: 12px;
}

.scp-skeleton-title {
	height: 32px;
	margin-bottom: 24px;
}

.scp-skeleton-option {
	height: 48px;
}

@keyframes skeleton-loading {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

#exam-app.loading {
	min-height: 400px;
}

#exam-app.loading #question-title,
#exam-app.loading #options,
#exam-app.loading #next {
	opacity: 0;
}

#exam-app:not(.loading) .scp-skeleton-wrapper {
	display: none;
}

#exam-app:not(.loading) #question-title,
#exam-app:not(.loading) #options {
	opacity: 1;
}

/* Question Styles */
#question-title {
	font-size: 24px;
	margin-bottom: 24px;
	color: var(--navy);
	font-weight: 600;
}

#options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

#options button {
	padding: 16px 20px;
	text-align: left;
	background: var(--white);
	border: 2px solid var(--gray-200);
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	transition: all var(--transition-base);
	color: var(--gray-700);
}

#options button:hover {
	border-color: var(--teal);
	background: var(--gray-50);
}

#options button:disabled {
	cursor: not-allowed;
}

#next {
	display: inline-block;
	margin-top: 24px;
	padding: 12px 32px;
	background: var(--teal);
	color: var(--white);
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition-base);
}

#next:hover {
	background: var(--navy);
}

/* Practice Explanation */
.practice-explanation {
	margin-top: 20px;
	padding: 16px;
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	border-radius: 4px;
}

/* SEO Content */
.scp-seo-content {
	margin-top: 16px;
}

.scp-seo-content p {
	margin-bottom: 16px;
	line-height: 1.8;
	color: var(--gray-700);
	text-align: justify;
}

/* FAQ Section */
.scp-faq-section {
	margin-top: 16px;
	margin-bottom: 40px;
}

.scp-faq-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* What You'll Learn Section */
.scp-seo-text {
	text-align: justify;
}

.scp-seo-text ul {
	list-style: none;
	padding: 0;
	margin: 0;
	text-align: left;
}

.scp-seo-text ul li {
	padding: 12px 0;
	padding-left: 32px;
	position: relative;
	font-size: 16px;
	color: var(--gray-700);
	line-height: 1.6;
}

.scp-seo-text ul li:before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 12px;
	color: var(--teal);
	font-weight: 700;
	font-size: 18px;
}

/* Internal Links Section */
.scp-internal-links {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid var(--gray-200);
}

.scp-internal-links h3 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--navy);
}

.scp-link-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 16px;
}

.scp-link-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: var(--gray-50);
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.scp-link-card:hover {
	background: var(--white);
	border-color: var(--teal);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.scp-link-icon {
	font-size: 24px;
}

.scp-link-card strong {
	display: block;
	font-size: 16px;
	color: var(--navy);
	margin-bottom: 4px;
}

.scp-link-card span {
	font-size: 14px;
	color: var(--gray-600);
}

/* Responsive */
@media (max-width: 768px) {
	.scp-exam-hero {
		padding: 60px 20px 20px;
	}

	.scp-exam-hero h1 {
		font-size: 32px;
	}

	.scp-exam-hero p {
		font-size: 16px;
	}

	.scp-exam-container {
		padding: 0 12px;
	}

	.scp-exam-main {
		padding-top: 16px;
	}

	.scp-exam-main .scp-card {
		padding: 0;
	}

	#question-title {
		font-size: 20px;
	}

	#options button {
		font-size: 14px;
		padding: 14px 16px;
	}
}

@media (max-width: 480px) {
	.scp-exam-container {
		padding: 0 12px;
	}
}



/* ========================================
   CONSOLIDATED RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
	/* Question Pages CSS migrated to theme - removed from plugin */

	/* Dashboard - MIGRATED TO THEME */
	/* Dashboard responsive styles migrated to theme - removed from plugin */


	/* Result */
	#result-container {
		padding: var(--scp-space-xl);
		margin: 20px auto;
		max-width: 100%;
	}

	.result-header h2 {
		font-size: var(--scp-font-size-3xl);
	}

	.score-circle {
		width: 100px;
		height: 100px;
		font-size: var(--scp-font-size-2xl);
	}

	.result-summary {
		flex-direction: row;
		gap: var(--scp-space-lg);
		padding: var(--scp-space-lg);
		flex-wrap: wrap;
		justify-content: center;
	}

	.summary-item {
		min-width: auto;
		padding: var(--scp-space-md);
		flex: 1;
		min-width: 80px;
	}

	.summary-number {
		font-size: var(--scp-font-size-2xl);
	}

	.celebration,
	.failure {
		padding: var(--scp-space-xl);
		margin-bottom: var(--scp-space-xl);
	}

	.celebration h3,
	.failure h3 {
		font-size: var(--scp-font-size-xl);
	}

	.review-item {
		padding: var(--scp-space-lg);
	}

	.result-actions {
		flex-direction: column;
		gap: var(--scp-space-md);
	}

}

/* ========================================
   DASHBOARD CARD STYLES (exam flow version)
   Migrated to assets/css/scp-exam-flow.css
   ======================================== */

/* ========================================
   EXAM RUNNER STYLES (scer namespace)
   Migrated to assets/css/scp-exam-flow.css
   ======================================== */

/* ========================================
   RESULT PAGE STYLES (scre namespace)
   Migrated to assets/css/scp-exam-flow.css
   ======================================== */

