/**
 * SCC Student Experience — Front-end Styles
 * Consistent with Tutor LMS design language + SCC branding.
 *
 * Brand colors:
 *   Navy  : #1B2B5B
 *   Gold  : #C9A84C
 *   Green : #27500A
 *
 * @package SCC_Student_Experience
 */

:root {
	--scc-navy:       #1B2B5B;
	--scc-gold:       #C9A84C;
	--scc-green:      #27500A;
	--scc-green-lite: #EAF3DE;
	--scc-danger:     #791F1F;
	--scc-danger-lite:#FCEBEB;
	--scc-border:     #e3e7ef;
	--scc-bg:         #f7f8fc;
	--scc-white:      #ffffff;
	--scc-text:       #1f2937;
	--scc-muted:      #6b7280;
	--scc-radius:     10px;
	--scc-radius-sm:  6px;
	--scc-shadow:     0 2px 12px rgba(27,43,91,.08);
	--scc-shadow-md:  0 4px 20px rgba(27,43,91,.12);
	--scc-transition: .2s ease;
}

/* ── SHARED TAB HEADER ──────────────────────────────── */
.scc-tab-header {
	margin-bottom: 28px;
}

.scc-tab-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 22px;
	font-weight: 700;
	color: var(--scc-navy);
	margin: 0 0 6px;
}

.scc-tab-title [class*="tutor-icon"] {
	font-size: 22px;
	color: var(--scc-gold);
}

.scc-tab-subtitle {
	color: var(--scc-muted);
	font-size: 14px;
	margin: 0;
}

.scc-section-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--scc-navy);
	margin: 32px 0 16px;
}

/* ── SHARED BUTTONS ─────────────────────────────────── */
.scc-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	border-radius: var(--scc-radius-sm);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background var(--scc-transition), color var(--scc-transition), transform var(--scc-transition), box-shadow var(--scc-transition);
	cursor: pointer;
	border: none;
	white-space: nowrap;
}

.scc-btn--continue {
	background: var(--scc-navy);
	color: var(--scc-white);
}
.scc-btn--continue:hover {
	background: #15224a;
	color: var(--scc-white);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(27,43,91,.25);
}

.scc-btn--enroll {
	background: var(--scc-gold);
	color: var(--scc-white);
}
.scc-btn--enroll:hover {
	background: #b8943e;
	color: var(--scc-white);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(201,168,76,.30);
}

.scc-btn--outline {
	background: transparent;
	color: var(--scc-navy);
	border: 1.5px solid var(--scc-border);
}
.scc-btn--outline:hover {
	border-color: var(--scc-navy);
	color: var(--scc-navy);
	background: var(--scc-bg);
}

.scc-btn--whatsapp {
	background: #25D366;
	color: var(--scc-white);
}
.scc-btn--whatsapp:hover {
	background: #1da851;
	color: var(--scc-white);
	transform: translateY(-1px);
}

/* ── EMPTY STATE ────────────────────────────────────── */
.scc-empty-state {
	text-align: center;
	padding: 48px 24px;
	color: var(--scc-muted);
}
.scc-empty-icon {
	font-size: 48px;
	display: block;
	margin-bottom: 12px;
	color: var(--scc-border);
}

/* ══════════════════════════════════════════════════════
   ALL COURSES TAB
══════════════════════════════════════════════════════ */
.scc-all-courses-wrap {
	padding: 4px 0;
}

.scc-course-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 22px;
}

/* Course card */
.scc-course-card {
	background: var(--scc-white);
	border: 1px solid var(--scc-border);
	border-radius: var(--scc-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--scc-transition), transform var(--scc-transition);
}
.scc-course-card:hover {
	box-shadow: var(--scc-shadow-md);
	transform: translateY(-2px);
}
.scc-course-card.is-enrolled {
	border-top: 3px solid var(--scc-navy);
}
.scc-course-card.not-enrolled {
	border-top: 3px solid var(--scc-gold);
}

