/**
 * AnteEnti Telugu Q&A UI
 *
 * Badge Component CSS
 *
 * Purpose:
 * Styles reusable achievement/activity badges.
 *
 * Current use:
 * - Temporary component testing
 *
 * Future use:
 * - GamiPress achievement badges
 * - Profile badges
 * - Author card badges
 */

/* Main badge wrapper */
.anteenti-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: #fff7e6;
	border: 1px solid rgba(111, 31, 47, 0.14);
	border-radius: 999px;
	color: #3b241f;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(111, 31, 47, 0.08);
	vertical-align: middle;
}

/* Badge hover when rendered as a link */
a.anteenti-badge:hover,
a.anteenti-badge:focus {
	color: #6f1f2f;
	text-decoration: none;
	border-color: rgba(111, 31, 47, 0.28);
	box-shadow: 0 8px 20px rgba(111, 31, 47, 0.12);
}

/* Emoji fallback icon */
.anteenti-badge__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	border-radius: 50%;
	background: #f4dfb0;
	font-size: 15px;
	line-height: 1;
}

/* Image wrapper */
.anteenti-badge__image-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 50%;
	overflow: hidden;
	background: #fffaf1;
}

/* Badge image */
.anteenti-badge__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Label */
.anteenti-badge__label {
	display: inline-block;
	color: inherit;
	white-space: nowrap;
}

/* Badge type variations */
.anteenti-badge--activity {
	background: #fff7e6;
}

.anteenti-badge--achievement {
	background: #f8efe4;
}

.anteenti-badge--system {
	background: #eef7ef;
}

/* Mobile tuning */
@media (max-width: 600px) {
	.anteenti-badge {
		padding: 7px 10px;
		font-size: 13px;
		gap: 7px;
	}

	.anteenti-badge__icon {
		width: 24px;
		height: 24px;
		flex-basis: 24px;
		font-size: 14px;
	}

	.anteenti-badge__image-wrap {
		width: 30px;
		height: 30px;
		flex-basis: 30px;
	}
}