/**!
 * @file ViewThemeLessons.css
 * @desc Modern shell for esl_viewThemeLessons.php (the "lessons in this
 *       theme" view). Mirrors the View Curriculum layout: hero with cover
 *       image + name + lesson count, a list of horizontal lesson cards
 *       (shared LessonCard.css), and a right sidebar (shared LessonListPanel.css).
 *
 *       Scoped under body.view-theme so nothing leaks.
 */
/************************************************************************************************************************************/

body.view-theme {
	--vt-brand:      var(--sw-brand-color, #0e6630);
	--vt-brand-dark: #084a22;
	--vt-brand-soft: #e8f3ec;
	--vt-brand-tint: #f4f9f5;
	--vt-ink:        #14211a;
	--vt-ink-soft:   #4a5b51;
	--vt-card:       #ffffff;
	--vt-border:     #e0e8e3;
	--vt-radius:     14px;
	--vt-radius-sm:  10px;
	--vt-max-width:  1180px;
	--vt-shadow:     0 1px 2px rgba(20, 50, 30, 0.04),
	                 0 8px 28px rgba(20, 50, 30, 0.08);
	--vt-shadow-sm:  0 1px 2px rgba(20, 50, 30, 0.04),
	                 0 4px 14px rgba(20, 50, 30, 0.06);

	background-color: var(--vt-brand-tint) !important;
}

/* ------------------------------------------------------------------ */
/* PAGE + GRID                                                         */
/* ------------------------------------------------------------------ */

body.view-theme .theme-page {
	max-width: var(--vt-max-width);
	margin: 0 auto;
	padding: 18px 16px 32px 16px;
}

body.view-theme .theme-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	align-items: start;
}

/* ------------------------------------------------------------------ */
/* MAIN ARTICLE CARD                                                   */
/* ------------------------------------------------------------------ */

body.view-theme .theme-article {
	background: var(--vt-card);
	border-radius: var(--vt-radius);
	box-shadow: var(--vt-shadow);
	overflow: hidden;
	min-width: 0;
}

/* --- Hero (cover image, eyebrow, title, lesson count) --- */

body.view-theme .theme-hero__image {
	width: 100%;
	aspect-ratio: 21 / 9;
	background: var(--vt-brand-soft);
	overflow: hidden;
}

body.view-theme .theme-hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

body.view-theme .theme-hero__image--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--vt-brand);
	font-size: 3rem;
}

body.view-theme .theme-hero {
	padding: 26px 32px 22px 32px;
	border-bottom: 1px solid var(--vt-border);
	background: linear-gradient(180deg, var(--vt-brand-tint) 0%, var(--vt-card) 100%);
}

body.view-theme .theme-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--vt-brand-dark);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--vt-brand-soft);
	margin-bottom: 14px;
}

body.view-theme .theme-hero__title {
	font-size: clamp(1.5rem, 2.2vw, 1.95rem);
	font-weight: 800;
	margin: 0 0 6px 0;
	color: var(--vt-ink);
	line-height: 1.2;
	letter-spacing: -0.01em;
	word-break: break-word;
}

body.view-theme .theme-hero__translation {
	font-size: 1.05rem;
	color: var(--vt-ink-soft);
	font-weight: 600;
	margin: 0 0 12px 0;
}

body.view-theme .theme-hero__meta {
	margin: 8px 0 0 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--vt-ink-soft);
}

body.view-theme .theme-hero__meta i {
	color: var(--vt-brand);
}

body.view-theme .theme-hero__intro {
	margin: 14px 0 0 0;
	font-size: 0.96rem;
	line-height: 1.6;
	color: var(--vt-ink-soft);
}

body.view-theme .theme-hero__intro p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* LESSONS LIST                                                        */
/* ------------------------------------------------------------------ */

body.view-theme .theme-lessons {
	padding: 22px 32px 30px 32px;
}

body.view-theme .theme-lessons__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

body.view-theme .theme-lessons__title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--vt-ink);
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

body.view-theme .theme-lessons__title i {
	color: var(--vt-brand);
	font-size: 1rem;
}

body.view-theme .theme-lessons__count {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--vt-brand-dark);
	background: var(--vt-brand-soft);
	padding: 3px 12px;
	border-radius: 999px;
}

body.view-theme .theme-lessons__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

body.view-theme .theme-lessons__empty {
	padding: 32px 24px;
	text-align: center;
	color: var(--vt-ink-soft);
	background: var(--vt-brand-tint);
	border: 1px dashed var(--vt-border);
	border-radius: var(--vt-radius-sm);
}

/* ------------------------------------------------------------------ */
/* RIGHT SIDEBAR                                                       */
/* The .ll-panel* component handles inner styling — this just wraps.   */
/* ------------------------------------------------------------------ */

body.view-theme .theme-sidebar {
	display: block;
}

/* ------------------------------------------------------------------ */
/* RESPONSIVE                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	body.view-theme .theme-content {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	body.view-theme .theme-hero {
		padding: 22px 22px 18px 22px;
	}
	body.view-theme .theme-lessons {
		padding: 20px 22px 26px 22px;
	}
	body.view-theme .theme-hero__image {
		aspect-ratio: 16 / 9;
	}
}