/* Thumbnail */
.scc-course-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: var(--scc-navy);
}
.scc-course-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.scc-course-card:hover .scc-course-card__thumb img {
	transform: scale(1.03);
}
.scc-course-card__thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--scc-navy);
	color: rgba(255,255,255,.3);
	font-size: 48px;
}

/* Badges */
.scc-enrolled-badge,
.scc-price-badge,
.scc-free-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
}
.scc-enrolled-badge {
	background: var(--scc-green);
	color: var(--scc-white);
	display: flex;
	align-items: center;
	gap: 4px;
}
.scc-price-badge {
	background: var(--scc-gold);
	color: var(--scc-white);
}
.scc-free-badge {
	background: var(--scc-green);
	color: var(--scc-white);
}

/* Card body */
.scc-course-card__body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.scc-course-card__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}
.scc-course-card__title a {
	color: var(--scc-navy);
	text-decoration: none;
}
.scc-course-card__title a:hover {
	color: var(--scc-gold);
}
.scc-course-card__desc {
	font-size: 13px;
	color: var(--scc-muted);
	margin: 0 0 12px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Meta */
.scc-course-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}
.scc-meta-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: var(--scc-muted);
	font-weight: 600;
}
.scc-meta-item [class*="tutor-icon"] {
	font-size: 13px;
}

/* Progress */
.scc-progress-wrap {
	margin-bottom: 14px;
}
.scc-progress-bar {
	height: 6px;
	border-radius: 999px;
	background: var(--scc-border);
	overflow: hidden;
	margin-bottom: 4px;
}
.scc-progress-fill {
	height: 100%;
	background: var(--scc-navy);
	border-radius: 999px;
	transition: width .5s ease;
}
.scc-progress-label {
	font-size: 11px;
	color: var(--scc-muted);
	font-weight: 600;
}

/* Actions */
.scc-course-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 14px;
}

/* ── All Courses card — match the Enrolled (Tutor) card look ──────────── */
.scc-course-card--match { border-top: 1px solid var(--scc-border); border-radius: 6px; }
.scc-course-card--match .scc-course-card__thumb,
.scc-course-card--match .scc-course-card__thumb-placeholder {
	background: #eef0f2;
}
.scc-course-card--match .scc-course-card__thumb-placeholder { color: #c2c8d0; font-size: 40px; }
.scc-course-card--match .scc-course-card__title { font-weight: 700; }
.scc-progress-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 13px;
	color: var(--scc-text);
	font-weight: 600;
}
.scc-progress-top .scc-progress-pct { color: var(--scc-navy); }
.scc-course-card--match .scc-course-card__actions { padding-top: 16px; }
.scc-btn--match {
	flex: 1 1 100%;
	justify-content: center;
	background: #fff;
	color: var(--scc-navy);
	border: 1.5px solid var(--scc-navy);
	border-radius: 6px;
	padding: 11px 18px;
}
.scc-btn--match:hover { background: var(--scc-navy); color: #fff; }

/* Force the All Courses card to match the Enrolled (Tutor) card, overriding any
   site-wide custom CSS that adds a navy top stripe / serif title / hides the
   button. High specificity + !important so external rules can't win. */
.scc-all-courses-wrap .scc-course-card--match {
	border: 1px solid var(--scc-border) !important;
	border-radius: 10px !important;
}
.scc-all-courses-wrap .scc-course-card--match .scc-course-card__title,
.scc-all-courses-wrap .scc-course-card--match .scc-course-card__title a {
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
.scc-all-courses-wrap .scc-course-card--match .scc-course-card__actions,
.scc-all-courses-wrap .scc-course-card--match .scc-btn--match {
	display: flex !important;
}
.scc-all-courses-wrap .scc-course-card--match .scc-course-card__desc {
	display: -webkit-box !important;
}

/* ══════════════════════════════════════════════════════
   HELP CENTER TAB
══════════════════════════════════════════════════════ */
.scc-help-center-wrap {
	padding: 4px 0;
}

/* Announcement banner */
.scc-announcement-banner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-left: 4px solid #f59e0b;
	border-radius: var(--scc-radius-sm);
	padding: 14px 18px;
	margin-bottom: 24px;
	color: #92400e;
	font-size: 14px;
	line-height: 1.5;
}
.scc-announcement-banner [class*="tutor-icon"] {
	font-size: 18px;
	flex-shrink: 0;
	margin-top: 1px;
}

/* Contact cards */
.scc-contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	margin-bottom: 8px;
}
.scc-contact-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: var(--scc-white);
	border: 1px solid var(--scc-border);
	border-radius: var(--scc-radius);
	padding: 22px 20px;
	box-shadow: var(--scc-shadow);
}
.scc-contact-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.scc-contact-icon--email {
	background: #eff6ff;
	color: #2563eb;
	font-size: 22px;
}
.scc-contact-icon--whatsapp {
	background: #dcfce7;
	color: #16a34a;
}
.scc-contact-info h3 {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--scc-navy);
}
.scc-contact-info p {
	font-size: 13px;
	color: var(--scc-muted);
	margin: 0 0 12px;
}

