/* ==========================================================================
   Advieskeuze Badge — Stylesheet
   ========================================================================== */

.ak-badge {
	display: inline-block;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1;
}

.ak-badge__link {
	display: inline-block;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.15s ease;
}

.ak-badge__link:hover,
.ak-badge__link:focus {
	opacity: 0.85;
	text-decoration: none;
}

.ak-badge__inner {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 12px 18px;
	background: #ffffff;
	border: 1px solid #e0e4ea;
	border-radius: 8px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

/* ---- Left column: logo + stars ---- */

.ak-badge__left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.ak-badge__logo {
	display: block;
	line-height: 0;
}

/* ---- Stars ---- */

.ak-stars {
	position: relative;
	display: inline-block;
	font-size: 24px;
	line-height: 1;
	letter-spacing: 3px;
	/* prevent font-size from affecting layout height */
	height: 1em;
}

.ak-stars__empty {
	display: block;
	color: #d4d4d4;
	white-space: nowrap;
}

.ak-stars__filled {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #f5a623;
	/* width is set inline via PHP */
}

/* ---- Right column: score + meta ---- */

.ak-badge__right {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.ak-badge__score {
	display: block;
	font-size: 42px;
	font-weight: 900;
	color: #111111;
	line-height: 1;
	letter-spacing: -1px;
}

.ak-badge__meta {
	display: block;
	font-size: 12px;
	color: #666666;
	line-height: 1.5;
}

/* ---- Responsive tweak for very small containers ---- */
@media (max-width: 360px) {
	.ak-badge__score {
		font-size: 32px;
	}
	.ak-stars {
		font-size: 20px;
	}
}
