/* HOBBYTEC Core — Google recenzie sekcia [hbtc_reviews]
 * Veľká karta: HOBBYTEC profil + veľké Google logo + rating + hviezdy.
 * Celý box je odkaz; na hover lupa v krúžku vpravo hore. Reveal na scroll.
 */

.hbtc-reviews-w {
	--rev-accent: #78b956;
	font-family: "Gilroy-Regular", system-ui, sans-serif;
	width: 100%;
	display: flex;
	justify-content: center;
}
.hbtc-reviews-w *,
.hbtc-reviews-w *::before,
.hbtc-reviews-w *::after { box-sizing: border-box; }

.hbtc-reviews-w__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: clamp(24px, 4vw, 52px);
	width: 100%;
	max-width: 1000px;
	padding: clamp(32px, 4vw, 52px) clamp(30px, 5vw, 64px);
	border-radius: 44px;
	background: #1b1b1b;
	box-shadow: 0 26px 60px rgba(0, 0, 0, .22);
	text-decoration: none;
	overflow: hidden;
	/* reveal */
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .6s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.hbtc-reviews-w.is-visible .hbtc-reviews-w__inner {
	opacity: 1;
	transform: translateY(0);
}

/* ── Lupa v krúžku (hover) ───────────────────────── */
.hbtc-reviews-w__zoom {
	position: absolute;
	top: 22px;
	right: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--rev-accent) !important;
	color: #fff !important;
	opacity: 0;
	transform: scale(.7);
	transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
	pointer-events: none;
}
.hbtc-reviews-w__zoom svg { width: 24px; height: 24px; }
a.hbtc-reviews-w__inner:hover .hbtc-reviews-w__zoom { opacity: 1; transform: scale(1); }

/* ── Profilová fotka (HOBBYTEC) ──────────────────── */
.hbtc-reviews-w__avatar {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(88px, 11vw, 132px);
	height: clamp(88px, 11vw, 132px);
	border-radius: 50%;
	background: #ffffff !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
	overflow: hidden;
	transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.hbtc-reviews-w__avatar img { width: 74%; height: 74%; object-fit: contain; display: block; }
a.hbtc-reviews-w__inner:hover .hbtc-reviews-w__avatar { transform: scale(1.05); }

/* ── Stred ───────────────────────────────────────── */
.hbtc-reviews-w__main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hbtc-reviews-w__label {
	font-family: "Gilroy-Medium", system-ui, sans-serif;
	font-weight: 500;
	font-size: 16px;
	letter-spacing: .02em;
	color: rgba(255, 255, 255, .6) !important;
}

.hbtc-reviews-w__row { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 28px); flex-wrap: wrap; }
.hbtc-reviews-w__logo { line-height: 0; }
.hbtc-reviews-w__logo img {
	height: clamp(46px, 7vw, 84px);
	width: auto;
	display: block;
}
.hbtc-reviews-w__rating {
	font-family: "Gilroy-ExtraBold", system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(48px, 6.5vw, 84px);
	line-height: .9;
	color: #ffffff !important;
}

