/**
 * Enhanced Course Curriculum Styles
 *
 * @package Coursee
 * @since 1.0.0
 */

/* ============================================
   CURRICULUM CONTAINER
   ============================================ */

.course-curriculum-enhanced {
	border: 2px solid #000000;
	background: #ffffff;
	padding: 2rem;
	margin: 2rem 0;
}

.curriculum-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 2px solid #000000;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.curriculum-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: #000000;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.curriculum-stats {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
}

.stat-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.stat-icon {
	font-size: 1.25rem;
}

.stat-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: #000000;
}

.stat-label {
	font-size: 0.875rem;
	color: #6b7280;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ============================================
   CURRICULUM SECTIONS
   ============================================ */

.curriculum-sections {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.curriculum-section {
	border: 2px solid #000000;
	background: #ffffff;
	overflow: hidden;
}

.section-header {
	border-bottom: 1px solid #e5e7eb;
}

.section-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	background: #ffffff;
	border: none;
	cursor: pointer;
	text-align: left;
	transition: background 0.2s ease;
}

.section-toggle:hover {
	background: #f9fafb;
}

.section-toggle[aria-expanded="false"] .toggle-icon {
	transform: rotate(-90deg);
}

.toggle-icon {
	font-size: 0.875rem;
	color: #000000;
	transition: transform 0.3s ease;
	font-weight: 700;
}

.section-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #000000;
	margin: 0;
	flex: 1;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.section-count {
	font-size: 0.875rem;
	color: #6b7280;
	font-weight: 600;
}

.section-content {
	padding: 0;
	max-height: none;
	overflow: visible;
	transition: max-height 0.3s ease;
}

.section-content.collapsed {
	max-height: 0;
	overflow: hidden;
	padding: 0;
}

/* ============================================
   CURRICULUM LIST
   ============================================ */

.curriculum-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.curriculum-item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #e5e7eb;
	transition: all 0.2s ease;
	align-items: center;
}

.curriculum-item:last-child {
	border-bottom: none;
}

.curriculum-item:hover {
	background: #f9fafb;
	padding-left: 2rem;
}

.curriculum-item.completed {
	background: #f0fdf4;
}

.curriculum-item.completed .item-title {
	text-decoration: line-through;
	color: #6b7280;
}

.item-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 2px solid #000000;
	background: #ffffff;
	color: #000000;
	font-weight: 700;
	font-size: 0.875rem;
	flex-shrink: 0;
}

.curriculum-item.completed .item-number {
	background: #000000;
	color: #ffffff;
}

.item-content {
	flex: 1;
	min-width: 0;
}

.item-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.item-title {
	font-size: 1rem;
	font-weight: 600;
	color: #000000;
	text-decoration: none;
	flex: 1;
	transition: color 0.2s ease;
}

.item-title:hover {
	color: #6b7280;
	text-decoration: underline;
}

.item-status {
	font-size: 1.25rem;
	flex-shrink: 0;
}

.completed-icon {
	color: #10b981;
	font-weight: 700;
}

.item-type-badge {
	padding: 0.25rem 0.75rem;
	border: 1px solid #000000;
	background: #ffffff;
	color: #000000;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	flex-shrink: 0;
}

.quiz-badge {
	background: #000000;
	color: #ffffff;
}

.item-meta {
	display: flex;
	gap: 1rem;
	font-size: 0.875rem;
	color: #6b7280;
}

.item-duration {
	font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
	.course-curriculum-enhanced {
		padding: 1.5rem;
	}
	
	.curriculum-header {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.curriculum-stats {
		width: 100%;
		justify-content: space-between;
	}
	
	.curriculum-item {
		padding: 1rem;
	}
	
	.curriculum-item:hover {
		padding-left: 1rem;
	}
	
	.item-header {
		flex-wrap: wrap;
	}
}

