/**
 * LearnPress：停用插件前台 CSS 后，原 FontAwesome ::before 无字体。
 * 在 zhanlan-theme 之后加载，用 Bootstrap Icons（主题已入队 bootstrap-icons）补齐课时顶栏、目录项、状态等图标。
 */

/* 课程区内手动写的 <i class="bi …"> 不被其它 font-family 顶掉 */
body.zhanlan-lp-course-context .bi::before,
body.zhanlan-lp-course-context [class^="bi-"]::before,
body.zhanlan-lp-course-context [class*=" bi-"]::before {
	font-family: bootstrap-icons, "bootstrap-icons" !important;
}

/* 课时顶栏：展开目录（插件原 fontawesome + \f065） */
body.zhanlan-lp-course-context #course-item-content-header .toggle-content-item::before {
	font-family: bootstrap-icons, "bootstrap-icons" !important;
	font-weight: 400 !important;
	font-style: normal !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	content: "\f14c" !important; /* bi-arrows-expand */
	font-size: 1.35rem !important;
	line-height: 1 !important;
}

body.zhanlan-lp-course-context.full-screen-content-item #course-item-content-header .toggle-content-item::before {
	content: "\f14b" !important; /* bi-arrows-angle-contract，对应原 \f066 */
}

/* 目录：课时 / 测验 / 音视频（对应 LP learnpress.css 中 section-item-link:before） */
body.zhanlan-lp-course-context #learn-press-course-curriculum ul.curriculum-sections .section-content .course-item.course-item-lp_quiz .section-item-link::before {
	font-family: bootstrap-icons, "bootstrap-icons" !important;
	content: "\f293" !important; /* bi-clock */
}

body.zhanlan-lp-course-context #learn-press-course-curriculum ul.curriculum-sections .section-content .course-item.course-item-lp_lesson .section-item-link::before {
	font-family: bootstrap-icons, "bootstrap-icons" !important;
	content: "\f392" !important; /* bi-file-earmark */
}

body.zhanlan-lp-course-context #learn-press-course-curriculum ul.curriculum-sections .section-content .course-item.course-item-lp_lesson.course-item-type-video .section-item-link::before {
	content: "\f21f" !important; /* bi-camera-video */
}

body.zhanlan-lp-course-context #learn-press-course-curriculum ul.curriculum-sections .section-content .course-item.course-item-lp_lesson.course-item-type-audio .section-item-link::before {
	content: "\f490" !important; /* bi-mic */
}

/* 目录项状态圆点内字符（插件原 .course-item-status { font-family: fontawesome }） */
body.zhanlan-lp-course-context #learn-press-course-curriculum ul.curriculum-sections .section-content .course-item .course-item-meta .course-item-status {
	font-family: bootstrap-icons, "bootstrap-icons" !important;
}

body.zhanlan-lp-course-context #learn-press-course-curriculum ul.curriculum-sections .section-content .course-item.item-locked .course-item-status::before {
	content: "\f47a" !important; /* bi-lock-fill */
	color: var(--danger-color, #dc3545) !important;
}

body.zhanlan-lp-course-context #learn-press-course-curriculum ul.curriculum-sections .section-content .course-item.has-status.status-completed .course-item-status::before,
body.zhanlan-lp-course-context #learn-press-course-curriculum ul.curriculum-sections .section-content .course-item.has-status.status-started .course-item-status::before,
body.zhanlan-lp-course-context #learn-press-course-curriculum ul.curriculum-sections .section-content .course-item.course-item-lp_quiz.status-started .course-item-status::before {
	content: "\f633" !important; /* bi-check-lg */
}

body.zhanlan-lp-course-context #learn-press-course-curriculum ul.curriculum-sections .section-content .course-item.has-status.item-failed .course-item-status::before,
body.zhanlan-lp-course-context #learn-press-course-curriculum ul.curriculum-sections .section-content .course-item.has-status.failed .course-item-status::before {
	content: "\f659" !important; /* bi-x-lg */
}

/* LP 消息条 icon::after（原 FontAwesome 圆内字符） */
body.zhanlan-lp-course-context .learn-press-message.icon::after {
	font-family: bootstrap-icons, "bootstrap-icons" !important;
}

body.zhanlan-lp-course-context .learn-press-message.error.icon::after {
	content: "\f659" !important; /* bi-x-lg */
}

body.zhanlan-lp-course-context .learn-press-message.success.icon::after {
	content: "\f633" !important; /* bi-check-lg */
}
