$fontawesome: FontAwesomeSensei, FontAwesome;

.module-archive .status {
	padding: .382em 1em;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	-moz-background-clip: padding;
	-webkit-background-clip: padding-box;
	background-clip: padding-box;
	color: #fff;
	font-weight: bold;
	background: #c6c6c6;
	display: inline-block;
}

.module-archive .status:before {
	font-family: $fontawesome;
	display: inline-block;
	font-size: 100%;
	margin-right: .618em;
	font-weight: normal;
	line-height: 1em;
	width: 1em;
}

.module-archive .status.completed {
	background: #63a95f;
}

.module-archive .status.completed:before {
	content: "\f00c";
}

.module-archive .status.in-progress:before {
	content: "\f110";
}

.module-lessons .lesson-status {
	font-style: normal;
}

.module-lessons .lesson-status.complete {
	color: #63a95f;
}

.module-lessons .lesson-status.complete:before {
	font-family: $fontawesome;
	display: inline-block;
	font-size: 100%;
	margin-right: .618em;
	font-weight: normal;
	line-height: 1em;
	width: 1em;
	content: '\f00c';
}

.single-course {
	.course-lessons {
		> header {
			h2 {
				margin-bottom: 1em;
			}
		}
	}
}

.course .module {
	position: relative;
	margin-top: 1em;
	margin-bottom: 1em;
	border: none;

	header {
		align-items: center;
		background: rgba(0, 0, 0, 0.05);
		box-sizing: border-box;
		display: flex;
		margin-bottom: 0;
		padding: 1em 20px;
		width: 100%;

		h2 {
			display: inline-block;
			font-size: 1.8em;
			margin-right: 20px;
		}

		.status {
			margin-left: auto;
			white-space: nowrap;
		}
	}

	.module-description {
		padding: 1em 20px;
		background: rgba(0, 0, 0, 0.015);
		margin: 0;
		font-style: italic;
	}

	.module-lessons {
		header {
			margin: 0 !important;
			padding: 0.6em 0.6em 0.6em 20px !important;
			border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
			border-bottom: 1px solid rgba(0, 0, 0, 0.05);
			background: rgba(0, 0, 0, 0.03);

			h3 {
				margin: 0;
				font-size: 1.2em;
			}
		}

		ul {
			margin: 0 !important;
			padding: 0 !important;
			margin-bottom: 2em !important;
			list-style: none !important;

			li {
				list-style: none !important;
				margin: 0 !important;
				position: relative;

				a {
					display: block;
					border-bottom: 1px solid rgba(0, 0, 0, 0.05);
					padding: 0.618em 0.618em 0.618em 3.618em;
					background: rgba(0, 0, 0, 0.01);
					position: relative;
					font-size: 1.1em;
					text-decoration: none;

					&:before {
						font-family: $fontawesome;
						display: inline-block;
						font-size: 150%;
						margin-right: 0.618em;
						font-weight: 400;
						line-height: 1em;
						width: 1em;
						position: absolute;
						left: 20px;
						top: 0.5em;
						content: '\f10c';
						color: rgba(0, 0, 0, 0.1);
					}

					&:hover {
						background: rgba(255, 255, 255, 1);
						border-bottom: 1px solid rgba(0, 0, 0, 0.05);
						text-decoration: none;

						&:before {
							content: '\f138';
							color: rgba(0, 0, 0, 0.2);
						}
					}

					.preview-label {
						float: right;
						top: -0.2em;
					}
				}

				&.completed {
					a {
						color: rgba(0, 0, 0, 0.4);

						&:before {
							content: '\f058';
							color: #63a95f;
						}
					}
				}
			}
		}
	}
}
