/**
 * VELYON Foundation LMS - Course Catalog Styles
 *
 * Depends on vel-fdn-lms-public.css being loaded first (it declares the
 * shared --vel-fdn-* brand palette variables at :root — reused here
 * rather than redeclared, same convention as the landing page stylesheet).
 */

.vel-fdn-catalog {
	max-width: 1100px;
	margin: 0 auto;
	padding: 12px 20px 48px;
}

/* ---------------------------------------------------------------- */
/* Search                                                             */
/* ---------------------------------------------------------------- */

.vel-fdn-catalog-search-wrap {
	margin-bottom: 28px;
}

.vel-fdn-catalog-search {
	width: 100%;
	max-width: 420px;
	padding: 12px 16px;
	font-size: 15px;
	color: var(--velyon-text);
	background: var(--velyon-surface);
	border: 1px solid var(--velyon-border);
	border-radius: 999px;
}

.vel-fdn-catalog-search:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--velyon-accent) 35%, transparent);
}

.vel-fdn-catalog-search::placeholder {
	color: color-mix(in srgb, var(--velyon-text) 35%, transparent);
}

.vel-fdn-catalog-empty,
.vel-fdn-catalog-no-results {
	color: var(--velyon-text-muted);
	font-size: 15px;
}

/* ---------------------------------------------------------------- */
/* Grid + cards                                                       */
/* ---------------------------------------------------------------- */

.vel-fdn-catalog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

.vel-fdn-catalog-card {
	display: flex;
	flex-direction: column;
	background: var(--velyon-surface);
	border: 1px solid var(--velyon-border);
	border-radius: var(--velyon-radius-s);
	overflow: hidden;
	transition: border-color .15s ease;
}

.vel-fdn-catalog-card:hover {
	border-color: color-mix(in srgb, var(--velyon-accent) 35%, transparent);
}

.vel-fdn-catalog-card-media {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--velyon-surface-alt);
}

.vel-fdn-catalog-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vel-fdn-catalog-card-media-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--velyon-surface-alt) 0%, var(--velyon-surface) 100%);
}

.vel-fdn-catalog-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 20px;
}

.vel-fdn-catalog-card-title {
	font-size: 17px;
	line-height: 1.35;
	margin: 0 0 8px;
}

.vel-fdn-catalog-card-title a {
	color: var(--velyon-text);
	text-decoration: none;
}

.vel-fdn-catalog-card-title a:hover {
	color: var(--velyon-accent);
}

.vel-fdn-catalog-card-tagline {
	font-size: 13px;
	color: var(--velyon-text-muted);
	margin: 0 0 14px;
	line-height: 1.5;
}

.vel-fdn-catalog-card-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}

.vel-fdn-catalog-card-badge {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--velyon-accent-deep);
	background: color-mix(in srgb, var(--velyon-accent) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--velyon-accent) 40%, transparent);
	border-radius: 999px;
	padding: 4px 10px;
}

.vel-fdn-catalog-card-footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px solid var(--velyon-border);
}

.vel-fdn-catalog-card-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 12px;
}

.vel-fdn-catalog-card-price {
	font-weight: 700;
	color: var(--velyon-accent);
	font-size: 14px;
}

.vel-fdn-catalog-card-enrolled {
	color: color-mix(in srgb, var(--velyon-text) 35%, transparent);
}

.vel-fdn-catalog-card-cta {
	flex-shrink: 0;
	display: inline-block;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--velyon-text);
	border: 1px solid color-mix(in srgb, var(--velyon-accent) 35%, transparent);
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
}

.vel-fdn-catalog-card-cta:hover {
	background: var(--velyon-accent);
	color: var(--velyon-on-accent);
}
