/* =========================================================================
   Student Dashboard — Badges showcase ([lh_badges]).
   Enqueued from inc/lighthouse-badges.php (only where the shortcode is used).
   Scoped to .lh-badges. Rules: colours only from --awb-* global vars; NO
   font-sizes (type inherits — Ben sizes later); layout lives on this
   component's own classes (the column-child rule is for Avada column classes).
   ========================================================================= */
.lh-badges
{
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* ---- header row ---- */
.lh-badges-head
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.lh-badges-title
{
	font-weight: 800;
	color: var(--awb-custom_color_1);
}
.lh-badges-count
{
	color: var(--awb-color5);
	background: var(--awb-color2);
	padding: 4px 12px;
	border-radius: 999px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ---- "next badge" spotlight ---- */
.lh-badges-spotlight
{
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 20px 24px;
	border: 2px solid var(--awb-color4);
	border-radius: 18px;
	background: var(--awb-color2);
}
.lh-bs-icon
{
	flex: 0 0 auto;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: var(--awb-color1);
	display: grid;
	place-items: center;
	overflow: hidden;
}
.lh-bs-icon img
{
	width: 76%;
	height: 76%;
	object-fit: contain;
}
.lh-bs-body
{
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.lh-bs-eyebrow
{
	color: var(--awb-color4);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.lh-bs-name
{
	font-weight: 800;
	color: var(--awb-custom_color_1);
}
.lh-bs-req
{
	color: var(--awb-custom_color_12);
}
.lh-bs-prow
{
	display: flex;
	justify-content: space-between;
	font-weight: 700;
	color: var(--awb-custom_color_1);
	margin-top: 8px;
}
.lh-bs-bar
{
	height: 12px;
	border-radius: 999px;
	background: var(--awb-color3);
	overflow: hidden;
	margin-top: 6px;
}
.lh-bs-fill
{
	height: 100%;
	border-radius: 999px;
	background: var(--awb-color4);
}
.lh-bs-encourage
{
	color: var(--awb-color4);
	font-weight: 700;
	margin-top: 8px;
}

/* ---- Earned / Coming up / Full collection sections ---- */
.lh-badges-section
{
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.lh-badges-label
{
	color: var(--awb-custom_color_12);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 800;
	border-top: 1px solid var(--awb-color3);
	padding-top: 14px;
}
.lh-badges-row
{
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

/* ---- a single badge chip ---- */
.lh-badge
{
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 116px;
	min-width: 0;
	gap: 5px;
}
.lh-badge-ic
{
	position: relative;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--awb-color2);
	display: grid;
	place-items: center;
	overflow: hidden;
}
.lh-badge-ic img
{
	width: 74%;
	height: 74%;
	object-fit: contain;
}
.lh-badge-check
{
	position: absolute;
	top: -2px;
	right: -2px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--awb-color5);
	color: var(--awb-color1);
	display: grid;
	place-items: center;
	font-weight: 800;
	border: 2px solid var(--awb-color1);
}
.lh-badge-name
{
	align-self: stretch;
	font-weight: 700;
	color: var(--awb-custom_color_1);
	line-height: 1.2;
	overflow-wrap: break-word;
	word-break: normal;
}
.lh-badge-pts
{
	font-weight: 700;
	text-transform: uppercase;
	color: var(--awb-color5);
}
.lh-badge--locked .lh-badge-ic
{
	filter: grayscale( 1 );
	opacity: 0.5;
}
.lh-badge--locked .lh-badge-name,
.lh-badge--locked .lh-badge-pts
{
	color: var(--awb-custom_color_12);
}

/* full collection = same chip width (clean text), just a smaller icon */
.lh-badges-row--sm .lh-badge-ic
{
	width: 52px;
	height: 52px;
}

/* ---- responsive ---- */
@media ( max-width: 640px )
{
	.lh-badges-spotlight
	{
		flex-direction: column;
		text-align: center;
	}
	.lh-badges-row
	{
		gap: 14px;
		justify-content: center;
	}
}
