/**
 * COURSE SINGLE PAGE - ROBUST DESIGN
 * Enhanced robustness and error handling for course single page
 *
 * @package Coursee
 * @since 1.0.0
 */

/* ============================================
   COURSE SINGLE PAGE - ROBUST STYLING
   ============================================ */

.course-single.coursee-course-single {
	background: #ffffff !important;
	min-height: 100vh !important;
	padding: 0 !important;
	margin: 0 !important;
	position: relative !important;
}

.course-single.coursee-course-single .course-header {
	background: linear-gradient(135deg, #1c1d1f 0%, #2d2e30 100%) !important;
	color: #ffffff !important;
	padding: 3rem 2rem !important;
	margin-bottom: 3rem !important;
	position: relative !important;
}

.course-single.coursee-course-single .course-title {
	font-size: 2.5rem !important;
	font-weight: 900 !important;
	color: #ffffff !important;
	margin: 0 0 1rem 0 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.02em !important;
}

.course-single.coursee-course-single .course-excerpt {
	font-size: 1.25rem !important;
	color: rgba(255, 255, 255, 0.9) !important;
	margin: 0 0 2rem 0 !important;
	line-height: 1.6 !important;
}

.course-single.coursee-course-single .course-meta-info {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 1.5rem !important;
	align-items: center !important;
}

.course-single.coursee-course-single .course-instructor,
.course-single.coursee-course-single .course-rating,
.course-single.coursee-course-single .course-students,
.course-single.coursee-course-single .course-categories,
.course-single.coursee-course-single .course-levels {
	display: flex !important;
	align-items: center !important;
	gap: 0.5rem !important;
	color: rgba(255, 255, 255, 0.9) !important;
	font-size: 0.9375rem !important;
}

.course-single.coursee-course-single .course-content-wrapper {
	max-width: 1200px !important;
	margin: 0 auto !important;
	padding: 0 2rem 3rem 2rem !important;
	display: grid !important;
	grid-template-columns: 1fr 350px !important;
	gap: 3rem !important;
	align-items: start !important;
}

.course-single.coursee-course-single .course-main-content {
	background: #ffffff !important;
	padding: 2.5rem !important;
	border-radius: 12px !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
	border: 1px solid #e5e7eb !important;
}

.course-single.coursee-course-single .course-description {
	margin-bottom: 3rem !important;
}

.course-single.coursee-course-single .course-description h2 {
	font-size: 1.75rem !important;
	font-weight: 900 !important;
	color: #1a1a1a !important;
	margin: 0 0 1.5rem 0 !important;
}

.course-single.coursee-course-single .course-description p {
	font-size: 1rem !important;
	line-height: 1.7 !important;
	color: #3e4143 !important;
	margin-bottom: 1rem !important;
}

.course-single.coursee-course-single .course-sidebar {
	position: sticky !important;
	top: 2rem !important;
}

.course-single.coursee-course-single .course-sidebar-widget {
	background: #ffffff !important;
	padding: 2rem !important;
	border-radius: 12px !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
	border: 1px solid #e5e7eb !important;
	margin-bottom: 1.5rem !important;
}

.course-single.coursee-course-single .course-price {
	margin-bottom: 1.5rem !important;
	text-align: center !important;
}

.course-single.coursee-course-single .price-amount {
	font-size: 2rem !important;
	font-weight: 900 !important;
	color: #1a1a1a !important;
	display: block !important;
}

.course-single.coursee-course-single .price-free {
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	color: #10b981 !important;
	display: block !important;
}

.course-single.coursee-course-single .course-featured-image {
	margin-bottom: 2rem !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.course-single.coursee-course-single .course-featured-image img {
	width: 100% !important;
	height: auto !important;
	display: block !important;
}

/* Error States */
.course-single.coursee-course-single .coursee-error {
	background: #fef2f2 !important;
	border: 1px solid #fecaca !important;
	border-radius: 8px !important;
	padding: 1.5rem !important;
	margin: 2rem 0 !important;
	color: #991b1b !important;
}

.course-single.coursee-course-single .coursee-error p {
	margin: 0 !important;
	font-weight: 600 !important;
}

/* Loading States */
.course-single.coursee-course-single .course-loading {
	text-align: center !important;
	padding: 4rem 2rem !important;
	color: #6b7280 !important;
}

/* Empty States */
.course-single.coursee-course-single .course-empty {
	text-align: center !important;
	padding: 4rem 2rem !important;
	color: #6b7280 !important;
	background: #f9fafb !important;
	border-radius: 12px !important;
	border: 2px dashed #e5e7eb !important;
}

/* Responsive */
@media (max-width: 1024px) {
	.course-single.coursee-course-single .course-content-wrapper {
		grid-template-columns: 1fr !important;
		padding: 0 1.5rem 2rem 1.5rem !important;
	}
	
	.course-single.coursee-course-single .course-sidebar {
		position: relative !important;
		top: 0 !important;
	}
}

@media (max-width: 768px) {
	.course-single.coursee-course-single .course-header {
		padding: 2rem 1.5rem !important;
	}
	
	.course-single.coursee-course-single .course-title {
		font-size: 1.75rem !important;
	}
	
	.course-single.coursee-course-single .course-excerpt {
		font-size: 1rem !important;
	}
	
	.course-single.coursee-course-single .course-main-content {
		padding: 1.5rem !important;
	}
	
	.course-single.coursee-course-single .course-sidebar-widget {
		padding: 1.5rem !important;
	}
}

