/**!
 * @file ListAll.css
 * @desc Shared shell for esl_listSeries.php and esl_listThemes.php — the
 *       "browse all" landing pages linked from the guest nav. Card grid of
 *       items, each with image / title / short description / View link.
 *
 *       Scoped under body.list-all so nothing leaks.
 */
/************************************************************************************************************************************/

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

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

/* ------------------------------------------------------------------ */
/* PAGE LAYOUT                                                         */
/* ------------------------------------------------------------------ */

body.list-all .la-page {
	max-width: var(--la-max-width);
	margin: 0 auto;
	padding: 18px 16px 32px 16px;
}

body.list-all .la-article {
	background: var(--la-card);
	border-radius: var(--la-radius);
	box-shadow: var(--la-shadow);
	overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* HERO                                                                */
/* ------------------------------------------------------------------ */

body.list-all .la-hero {
	padding: 28px 32px 24px 32px;
	background: linear-gradient(180deg, var(--la-brand-tint) 0%, var(--la-card) 100%);
	border-bottom: 1px solid var(--la-border);
}

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

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

body.list-all .la-hero__subtitle {
	margin: 0;
	font-size: 0.95rem;
	color: var(--la-ink-soft);
	line-height: 1.55;
}

body.list-all .la-hero__count {
	display: inline-block;
	margin-left: 8px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--la-brand-dark);
	background: var(--la-brand-soft);
	padding: 3px 12px;
	border-radius: 999px;
	vertical-align: middle;
}

/* ------------------------------------------------------------------ */
/* CARD GRID                                                           */
/* ------------------------------------------------------------------ */

body.list-all .la-body {
	padding: 28px 32px 32px 32px;
}

body.list-all .la-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

body.list-all .la-card {
	display: flex;
	flex-direction: column;
	background: var(--la-card);
	border: 1px solid var(--la-border);
	border-radius: var(--la-radius-sm);
	overflow: hidden;
	text-decoration: none;
	color: var(--la-ink);
	transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

body.list-all .la-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--la-shadow-sm);
	border-color: var(--la-brand);
	color: var(--la-ink);
	text-decoration: none;
}

body.list-all .la-card__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--la-brand-soft);
	overflow: hidden;
	position: relative;
}

body.list-all .la-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

body.list-all .la-card:hover .la-card__image img {
	transform: scale(1.04);
}

body.list-all .la-card__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--la-brand);
	font-size: 2rem;
}

body.list-all .la-card__body {
	padding: 16px 18px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

body.list-all .la-card__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--la-ink);
	line-height: 1.3;
	word-break: break-word;
}

body.list-all .la-card__title-translation {
	margin: 0;
	font-size: 0.84rem;
	color: var(--la-ink-soft);
	font-weight: 500;
	line-height: 1.3;
}

body.list-all .la-card__intro {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--la-ink-soft);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

body.list-all .la-card__cta {
	margin-top: 4px;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--la-brand-dark);
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

body.list-all .la-card:hover .la-card__cta {
	color: var(--la-brand);
}

/* Empty state */

body.list-all .la-empty {
	text-align: center;
	padding: 44px 28px;
	background: var(--la-brand-tint);
	border: 1px dashed var(--la-border);
	border-radius: var(--la-radius-sm);
	color: var(--la-ink-soft);
}

body.list-all .la-empty i {
	display: block;
	font-size: 2rem;
	color: var(--la-brand);
	margin-bottom: 12px;
}

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

@media (max-width: 720px) {
	body.list-all .la-hero {
		padding: 22px 22px 18px 22px;
	}
	body.list-all .la-body {
		padding: 22px 22px 28px 22px;
	}
}

/* ------------------------------------------------------------------ */
/* SEARCH PAGE EXTRAS — hero search input + section group headers     */
/* ------------------------------------------------------------------ */

body.list-all .la-search {
	display: flex;
	align-items: stretch;
	margin: 14px 0 0 0;
	background: var(--la-card);
	border: 1.5px solid var(--la-border);
	border-radius: 999px;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.list-all .la-search:focus-within {
	border-color: var(--la-brand);
	box-shadow: 0 0 0 4px var(--la-brand-soft);
}

body.list-all .la-search__icon {
	display: inline-flex;
	align-items: center;
	padding: 0 6px 0 20px;
	color: var(--la-brand);
	font-size: 1.02rem;
}

body.list-all .la-search__input {
	flex: 1;
	border: none;
	outline: none;
	padding: 12px 16px;
	font-size: 1rem;
	background: transparent;
	color: var(--la-ink);
	font-family: inherit;
	min-width: 0;
}

body.list-all .la-search__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 24px;
	background: var(--la-brand);
	color: #fff;
	border: none;
	font-weight: 600;
	font-size: 0.96rem;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.12s ease;
}

body.list-all .la-search__btn:hover { background: var(--la-brand-dark); }

/* Group section on the search results page */
body.list-all .la-section {
	margin-bottom: 28px;
}

body.list-all .la-section:last-child { margin-bottom: 0; }

body.list-all .la-section__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px 0;
}

body.list-all .la-section__title {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--la-brand-dark);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body.list-all .la-section__count {
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--la-brand-dark);
	background: var(--la-brand-soft);
	padding: 2px 10px;
	border-radius: 999px;
}

/* Highlight matched search terms in result cards */
body.list-all .la-card mark {
	background: #fff3a3;
	color: inherit;
	padding: 0 2px;
	border-radius: 2px;
	font-weight: 600;
}
