/* HOBBYTEC Core — Hero badges [hbtc_badges] */

.hbtc-badges {
	--b-green:  #78b956;
	--b-yellow: #f1bb41;
	--b-dark:   #221f20;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(10px, 1.4vw, 18px);
	width: 100%;
	font-family: "Gilroy-Regular", system-ui, sans-serif;
}

.hbtc-badges * { box-sizing: border-box; }

.hbtc-badge {
	position: relative;
	flex: 0 0 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 14px;
	border-radius: 14px;
	overflow: hidden;
	isolation: isolate;
	text-decoration: none;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.22, 1, .36, 1), box-shadow 0.35s ease;
}

.hbtc-badge[data-hbtc-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
	transition-delay: var(--badge-delay, 0s);
}

.hbtc-badge:hover {
	transform: translateY(-6px);
}

/* Shine sweep cez badge na hover */
.hbtc-badge__shine {
	position: absolute;
	top: 0;
	left: -120%;
	width: 60%;
	height: 100%;
	z-index: 0;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
	transform: skewX(-18deg);
	transition: left 0.6s cubic-bezier(.22, 1, .36, 1);
	pointer-events: none;
}
.hbtc-badge:hover .hbtc-badge__shine { left: 140%; }

.hbtc-badge__icon {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	transition: transform 0.5s cubic-bezier(.34, 1.56, .64, 1);
}
.hbtc-badge:hover .hbtc-badge__icon {
	transform: scale(1.12) rotate(-6deg);
}
.hbtc-badge__icon img {
	width: 17px;
	height: 17px;
	object-fit: contain;
	display: block;
}

.hbtc-badge__copy {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.hbtc-badge__title {
	font-family: "Gilroy-Medium", "Gilroy-Regular", system-ui, sans-serif;
	font-weight: 500;
	font-size: 0.9rem !important;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.hbtc-badge__text {
	font-family: "Gilroy-Medium", "Gilroy-Regular", system-ui, sans-serif;
	font-weight: 500;
	font-size: 11px;
	line-height: 1.25;
}

/* ── Farebné varianty ────────────────────────────────────────────────────── */

/* Zelená */
.hbtc-badge--green {
	background: var(--b-green) !important;
	box-shadow: 0 10px 26px rgba(120, 185, 86, 0.28);
}
.hbtc-badge--green:hover { box-shadow: 0 20px 40px rgba(120, 185, 86, 0.4); }
.hbtc-badge--green .hbtc-badge__title,
.hbtc-badge--green .hbtc-badge__text { color: #fff !important; }
.hbtc-badge--green .hbtc-badge__text { color: rgba(255, 255, 255, 0.85) !important; }
.hbtc-badge--green .hbtc-badge__icon { background: rgba(255, 255, 255, 0.2) !important; }

/* Oranžová */
.hbtc-badge--yellow {
	background: var(--b-yellow) !important;
	box-shadow: 0 10px 26px rgba(241, 187, 65, 0.32);
}
.hbtc-badge--yellow:hover { box-shadow: 0 20px 40px rgba(241, 187, 65, 0.45); }
.hbtc-badge--yellow .hbtc-badge__title,
.hbtc-badge--yellow .hbtc-badge__text { color: var(--b-dark) !important; }
.hbtc-badge--yellow .hbtc-badge__text { color: rgba(34, 31, 32, 0.7) !important; }
.hbtc-badge--yellow .hbtc-badge__icon { background: rgba(34, 31, 32, 0.14) !important; }

/* Tmavá */
.hbtc-badge--dark {
	background: var(--b-dark) !important;
	box-shadow: 0 10px 26px rgba(34, 31, 32, 0.28);
}
.hbtc-badge--dark:hover { box-shadow: 0 20px 40px rgba(34, 31, 32, 0.4); }
.hbtc-badge--dark .hbtc-badge__title { color: #fff !important; }
.hbtc-badge--dark .hbtc-badge__text { color: rgba(255, 255, 255, 0.62) !important; }
.hbtc-badge--dark .hbtc-badge__icon { background: var(--b-green) !important; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
	.hbtc-badges { flex-direction: column; align-items: center; }
	.hbtc-badge { flex: 0 0 auto; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.hbtc-badge { opacity: 1 !important; transform: none !important; }
	.hbtc-badge__shine { display: none; }
}
