/* Academy LMS & Community — front-end styles */

.academy-btn {
	display: inline-block;
	background: #2F5FE0;
	color: #fff;
	border: none;
	padding: 10px 18px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	font-size: 14px;
	transition: background 0.15s ease;
}
.academy-btn:hover { background: #1f47b8; color: #fff; }
.academy-btn-secondary { background: #eef1f8; color: #2F5FE0; }
.academy-btn-secondary:hover { background: #dfe4f3; color: #1f47b8; }
.academy-btn-small { padding: 6px 12px; font-size: 12px; }

.academy-badge {
	display: inline-block;
	background: #eef1f8;
	color: #2F5FE0;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	margin-right: 6px;
}
.academy-badge-completed { background: #e3f5e6; color: #1f8a3d; }
.academy-badge-active { background: #eef1f8; color: #2F5FE0; }

/* Course grid */
.academy-course-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
	margin: 24px 0;
}
.academy-course-card {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.academy-course-card img { width: 100%; height: 160px; object-fit: cover; }
.academy-course-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.academy-course-card-body h3 { margin: 0; font-size: 18px; }
.academy-course-card-body h3 a { color: #111827; text-decoration: none; }
.academy-course-excerpt { color: #6b7280; font-size: 14px; margin: 0; }
.academy-course-meta { margin: 4px 0; }
.academy-course-count { font-size: 12px; color: #9ca3af; margin: 0; }

/* Progress bars */
.academy-progress-bar {
	background: #eef1f8;
	border-radius: 999px;
	height: 10px;
	overflow: hidden;
	margin: 8px 0 4px;
}
.academy-progress-bar-fill { background: #2F5FE0; height: 100%; }
.academy-progress-label { font-size: 12px; color: #6b7280; }

/* Dashboard */
.academy-dashboard-item {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 12px;
}
.academy-dashboard-item-info { display: flex; justify-content: space-between; align-items: center; }
.academy-dashboard-item-info h4 { margin: 0; }
.academy-dashboard-item-info h4 a { color: #111827; text-decoration: none; }

/* Single course / lesson / quiz */
.academy-single-course { margin-top: 24px; }
.academy-curriculum-list { list-style: none; padding: 0; }
.academy-curriculum-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin-bottom: 8px;
}
.academy-curriculum-item.is-complete { background: #f4faf5; }
.academy-curriculum-item a { text-decoration: none; color: #111827; flex: 1; }
.academy-check { color: #1f8a3d; font-weight: 700; }
.academy-breadcrumb a { color: #2F5FE0; text-decoration: none; }
.academy-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; margin: 16px 0; }
.academy-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 8px; }
.academy-lesson-actions { margin: 20px 0; }

/* Quiz */
.academy-quiz-question { margin-bottom: 20px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 8px; }
.academy-quiz-option { display: block; margin: 6px 0; cursor: pointer; }
#academy-quiz-result { margin-top: 16px; padding: 16px; border-radius: 8px; }
#academy-quiz-result.pass { background: #e3f5e6; color: #1f8a3d; }
#academy-quiz-result.fail { background: #fdecec; color: #b3261e; }

/* Feed */
.academy-feed { max-width: 640px; margin: 24px 0; }
.academy-post-box { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; margin-bottom: 16px; }
.academy-post-box textarea { width: 100%; min-height: 70px; border: none; resize: vertical; font-family: inherit; font-size: 14px; }
.academy-post-box textarea:focus { outline: none; }
.academy-feed-filters { margin-bottom: 12px; }
.academy-feed-filter {
	background: none; border: 1px solid #e5e7eb; border-radius: 999px;
	padding: 6px 14px; margin-right: 8px; cursor: pointer; font-size: 13px;
}
.academy-feed-filter.active { background: #2F5FE0; color: #fff; border-color: #2F5FE0; }

.academy-activity-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0f1f4; }
.academy-activity-avatar img { border-radius: 50%; }
.academy-activity-body { flex: 1; }
.academy-activity-text { margin: 0 0 4px; }
.academy-activity-text a { color: #2F5FE0; text-decoration: none; font-weight: 600; }
.academy-activity-time { font-size: 12px; color: #9ca3af; }
.academy-activity-actions { margin-top: 8px; display: flex; gap: 16px; }
.academy-like-btn, .academy-comment-toggle {
	background: none; border: none; cursor: pointer; font-size: 13px; color: #6b7280;
}
.academy-like-btn.liked { color: #2F5FE0; font-weight: 600; }
.academy-comments { margin-top: 10px; background: #fafbfc; border-radius: 8px; padding: 10px; }
.academy-comment { font-size: 13px; margin: 4px 0; }
.academy-comment-box { display: flex; gap: 8px; margin-top: 8px; }
.academy-comment-input { flex: 1; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 6px; }

/* Profile */
.academy-profile-header { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.academy-profile-header img { border-radius: 50%; }
.academy-profile-stats { color: #6b7280; font-size: 14px; }

.academy-login-prompt { padding: 16px; background: #f9fafb; border-radius: 8px; }

/* Admin: quiz builder */
#academy-questions-wrap .academy-question-row label { font-weight: normal; }

/* Locked (drip) curriculum items */
.academy-curriculum-item.is-locked { opacity: 0.6; background: #fafafa; }
.academy-curriculum-item.is-locked em { color: #9ca3af; font-style: normal; font-size: 12px; }

/* Coupons */
.academy-coupon-box { display: flex; gap: 8px; margin: 12px 0 4px; max-width: 340px; }
.academy-coupon-input { flex: 1; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 6px; }
.academy-coupon-result { font-size: 13px; margin: 0 0 10px; }

/* Assignments */
#academy-assignment-form textarea { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px; font-family: inherit; }
#academy-assignment-result { margin-top: 10px; font-size: 14px; }
.academy-assignment-graded { background: #f4faf5; border-radius: 8px; padding: 14px; }

/* Certificate */
.academy-certificate { max-width: 720px; margin: 30px auto; }
.academy-certificate-inner {
	border: 3px double #2F5FE0;
	border-radius: 12px;
	padding: 50px 40px;
	text-align: center;
	background: #fefefe;
}
.academy-certificate-kicker { letter-spacing: 2px; text-transform: uppercase; color: #6b7280; font-size: 13px; }
.academy-certificate-name { font-size: 32px; margin: 10px 0; color: #111827; }
.academy-certificate-text { font-size: 16px; color: #374151; }
.academy-certificate-date { color: #6b7280; font-size: 13px; margin-top: 24px; }
.academy-certificate-code { color: #9ca3af; font-size: 12px; }
.academy-certificate-print { text-align: center; margin-top: 16px; }
@media print {
	.academy-certificate-print { display: none; }
}

/* Instructor dashboard */
.academy-grading-list { display: flex; flex-direction: column; gap: 14px; }
.academy-grading-item { border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; }
.academy-submission-text { background: #fafbfc; padding: 10px; border-radius: 6px; font-size: 14px; }
.academy-grade-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.academy-grade-input { width: 100px; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 6px; }
.academy-feedback-input { flex: 1; min-width: 180px; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 6px; }

/* Gradebook */
.academy-gradebook-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.academy-gradebook-table th, .academy-gradebook-table td { border: 1px solid #e5e7eb; padding: 8px 12px; text-align: left; }
.academy-gradebook-table th { background: #f9fafb; }
