/* ============================================================
   Vineyard Steps LMS — 2026 direction
   Dark canvas, glass panels, glow accents (crimson + blue), Space
   Grotesk display / Inter body. Applied consistently across every
   screen — quiz, dashboard, course, lesson, instructor portal.
   ============================================================ */

.vs-app-shell { margin: 0; padding: 0; background: #0a0c12; }

.vs-shell {
	--bg: #0a0c12;
	--navy: #1a2744;
	--crimson: #9b2335;
	--crimson-bright: #c9425a;
	--glow-blue: #3d5aff;
	--glow-red: #ff3d5a;
	--glass: rgba(255,255,255,0.04);
	--glass-2: rgba(255,255,255,0.07);
	--glass-line: rgba(255,255,255,0.09);
	--text: #f4f5f7;
	--muted: #8a8fa3;
	font-family: 'Inter', -apple-system, sans-serif;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	position: relative;
	overflow-x: hidden;
}
.vs-shell * { box-sizing: border-box; }
.vs-shell ::selection { background: var(--crimson); color: #fff; }

/* Ambient glow field behind every screen */
.vs-shell::before, .vs-shell::after {
	content: ''; position: fixed; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(70px);
}
.vs-shell::before { top: -15%; left: -10%; width: 55%; height: 55%; background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%); opacity: .12; }
.vs-shell::after { bottom: -20%; right: -10%; width: 50%; height: 50%; background: radial-gradient(circle, var(--glow-red) 0%, transparent 70%); opacity: .12; }
.vs-shell > * { position: relative; z-index: 1; }

.vs-brand-mark {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 17px;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 8px;
}
.vs-brand-mark::before {
	content: '';
	width: 8px; height: 8px; border-radius: 2px;
	background: linear-gradient(135deg, var(--glow-blue), var(--crimson));
	box-shadow: 0 0 10px var(--crimson);
	flex-shrink: 0;
}

.vs-eyebrow {
	font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600;
	display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.vs-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 8px var(--crimson); }

/* ---------- Buttons ---------- */
.vs-btn {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px;
	padding: 14px 28px; border-radius: 10px; border: 1px solid transparent;
	cursor: pointer; text-decoration: none; transition: .2s ease;
}
.vs-btn-primary {
	background: linear-gradient(135deg, var(--crimson), var(--crimson-bright));
	color: #fff;
	box-shadow: 0 0 24px rgba(155,35,53,.4), 0 4px 12px rgba(0,0,0,.3);
}
.vs-btn-primary:hover { box-shadow: 0 0 36px rgba(155,35,53,.6), 0 4px 16px rgba(0,0,0,.4); transform: translateY(-1px); }
.vs-btn-ghost {
	background: var(--glass); color: var(--text); border-color: var(--glass-line); backdrop-filter: blur(8px);
}
.vs-btn-ghost:hover { background: var(--glass-2); border-color: rgba(255,255,255,.2); }
.vs-btn-sm { padding: 9px 18px; font-size: 11px; }

/* ============ QUIZ / REGISTER ============ */
.vs-quiz-shell, .vs-register-shell {
	min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px;
}
.vs-quiz-card {
	max-width: 600px; width: 100%;
	background: var(--glass); border: 1px solid var(--glass-line); border-radius: 20px;
	padding: 48px; backdrop-filter: blur(20px);
}
.vs-quiz-card .vs-brand-mark { margin-bottom: 30px; }
.vs-quiz-card h1 { font-family: 'Space Grotesk', sans-serif; font-size: 30px; color: #fff; margin: 0 0 12px; line-height: 1.25; }
.vs-quiz-card p { color: var(--muted); line-height: 1.7; font-size: 14px; }
.vs-quiz-progress { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.vs-quiz-card h2 { font-family: 'Space Grotesk', sans-serif; font-size: 24px; color: #fff; margin: 0 0 26px; line-height: 1.3; }

.vs-quiz-option {
	display: flex; align-items: center; gap: 14px; padding: 16px 18px;
	border: 1px solid var(--glass-line); border-radius: 12px; margin-bottom: 10px; cursor: pointer;
	background: rgba(255,255,255,.02); transition: .15s ease;
}
.vs-quiz-option:hover { border-color: rgba(255,255,255,.25); background: var(--glass-2); }
.vs-quiz-option:has(input:checked) { border-color: var(--crimson); background: rgba(155,35,53,.1); box-shadow: 0 0 0 1px var(--crimson), 0 0 20px rgba(155,35,53,.15); }
.vs-quiz-option input { accent-color: var(--crimson); width: 17px; height: 17px; }
.vs-quiz-option span { font-size: 14px; color: var(--text); }

.vs-quiz-nav { display: flex; gap: 12px; margin-top: 28px; justify-content: flex-end; }
.vs-shake { animation: vs-shake .3s; }
@keyframes vs-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.vs-result-track { font-family: 'Space Grotesk', sans-serif; color: #fff; font-size: 26px; margin: 8px 0 20px; }

/* ---------- Forms ---------- */
.vs-quiz-card form label, .vs-shell form label {
	display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 20px;
	letter-spacing: .02em;
}
.vs-shell input[type=text], .vs-shell input[type=email], .vs-shell input[type=number],
.vs-shell input[type=date], .vs-shell select, .vs-shell textarea {
	display: block; width: 100%; margin-top: 8px; padding: 13px 15px;
	border: 1px solid var(--glass-line); border-radius: 10px;
	font-family: 'Inter', sans-serif; font-size: 14px; background: rgba(255,255,255,.03); color: var(--text);
	transition: border-color .15s ease;
}
.vs-shell input::placeholder, .vs-shell textarea::placeholder { color: rgba(244,245,247,.35); }
.vs-shell input:focus, .vs-shell textarea:focus, .vs-shell select:focus {
	outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(155,35,53,.15);
}
.vs-form-error { color: #ff8fa0; font-size: 13px; margin-top: 8px; }

/* ============ DASHBOARD ============ */
.vs-dashboard-shell, .vs-instructor-shell { display: flex; min-height: 100vh; }
.vs-sidebar { width: 260px; flex-shrink: 0; padding: 36px 26px; border-right: 1px solid var(--glass-line); }
.vs-sidebar .vs-brand-mark { margin-bottom: 44px; }
.vs-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.vs-sidebar-nav a {
	color: var(--muted); text-decoration: none; padding: 11px 12px; font-size: 14px; font-weight: 500;
	border-radius: 8px; transition: .15s ease;
}
.vs-sidebar-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.vs-sidebar-nav a.active { color: #fff; background: var(--glass); border: 1px solid var(--glass-line); }
.vs-instructor-link { color: #ff8fa0 !important; font-weight: 600 !important; margin-top: 16px; }

.vs-main { flex: 1; padding: 52px 60px; max-width: 1200px; }
.vs-main-header h1 { font-family: 'Space Grotesk', sans-serif; font-size: 32px; color: #fff; margin: 0 0 6px; }
.vs-main-header { margin-bottom: 44px; }

.vs-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-bottom: 56px; }
.vs-course-card {
	background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px;
	text-decoration: none; color: var(--text); display: block; overflow: hidden;
	backdrop-filter: blur(16px); transition: .2s ease;
}
.vs-course-card:hover { border-color: rgba(255,255,255,.2); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.vs-course-card > img, .vs-course-card > .vs-course-thumb-fallback {
	width: 100%; height: 110px; object-fit: cover; display: block;
	background: linear-gradient(135deg, rgba(61,90,255,.25), rgba(155,35,53,.25));
}
.vs-course-card .vs-card-body { padding: 20px 22px; }
.vs-course-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: #fff; margin: 0 0 14px; }
.vs-progress-bar { background: rgba(255,255,255,.08); height: 4px; border-radius: 4px; overflow: hidden; }
.vs-progress-bar-lg { height: 5px; max-width: 420px; margin-top: 18px; }
.vs-progress-fill { background: linear-gradient(90deg, var(--crimson), var(--crimson-bright)); height: 100%; border-radius: 4px; box-shadow: 0 0 10px rgba(155,35,53,.5); }
.vs-progress-label { font-size: 11px; color: var(--muted); margin-top: 9px; display: block; }

.vs-cert-section h2 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; color: #fff; margin-bottom: 18px; }
.vs-cert-list { list-style: none; padding: 0; }
.vs-cert-list li {
	display: flex; align-items: center; gap: 16px; padding: 16px 20px;
	background: var(--glass); border: 1px solid var(--glass-line); border-radius: 12px; margin-bottom: 8px;
	backdrop-filter: blur(12px);
}
.vs-cert-list li strong { flex: 1; color: #fff; font-weight: 600; font-size: 14px; }
.vs-cert-number { color: var(--muted); font-size: 12px; }
.vs-empty-state { color: var(--muted); font-style: italic; font-size: 14px; }

/* ============ COURSE / LESSON ============ */
.vs-course-shell { max-width: 780px; margin: 0 auto; padding: 0 0 80px; }
.vs-course-header { padding: 70px 40px 50px; text-align: center; }
.vs-course-header h1 { font-family: 'Space Grotesk', sans-serif; font-size: 36px; color: #fff; margin: 0 0 14px; }
.vs-course-header img { display: none; }
.vs-course-desc { color: var(--muted); max-width: 560px; margin: 0 auto 24px; line-height: 1.7; }
.vs-course-header .vs-progress-bar-lg { margin: 0 auto; }

.vs-lesson-list { list-style: none; padding: 0; margin: 0 40px; }
.vs-lesson-item {
	display: flex; align-items: center; gap: 18px; padding: 20px 18px;
	background: var(--glass); border: 1px solid var(--glass-line); border-radius: 12px; margin-bottom: 8px;
	backdrop-filter: blur(12px);
}
.vs-lesson-item.is-locked { opacity: .4; }
.vs-lesson-number {
	background: rgba(255,255,255,.05); color: #fff; border: 1px solid var(--glass-line);
	width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-size: 13px;
}
.vs-lesson-item a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.vs-lesson-item a:hover { color: #ff8fa0; }

.vs-lesson-shell { display: flex; gap: 56px; max-width: 1140px; margin: 0 auto; padding: 60px 24px; }
.vs-lesson-main { flex: 1; min-width: 0; }
.vs-lesson-aside { width: 320px; flex-shrink: 0; }
.vs-back-link { color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.vs-back-link:hover { color: #ff8fa0; }
.vs-lesson-main h1 { font-family: 'Space Grotesk', sans-serif; font-size: 34px; color: #fff; margin: 16px 0 28px; }
.vs-lesson-media video, .vs-lesson-media audio, .vs-lesson-media img { width: 100%; margin: 0 0 28px; border-radius: 16px; border: 1px solid var(--glass-line); }
.vs-youtube-wrap { position: relative; width: 100%; padding-top: 56.25%; margin: 0 0 28px; background: #000; border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-line); }
.vs-youtube-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vs-lesson-content { line-height: 1.85; color: #d4d6de; font-size: 16px; }
.vs-lesson-content p { margin: 0 0 18px; }
#vs-mark-complete { margin-top: 32px; }

.vs-notes-panel, .vs-messaging-panel {
	background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px;
	padding: 24px; margin-bottom: 22px; backdrop-filter: blur(16px);
}
.vs-notes-panel h3, .vs-messaging-panel h3 {
	font-family: 'Inter', sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
	font-weight: 600; color: var(--muted); margin: 0 0 16px;
}
.vs-notes-panel textarea { min-height: 110px; }
#vs-note-status { font-size: 11px; color: var(--muted); margin-top: 6px; display: block; }
.vs-thread { max-height: 240px; overflow-y: auto; margin-bottom: 14px; }
.vs-msg { padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; font-size: 13px; line-height: 1.5; }
.vs-msg-mine { background: linear-gradient(135deg, var(--crimson), var(--crimson-bright)); color: #fff; margin-left: 16%; }
.vs-msg-theirs { background: rgba(255,255,255,.06); color: var(--text); margin-right: 16%; }

/* ============ INSTRUCTOR PORTAL ============ */
.vs-builder-header { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.vs-builder-header input[type=text] {
	flex: 1; min-width: 220px; font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 600;
	border: none; border-bottom: 2px solid var(--glass-line); padding: 8px 2px; background: transparent; color: #fff;
	margin-top: 0;
}
.vs-builder-header input[type=text]:focus { border-bottom-color: var(--crimson); outline: none; }
.vs-inline-check { display: flex !important; align-items: center; gap: 7px; font-weight: 400 !important; color: var(--muted); font-size: 13px; }
.vs-builder-lesson-list { list-style: none; padding: 0; margin-bottom: 40px; }
.vs-builder-lesson-list li {
	padding: 16px 20px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 12px;
	margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; cursor: grab;
	backdrop-filter: blur(12px);
}
.vs-cohort-card {
	padding: 16px 20px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 12px;
	margin-bottom: 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: #fff; transition: .15s ease;
	backdrop-filter: blur(12px);
}
.vs-cohort-card:hover { border-color: rgba(255,255,255,.2); }

.vs-modal { position: fixed; inset: 0; background: rgba(4,5,9,.75); align-items: center; justify-content: center; z-index: 999; backdrop-filter: blur(4px); }
.vs-modal-inner {
	background: #12141c; border: 1px solid var(--glass-line); border-radius: 20px;
	padding: 36px; width: 480px; max-height: 85vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.vs-modal-inner h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; color: #fff; margin: 0 0 20px; }
.vs-modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 16px; }

/* ---------- Shortcode embeds ---------- */
.vs-embed-continue {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 22px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 12px;
	backdrop-filter: blur(12px);
}

@media (max-width: 782px) {
	.vs-dashboard-shell, .vs-instructor-shell, .vs-lesson-shell { flex-direction: column; }
	.vs-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--glass-line); }
	.vs-main { padding: 32px 24px; }
	.vs-lesson-aside { width: 100%; }
	.vs-quiz-card { padding: 36px 26px; }
	.vs-course-header { padding: 48px 24px 36px; }
	.vs-lesson-list { margin: 0 20px; }
}
