/* Eredi Corsi — front-end styles */

.edc-curriculum,
.edc-lesson-content,
.edc-course-nav,
.edc-access-cta,
.edc-player {
	--edc-teal: #002435;
	--edc-cream: #f9f7f3;
	--edc-gold: #feca91;
	--edc-line: #e6e1d8;
	--edc-muted: #6b6b6b;
}

/* ---- Curriculum ---- */
.edc-curriculum__title {
	color: var(--edc-teal);
	margin: 0 0 12px;
}

.edc-curriculum__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.edc-lesson-item {
	border: 1px solid var(--edc-line);
	border-radius: 6px;
	margin: 0 0 8px;
	background: #fff;
}

.edc-lesson-item .edc-lesson-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	text-decoration: none;
	color: var(--edc-teal);
}

.edc-lesson-item.is-locked .edc-lesson-link {
	color: var(--edc-muted);
	cursor: not-allowed;
}

.edc-lesson-item.is-current {
	border-color: var(--edc-gold);
	box-shadow: inset 3px 0 0 var(--edc-gold);
}

.edc-lesson-num {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	line-height: 26px;
	text-align: center;
	border-radius: 50%;
	background: var(--edc-cream);
	font-size: 13px;
}

.edc-lesson-thumb img {
	width: 64px;
	height: 40px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.edc-lesson-name {
	flex: 1 1 auto;
	font-weight: 600;
}

.edc-lesson-tag {
	display: inline-block;
	margin-left: 8px;
	font-size: 11px;
	font-weight: 400;
	padding: 1px 8px;
	border-radius: 10px;
	background: var(--edc-gold);
	color: var(--edc-teal);
}

.edc-lesson-dur {
	color: var(--edc-muted);
	font-size: 13px;
}

.edc-lesson-ic {
	font-size: 14px;
}

/* ---- Lesson content / video ---- */
.edc-lesson-content__title {
	color: var(--edc-teal);
}

.edc-video {
	margin: 0 0 20px;
}

.edc-video__el {
	display: block;
	width: 100%;
	border-radius: 8px;
}

.edc-video--locked,
.edc-lesson-locked {
	padding: 24px;
	background: var(--edc-cream);
	border: 1px dashed var(--edc-line);
	border-radius: 8px;
	text-align: center;
	color: var(--edc-muted);
}

/* ---- Nav ---- */
.edc-course-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 24px 0;
}

.edc-course-nav .edc-nav {
	text-decoration: none;
	color: var(--edc-teal);
	font-weight: 600;
	padding: 10px 14px;
	border: 1px solid var(--edc-line);
	border-radius: 6px;
}

.edc-course-nav .edc-nav-next {
	margin-left: auto;
}

.edc-course-nav .is-disabled {
	opacity: 0.4;
	pointer-events: none;
}

/* ---- CTA ---- */
.edc-btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 700;
	background: var(--edc-teal);
	color: var(--edc-gold);
}

.edc-btn--disabled {
	opacity: 0.5;
	pointer-events: none;
}

/* ---- Player shell (two-pane) ---- */
.edc-player {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 28px;
	align-items: start;
}

.edc-player__sidebar {
	position: sticky;
	top: 24px;
	max-height: calc(100vh - 48px);
	overflow: auto;
}

@media (max-width: 880px) {
	.edc-player {
		grid-template-columns: 1fr;
	}

	.edc-player__sidebar {
		position: static;
		max-height: none;
	}
}

/* ---- Progress ---- */
.edc-progress {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
}

.edc-progress__track {
	flex: 1 1 auto;
	height: 8px;
	background: var(--edc-line);
	border-radius: 6px;
	overflow: hidden;
}

.edc-progress__fill {
	display: block;
	height: 100%;
	background: var(--edc-teal);
	transition: width 0.3s ease;
}

.edc-progress__label {
	flex: 0 0 auto;
	font-size: 12px;
	color: var(--edc-muted);
	white-space: nowrap;
}

/* completion checkmark in the curriculum */
.edc-lesson-check {
	display: none;
	color: #1e6b2a;
	font-weight: 700;
}

.edc-lesson-item.is-done .edc-lesson-check {
	display: inline;
}

.edc-lesson-item.is-done .edc-lesson-name {
	color: #1e6b2a;
}

/* mark-complete button */
.edc-complete-wrap {
	margin: 20px 0;
}

.edc-complete-btn {
	cursor: pointer;
	border: 1px solid var(--edc-teal);
	background: #fff;
	color: var(--edc-teal);
	padding: 10px 18px;
	border-radius: 6px;
	font-weight: 600;
}

.edc-complete-btn.is-done {
	background: #e3f4e4;
	border-color: #1e6b2a;
	color: #1e6b2a;
}

.edc-complete-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}
