/**
 * Lumos Course Syllabus Styles
 *
 * Minimal, clean styling for the custom course syllabus display.
 *
 * @package LifterLMS_Lumos_Customization
 */

/* Main Container */
.lumos-syllabus-wrapper {
	width: 100%;
	margin: 0;
}

/* Empty State */
.lumos-syllabus-empty {
	padding: 20px;
	text-align: center;
	color: #666;
	font-style: italic;
}

/* Section Header */
.lumos-section-header {
	background-color: #3a4f4d;
	padding: 12px 20px;
	margin-bottom: 0;
}

.lumos-section-title {
	color: #ffffff !important;
	font-size: 16px;
	font-weight: 400;
	margin: 0;
	text-transform: lowercase;
}

/* Lessons List */
.lumos-lessons-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: 20px;
}

/* Lesson Item Base */
.lumos-lesson-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 20px;
	border: none;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.3s ease, transform 0.2s ease, background-color 0.3s ease, color 0.3s ease;
	position: relative;
}

.lumos-lesson-item:hover {
	opacity: 0.85;
	transform: translateX(2px);
}

/* Subtle border between lessons */
.lumos-lesson-item + .lumos-lesson-item {
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Incomplete State (Gray) */
.lumos-lesson-item.lumos-lesson-incomplete {
	background-color: #e8e8e8;
	color: #333333;
}

/* Complete State (Green) */
.lumos-lesson-item.lumos-lesson-complete {
	background-color: #a8d5ba;
	color: #2d5a40 !important;
}

/* Favorited State - icons differentiate this from complete */
/* No additional styling needed - uses same as .lumos-lesson-complete */

/* Lesson Name */
.lumos-lesson-name {
	flex: 1;
	font-size: 14px;
	font-weight: 400;
	text-align: left;
}

/* Current Lesson - Bold text */
.lumos-lesson-item.lumos-lesson-current .lumos-lesson-name {
	font-weight: 700;
}

/* Icons Container */
.lumos-lesson-icons {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Icon Base Styles */
.lumos-icon {
	font-size: 18px;
	line-height: 1;
	display: inline-block;
}

/* Checkmark Icon */
.lumos-icon-check {
	color: #2d5a40;
}

/* Heart Icon - Only shown when favorited (non-interactive in list) */
.lumos-icon-heart {
	color: #c74444;
	font-size: 16px;
	transition: transform 0.2s ease;
}

/* Square Icon */
.lumos-icon-square {
	color: #666666;
	font-size: 12px;
}

/* Click/Active State */
.lumos-lesson-item:active {
	transform: scale(0.98);
}

/* Keyboard Focus */
.lumos-lesson-item:focus {
	outline: 2px solid #2d5a40;
	outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.lumos-section-header {
		padding: 10px 16px;
	}

	.lumos-section-title {
		font-size: 14px;
	}

	.lumos-lesson-item {
		padding: 12px 16px;
	}

	.lumos-lesson-name {
		font-size: 13px;
	}

	.lumos-icon {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.lumos-lesson-icons {
		gap: 6px;
	}

	.lumos-icon {
		font-size: 14px;
	}

	.lumos-icon-heart {
		font-size: 14px;
	}
}

/* Loading State (optional) */
.lumos-syllabus-wrapper.lumos-loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Welcome Section Highlight - Example for first section special styling */
/* Uncomment and modify if needed:
.lumos-section-header:first-child .lumos-section-title {
	font-weight: 600;
	text-transform: uppercase;
}
*/

/* Optional Notification Styles */
.lumos-notification {
	position: fixed;
	bottom: 20px;
	right: 20px;
	padding: 12px 20px;
	background-color: #333;
	color: #fff;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	font-size: 14px;
	max-width: 300px;
}

.lumos-notification.lumos-notification-show {
	opacity: 1;
	transform: translateY(0);
}

.lumos-notification.lumos-notification-success {
	background-color: #27ae60;
}

.lumos-notification.lumos-notification-error {
	background-color: #c74444;
}

@media (max-width: 480px) {
	.lumos-notification {
		bottom: 10px;
		right: 10px;
		left: 10px;
		max-width: none;
	}
}
