/**
 * Course Single Page - Professional Udemy Style
 *
 * @package Coursee
 * @since 1.0.0
 */

/* ============================================
   COURSE SINGLE PAGE LAYOUT
   ============================================ */

.course-single-page {
	background: #f9fafb;
	min-height: 100vh;
	padding: 0;
}

.course-single.udemy-style {
	max-width: 100%;
	margin: 0;
	padding: 0;
}

/* Course Hero Section */
.course-hero {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	padding: 4rem 0;
	position: relative;
	overflow: hidden;
}

.course-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
	opacity: 0.3;
}

.course-hero-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 3rem;
	align-items: center;
	position: relative;
	z-index: 1;
}

.course-hero-content {
	position: relative;
	z-index: 2;
}

.course-breadcrumb {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.breadcrumb-item {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.9);
	padding: 0.25rem 0.75rem;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 4px;
	backdrop-filter: blur(10px);
}

.course-hero-title {
	font-size: 2.5rem;
	font-weight: 900;
	line-height: 1.2;
	margin: 0 0 1rem 0;
	color: #ffffff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.course-hero-subtitle {
	font-size: 1.25rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.95);
	margin: 0 0 1.5rem 0;
}

.course-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: center;
	margin-bottom: 1.5rem;
}

.course-rating-hero {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.course-rating-hero .rating-stars {
	display: flex;
	gap: 0.125rem;
}

.course-rating-hero .star {
	color: #fbbf24;
	font-size: 1rem;
}

.course-rating-hero .rating-value {
	font-weight: 700;
	font-size: 1rem;
	color: #ffffff;
}

.course-rating-hero .rating-count {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.8);
}

.course-students-hero,
.course-level-hero,
.course-duration-hero {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.9);
	padding: 0.5rem 1rem;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 4px;
	backdrop-filter: blur(10px);
}

.course-instructor-hero {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
}

.instructor-label {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.8);
}

.instructor-name {
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.5);
}

.course-badge-hero {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #000000;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 4px;
	margin-top: 1rem;
}

.course-hero-image {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.course-hero-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Course Main Wrapper */
.course-main-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem 2rem;
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 3rem;
	align-items: start;
}

/* Course Sections */
.course-section {
	background: #ffffff;
	border-radius: 12px;
	padding: 2.5rem;
	margin-bottom: 2rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border: 1px solid #e5e7eb;
}

.course-section-title {
	font-size: 1.75rem;
	font-weight: 900;
	color: #000000;
	margin: 0 0 1.5rem 0;
	padding-bottom: 1rem;
	border-bottom: 2px solid #e5e7eb;
}

.course-description-content {
	font-size: 1rem;
	line-height: 1.8;
	color: #374151;
}

.course-description-content p {
	margin-bottom: 1rem;
}

.course-description-content ul,
.course-description-content ol {
	margin-left: 1.5rem;
	margin-bottom: 1rem;
}

.course-description-content li {
	margin-bottom: 0.5rem;
}

/* Course Requirements */
.course-requirements-content {
	font-size: 1rem;
	line-height: 1.8;
	color: #374151;
}

/* Instructor Section */
.instructor-section {
	background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.instructor-card {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

.instructor-avatar-large {
	flex-shrink: 0;
}

.instructor-avatar-large img {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	border: 4px solid #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.instructor-details {
	flex: 1;
}

.instructor-name-large {
	font-size: 1.5rem;
	font-weight: 900;
	color: #000000;
	margin: 0 0 0.5rem 0;
}

.instructor-bio {
	font-size: 1rem;
	line-height: 1.6;
	color: #6b7280;
	margin: 0 0 1rem 0;
}

.instructor-rating {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.instructor-rating .rating-stars {
	display: flex;
	gap: 0.125rem;
}

.instructor-rating .star {
	color: #fbbf24;
	font-size: 1rem;
}

.instructor-rating .rating-value {
	font-weight: 700;
	color: #000000;
}

.instructor-profile-link {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: #000000;
	color: #ffffff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.instructor-profile-link:hover {
	background: #374151;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Course Sidebar */
.course-sidebar-sticky {
	position: sticky;
	top: 2rem;
}

.course-sidebar-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	border: 1px solid #e5e7eb;
	overflow: hidden;
}

.course-sidebar-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f3f4f6;
}

.course-sidebar-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.course-sidebar-price {
	padding: 1.5rem;
	border-bottom: 1px solid #e5e7eb;
}

.price-original {
	font-size: 1rem;
	color: #6b7280;
	text-decoration: line-through;
	margin-right: 0.5rem;
}

.price-current {
	font-size: 2rem;
	font-weight: 900;
	color: #000000;
}

.price-free {
	font-size: 2rem;
	font-weight: 900;
	color: #000000;
}

.button-large {
	padding: 1rem 2rem;
	font-size: 1.125rem;
	font-weight: 700;
}

.button-full {
	width: 100%;
	display: block;
	text-align: center;
}

.course-progress-sidebar {
	padding: 1.5rem;
	border-bottom: 1px solid #e5e7eb;
}

.progress-bar {
	width: 100%;
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	border-radius: 4px;
	transition: width 0.3s ease;
}

.progress-text {
	font-size: 0.875rem;
	color: #6b7280;
	font-weight: 600;
}

.course-features-sidebar {
	padding: 1.5rem;
	border-bottom: 1px solid #e5e7eb;
}

.course-features-sidebar h3 {
	font-size: 1rem;
	font-weight: 700;
	color: #000000;
	margin: 0 0 1rem 0;
}

.course-features-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.course-features-list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid #f3f4f6;
}

.course-features-list li:last-child {
	border-bottom: none;
}

.feature-icon {
	color: #10b981;
	font-size: 1.25rem;
	font-weight: 700;
}

.course-share {
	padding: 1.5rem;
}

.course-share-btn {
	width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.course-hero-container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	
	.course-main-wrapper {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	
	.course-sidebar-sticky {
		position: relative;
		top: 0;
	}
}

@media (max-width: 768px) {
	.course-hero {
		padding: 2rem 0;
	}
	
	.course-hero-title {
		font-size: 1.75rem;
	}
	
	.course-hero-subtitle {
		font-size: 1rem;
	}
	
	.course-main-wrapper {
		padding: 2rem 1rem;
	}
	
	.course-section {
		padding: 1.5rem;
	}
	
	.instructor-card {
		flex-direction: column;
		text-align: center;
	}
}