/* FAQ Accordion */
.scc-faq-section {
	margin-top: 8px;
}
.scc-faq-accordion {
	border: 1px solid var(--scc-border);
	border-radius: var(--scc-radius);
	overflow: hidden;
}
.scc-faq-item {
	border-bottom: 1px solid var(--scc-border);
}
.scc-faq-item:last-child {
	border-bottom: none;
}
.scc-faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	background: var(--scc-white);
	border: none;
	cursor: pointer;
	text-align: left;
	font-size: 14px;
	font-weight: 600;
	color: var(--scc-navy);
	transition: background var(--scc-transition);
}
.scc-faq-question:hover,
.scc-faq-item.is-open .scc-faq-question {
	background: var(--scc-bg);
}
.scc-faq-chevron {
	flex-shrink: 0;
	color: var(--scc-muted);
	transition: transform .25s ease;
}
.scc-faq-item.is-open .scc-faq-chevron {
	transform: rotate(180deg);
	color: var(--scc-navy);
}
.scc-faq-answer {
	padding: 0 20px 16px;
	background: var(--scc-bg);
}
.scc-faq-answer p {
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--scc-text);
	line-height: 1.65;
}

/* ══════════════════════════════════════════════════════
   LESSON NAVIGATION BAR
══════════════════════════════════════════════════════ */
.scc-lesson-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 16px;
	background: var(--scc-white);
	border: 1px solid var(--scc-border);
	border-radius: var(--scc-radius-sm);
	margin-bottom: 0;
	flex-wrap: wrap;
}
.scc-lesson-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 600;
	color: var(--scc-muted);
	text-decoration: none;
	padding: 4px 8px;
	border-radius: var(--scc-radius-sm);
	transition: background var(--scc-transition), color var(--scc-transition);
}
.scc-lesson-nav__link:hover {
	background: var(--scc-bg);
	color: var(--scc-navy);
}
.scc-lesson-nav__link--course {
	color: var(--scc-navy);
	font-weight: 700;
}
.scc-lesson-nav__link--course:hover {
	color: var(--scc-gold);
}
.scc-lesson-nav__sep {
	color: var(--scc-border);
	font-size: 14px;
	user-select: none;
}
.scc-lesson-nav__arrow,
.scc-lesson-nav__icon {
	flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 680px) {
	.scc-course-grid {
		grid-template-columns: 1fr;
	}
	.scc-contact-grid {
		grid-template-columns: 1fr;
	}
	.scc-contact-card {
		flex-direction: column;
	}
	.scc-course-card__actions {
		flex-direction: column;
	}
	.scc-btn {
		justify-content: center;
		width: 100%;
	}
	.scc-lesson-nav {
		padding: 8px 12px;
	}
}

/* ── COURSE PAGE NAV — extra spacing below ──────────── */
.tutor-course-single-wrapper .scc-lesson-nav,
.tutor-single-course .scc-lesson-nav {
	margin-bottom: 20px;
}