/* ── Hviezdy ─────────────────────────────────────── */
.hbtc-reviews-w__stars { position: relative; display: inline-flex; line-height: 0; margin-top: 2px; }
.hbtc-reviews-w__stars-bg,
.hbtc-reviews-w__stars-fg { display: inline-flex; gap: 4px; white-space: nowrap; line-height: 0; }
.hbtc-reviews-w__stars svg { width: 30px; height: 30px; display: block; }
.hbtc-reviews-w__stars-bg svg { fill: rgba(255, 255, 255, .16); }
.hbtc-reviews-w__stars-fg {
	position: absolute;
	top: 0; left: 0;
	overflow: hidden;
	width: 0;
	transition: width 1s cubic-bezier(.22, 1, .36, 1) .25s;
}
.hbtc-reviews-w.is-visible .hbtc-reviews-w__stars-fg { width: var(--fill, 98%); }
.hbtc-reviews-w__stars-fg svg { fill: #fbbc04; }

.hbtc-reviews-w__count {
	font-family: "Gilroy-Medium", system-ui, sans-serif;
	font-weight: 500;
	font-size: 16px;
	color: rgba(255, 255, 255, .7) !important;
}

/* ── Invert (svetlo sivé pozadie) ────────────────── */
.hbtc-reviews-w.is-invert .hbtc-reviews-w__inner {
	background: #f1f1ee !important;
	box-shadow: 0 22px 50px rgba(0, 0, 0, .10);
}
.hbtc-reviews-w.is-invert .hbtc-reviews-w__label { color: rgba(34, 31, 32, .55) !important; }
.hbtc-reviews-w.is-invert .hbtc-reviews-w__rating { color: #221f20 !important; }
.hbtc-reviews-w.is-invert .hbtc-reviews-w__count { color: rgba(34, 31, 32, .62) !important; }
.hbtc-reviews-w.is-invert .hbtc-reviews-w__stars-bg svg { fill: rgba(34, 31, 32, .14); }
/* avatar na svetlej karte = tmavý kruh, aby biele logo bolo vidno */
.hbtc-reviews-w.is-invert .hbtc-reviews-w__avatar { background: #221f20 !important; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 740px) {
	.hbtc-reviews-w__inner { flex-direction: column; text-align: center; gap: 20px; border-radius: 36px; }
	.hbtc-reviews-w__main { align-items: center; }
	.hbtc-reviews-w__row { justify-content: center; }
	.hbtc-reviews-w__zoom { opacity: 1; transform: scale(1); width: 44px; height: 44px; top: 18px; right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.hbtc-reviews-w__inner { opacity: 1 !important; transform: none !important; transition: none !important; }
	.hbtc-reviews-w__stars-fg { transition: none; width: var(--fill, 98%); }
	a.hbtc-reviews-w__inner:hover .hbtc-reviews-w__avatar,
	a.hbtc-reviews-w__inner:hover .hbtc-reviews-w__zoom { transform: none; }
}

/* ════════════════════════════════════════════════════════════
 * COMPACT badge — malá pill verzia [hbtc_reviews compact="yes"]
 * Používa sa v hlavičke recenznej sekcie.
 * ════════════════════════════════════════════════════════════ */
.hbtc-reviews-w.is-compact { display: block; width: 100%; }
.hbtc-reviews-w.is-compact .hbtc-reviews-w__inner {
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	max-width: 340px;
	padding: clamp(22px, 1.8vw, 30px);
	border-radius: 26px;
	background: #2c2829 !important;
	box-shadow: none;
	transition: opacity .6s ease, transform .45s cubic-bezier(.22, 1, .36, 1), background .3s ease;
}
.hbtc-reviews-w.is-compact .hbtc-reviews-w__zoom,
.hbtc-reviews-w.is-compact .hbtc-reviews-w__avatar { display: none; }
.hbtc-reviews-w.is-compact .hbtc-reviews-w__main { gap: 12px; width: 100%; align-items: flex-start; }
.hbtc-reviews-w.is-compact .hbtc-reviews-w__label {
	font-family: "Gilroy-Medium", system-ui, sans-serif;
	font-size: 13px;
	letter-spacing: .02em;
	color: rgba(255, 255, 255, .6) !important;
}
.hbtc-reviews-w.is-compact .hbtc-reviews-w__row { gap: 14px; align-items: center; }
.hbtc-reviews-w.is-compact .hbtc-reviews-w__logo img { height: 30px; }
.hbtc-reviews-w.is-compact .hbtc-reviews-w__rating { font-size: 44px; line-height: 1; color: #fff !important; }
.hbtc-reviews-w.is-compact .hbtc-reviews-w__stars { display: inline-flex; margin-top: 0; }
.hbtc-reviews-w.is-compact .hbtc-reviews-w__stars svg { width: 27px; height: 27px; }
.hbtc-reviews-w.is-compact .hbtc-reviews-w__count {
	font-size: 13px;
	color: rgba(255, 255, 255, .68) !important;
}
a.hbtc-reviews-w.is-compact:hover .hbtc-reviews-w__inner,
.hbtc-reviews-w.is-compact a.hbtc-reviews-w__inner:hover {
	transform: translateY(-3px);
	background: #332f30 !important;
}

/* ════════════════════════════════════════════════════════════
 * CAROUSEL recenzií — [hbtc_reviews_carousel]
 * Tmavo sivá sekcia, moderné karty, drag/snap, autoplay, reveal.
 * ════════════════════════════════════════════════════════════ */
.hbtc-rvc {
	--rvc-green: #78b956;
	--rvc-gold: #fbbc04;
	--rvc-dark: #221f20;
	font-family: "Gilroy-Regular", system-ui, sans-serif;
	position: relative;
	width: 100%;
	margin: 0;
	padding: clamp(36px, 5vw, 76px) 0;
	background: transparent;
	/* reveal */
	opacity: 0;
	transform: translateY(34px);
	transition: opacity .7s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}
.hbtc-rvc.is-visible { opacity: 1; transform: translateY(0); }
.hbtc-rvc *,
.hbtc-rvc *::before,
.hbtc-rvc *::after { box-sizing: border-box; }

.hbtc-rvc__inner {
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	display: flex;
	align-items: flex-start;
	gap: clamp(28px, 3.5vw, 64px);
}

/* ── Ľavý stĺpec: nadpis + Google widget ──────────── */
.hbtc-rvc__aside {
	flex: 0 0 auto;
	width: clamp(248px, 24vw, 340px);
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 1.6vw, 22px);
}
.hbtc-rvc__head-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hbtc-rvc__eyebrow {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	font-family: "Gilroy-Medium", system-ui, sans-serif;
	font-size: 13px;
	letter-spacing: .02em;
	color: var(--rvc-green) !important;
	padding: 7px 16px;
	border-radius: 999px;
	background: rgba(120, 185, 86, .14);
}
.hbtc-rvc__title {
	margin: 0;
	font-family: "Gilroy-ExtraBold", system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(26px, 2.6vw, 40px);
	line-height: 1.06;
	color: var(--rvc-dark) !important;
	max-width: 14ch;
}
.hbtc-rvc__badge { align-self: flex-start; max-width: 100%; }

/* ── Pravý stĺpec: carousel ───────────────────────── */
.hbtc-rvc__main { flex: 1 1 auto; min-width: 0; }

/* ── Carousel rám ─────────────────────────────────── */
.hbtc-rvc__carousel {
	display: flex;
	align-items: center;
	gap: clamp(8px, 1.4vw, 16px);
}

.hbtc-rvc__arrow {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	color: var(--rvc-dark);
	background: rgba(34, 31, 32, .07) !important;
	transition: background .25s ease, color .25s ease, transform .25s ease, opacity .25s ease;
}
.hbtc-rvc__arrow svg { width: 22px; height: 22px; }
.hbtc-rvc__arrow:hover { background: var(--rvc-green) !important; color: #fff; transform: scale(1.06); }
.hbtc-rvc__arrow:disabled { opacity: .28; cursor: default; pointer-events: none; }

/* ── Track ────────────────────────────────────────── */
.hbtc-rvc__track {
	flex: 1 1 auto;
	display: flex;
	align-items: flex-start;
	gap: clamp(16px, 2vw, 26px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 2px;
	padding: 6px 2px 10px;
	-ms-overflow-style: none;
	scrollbar-width: none;
	cursor: grab;
	scroll-behavior: smooth;
}
.hbtc-rvc__track::-webkit-scrollbar { display: none; }
.hbtc-rvc__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }

/* ── Karta ────────────────────────────────────────── */
.hbtc-rvc__card {
	position: relative;
	flex: 0 0 clamp(280px, 31%, 360px);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 2.4vw, 32px);
	border-radius: 26px;
	background: #2c2829;
	overflow: hidden;
	/* reveal stagger */
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .55s ease, transform .6s cubic-bezier(.22, 1, .36, 1), background .3s ease;
	transition-delay: calc(var(--i, 0) * .07s);
}
.hbtc-rvc.is-visible .hbtc-rvc__card { opacity: 1; transform: translateY(0); }
.hbtc-rvc__track.is-dragging .hbtc-rvc__card { pointer-events: none; }
.hbtc-rvc__card:hover { background: #332f30; }

.hbtc-rvc__quote {
	position: absolute;
	top: 14px;
	left: clamp(20px, 2vw, 28px);
	width: 46px;
	height: 46px;
	fill: rgba(120, 185, 86, .16);
	pointer-events: none;
}
.hbtc-rvc__gwrap {
	position: absolute;
	top: clamp(20px, 2vw, 26px);
	right: clamp(20px, 2vw, 26px);
	line-height: 0;
}
.hbtc-rvc__g { width: 22px; height: 22px; display: block; }

.hbtc-rvc__card-head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 18px;
}
.hbtc-rvc__avatar {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	overflow: hidden;
	font-family: "Gilroy-ExtraBold", system-ui, sans-serif;
	font-size: 22px;
	line-height: 1;
	color: #fff !important;
}
.hbtc-rvc__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hbtc-rvc__avatar--ph { background: var(--av, #5f7c8a) !important; }

.hbtc-rvc__meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hbtc-rvc__name {
	font-family: "Gilroy-SemiBold", "Gilroy-Medium", system-ui, sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: #fff !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hbtc-rvc__stars { display: inline-flex; gap: 3px; line-height: 0; }
.hbtc-rvc__stars svg { width: 15px; height: 15px; fill: var(--rvc-gold); display: block; }

.hbtc-rvc__text-wrap { margin-top: 16px; display: flex; flex-direction: column; align-items: flex-start; }
.hbtc-rvc__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.62;
	color: rgba(255, 255, 255, .76) !important;
}
.hbtc-rvc__full[hidden] { display: none; }

/* ── Čítať viac (otvorí modal) ────────────────────── */
.hbtc-rvc__more-btn {
	margin-top: 12px;
	padding: 0;
	border: 0;
	background: none !important;
	cursor: pointer;
	font-family: "Gilroy-SemiBold", "Gilroy-Medium", system-ui, sans-serif;
	font-size: 13.5px;
	color: var(--rvc-green) !important;
	transition: opacity .2s ease;
}
.hbtc-rvc__more-btn::after { content: " →"; }
.hbtc-rvc__more-btn:hover { opacity: .72; }

/* ── Bodky ────────────────────────────────────────── */
.hbtc-rvc__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: clamp(20px, 2.6vw, 32px);
}
.hbtc-rvc__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(34, 31, 32, .18) !important;
	cursor: pointer;
	transition: width .3s ease, background .3s ease;
}
.hbtc-rvc__dot.is-active { width: 26px; background: var(--rvc-green) !important; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
	/* Stĺpce pod seba: widget hore, carousel dole. */
	.hbtc-rvc__inner { flex-direction: column; align-items: stretch; gap: clamp(22px, 3vw, 36px); }
	.hbtc-rvc__aside {
		width: 100%;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
		gap: 18px;
	}
	.hbtc-rvc__title { max-width: none; }
	.hbtc-rvc__card { flex-basis: clamp(260px, 46%, 340px); }
}
@media (max-width: 680px) {
	.hbtc-rvc__aside { flex-direction: column; align-items: stretch; }
	.hbtc-rvc__card { flex-basis: 82%; }
	.hbtc-rvc__badge { width: 100%; }
	/* Šípky ako overlay nad kartami — nezužujú track, ostávajú viditeľné. */
	.hbtc-rvc__carousel { position: relative; }
	.hbtc-rvc__arrow {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		z-index: 4;
		width: 42px;
		height: 42px;
		background: rgba(255, 255, 255, .94) !important;
		color: var(--rvc-dark);
		box-shadow: 0 6px 18px rgba(34, 31, 32, .18);
	}
	.hbtc-rvc__arrow--prev { left: 2px; }
	.hbtc-rvc__arrow--next { right: 2px; }
	.hbtc-rvc__arrow:hover { background: var(--rvc-green) !important; color: #fff; transform: translateY(-50%) scale(1.05); }
	.hbtc-rvc__arrow:disabled { opacity: 0; pointer-events: none; }
}

/* ════════════════════════════════════════════════════════════
 * MODAL — plné znenie recenzie
 * ════════════════════════════════════════════════════════════ */
.hbtc-rvc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(20, 18, 19, .6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease;
	font-family: "Gilroy-Regular", system-ui, sans-serif;
}
.hbtc-rvc-modal.is-open { opacity: 1; visibility: visible; }
.hbtc-rvc-modal__box {
	position: relative;
	width: min(560px, 100%);
	max-height: 86vh;
	overflow-y: auto;
	background: #2c2829;
	border-radius: 28px;
	padding: clamp(28px, 4vw, 44px);
	box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
	transform: translateY(16px) scale(.98);
	transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.hbtc-rvc-modal.is-open .hbtc-rvc-modal__box { transform: none; }
.hbtc-rvc-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	background: rgba(255, 255, 255, .1) !important;
	transition: background .25s ease;
}
.hbtc-rvc-modal__close:hover { background: var(--hbtc-green, #78b956) !important; }
.hbtc-rvc-modal__close svg { width: 20px; height: 20px; }
.hbtc-rvc-modal__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-right: 44px; }
.hbtc-rvc-modal__meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.hbtc-rvc-modal .hbtc-rvc__name { font-family: "Gilroy-SemiBold", system-ui, sans-serif; font-weight: 600; font-size: 17px; color: #fff !important; }
.hbtc-rvc-modal .hbtc-rvc__stars { display: inline-flex; gap: 3px; line-height: 0; }
.hbtc-rvc-modal .hbtc-rvc__stars svg { width: 16px; height: 16px; fill: var(--hbtc-yellow, #fbbc04); display: block; }
.hbtc-rvc-modal .hbtc-rvc__gwrap { position: static; flex: 0 0 auto; line-height: 0; }
.hbtc-rvc-modal .hbtc-rvc__g { width: 24px; height: 24px; display: block; }
.hbtc-rvc-modal .hbtc-rvc__avatar {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	font-family: "Gilroy-ExtraBold", system-ui, sans-serif;
	font-size: 24px;
	color: #fff !important;
}
.hbtc-rvc-modal .hbtc-rvc__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hbtc-rvc-modal .hbtc-rvc__avatar--ph { background: var(--av, #5f7c8a) !important; }
.hbtc-rvc-modal__text { margin: 0; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .82) !important; white-space: pre-line; }

@media (prefers-reduced-motion: reduce) {
	.hbtc-rvc,
	.hbtc-rvc__card { opacity: 1 !important; transform: none !important; transition: none !important; }
	.hbtc-rvc__track { scroll-behavior: auto; }
	.hbtc-rvc-modal__box { transition: none; }
}
