/**
 * WebVerix — Tech Stack widget styles.
 * Scoped under .wvx-tech to avoid collisions with other widgets.
 * All colors/spacing here are sensible defaults; Elementor controls override via {{WRAPPER}}.
 */

.wvx-tech {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: var(--wvx-text);
	font-family: var(--wvx-font);
	padding: 72px 24px;
}

/* ---------- Header ---------- */
.wvx-tech__header {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 720px;
	margin: 0 auto 48px;
	text-align: center;
}
.wvx-tech__eyebrow {
	display: block;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wvx-purple-2);
	margin-bottom: 14px;
}
.wvx-tech__title {
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--wvx-text);
	margin: 0 0 16px;
}
.wvx-tech__desc {
	font-size: 17px;
	line-height: 1.65;
	color: var(--wvx-text-soft);
	max-width: 560px;
	margin: 0;
}

/* ---------- Grid layout ---------- */
.wvx-tech__grid {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
}

/* ---------- Marquee layout ---------- */
.wvx-tech__marquee {
	position: relative;
	z-index: 2;
	width: 100%;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.wvx-tech__track {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	gap: 16px;
	--wvx-marquee-duration: 32s;
	animation: wvx-marquee var(--wvx-marquee-duration) linear infinite;
	will-change: transform;
}
.wvx-tech--pause .wvx-tech__marquee:hover .wvx-tech__track {
	animation-play-state: paused;
}
.wvx-tech--marquee .wvx-tech__badge {
	flex: 0 0 auto;
}

/* ---------- Badge / chip ---------- */
.wvx-tech__badge {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	min-width: 150px;
	padding: 22px 18px;
	text-align: center;
	text-decoration: none;
	color: var(--wvx-text);
	background:
		var(--wvx-grad-soft),
		var(--wvx-glass-bg);
	border: 1px solid var(--wvx-glass-border);
	border-radius: var(--wvx-radius);
	box-shadow: var(--wvx-shadow-sm);
	backdrop-filter: blur(var(--wvx-glass-blur));
	-webkit-backdrop-filter: blur(var(--wvx-glass-blur));
	transition: transform var(--wvx-fast) var(--wvx-ease),
		box-shadow var(--wvx-fast) var(--wvx-ease),
		background var(--wvx-fast) var(--wvx-ease),
		border-color var(--wvx-fast) var(--wvx-ease),
		filter var(--wvx-fast) var(--wvx-ease);
	will-change: transform;
}

/* ---------- Logo / icon ---------- */
.wvx-tech__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	line-height: 0;
}
.wvx-tech__logo i {
	font-size: 30px;
	color: var(--wvx-text);
	transition: color var(--wvx-fast) var(--wvx-ease);
}
.wvx-tech__logo svg {
	width: 30px;
	height: 30px;
	fill: var(--wvx-text);
	transition: fill var(--wvx-fast) var(--wvx-ease);
}
.wvx-tech__logo img {
	display: block;
	width: auto;
	max-height: 36px;
	object-fit: contain;
}

/* ---------- Name ---------- */
.wvx-tech__name {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--wvx-text-soft);
}

/* ---------- Tooltip ---------- */
.wvx-tech__tip {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	z-index: 10;
	white-space: nowrap;
	padding: 7px 12px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--wvx-text);
	background: var(--wvx-bg-2);
	border: 1px solid var(--wvx-border);
	border-radius: var(--wvx-radius-sm);
	box-shadow: var(--wvx-shadow-md);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--wvx-fast) var(--wvx-ease),
		transform var(--wvx-fast) var(--wvx-ease);
}
.wvx-tech__tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: var(--wvx-bg-2);
}
.wvx-tech__badge--has-tip:hover .wvx-tech__tip,
.wvx-tech__badge--has-tip:focus-visible .wvx-tech__tip {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ---------- Hover effects ---------- */
.wvx-tech--hover-lift .wvx-tech__badge:hover {
	transform: translateY(-6px);
	border-color: var(--wvx-border-strong);
	box-shadow: var(--wvx-shadow-md);
}
.wvx-tech--hover-glow .wvx-tech__badge:hover {
	border-color: var(--wvx-purple);
	box-shadow: var(--wvx-shadow-md), var(--wvx-glow-purple);
}
.wvx-tech--hover-colorize .wvx-tech__badge {
	filter: grayscale(1);
	opacity: 0.72;
}
.wvx-tech--hover-colorize .wvx-tech__badge:hover {
	filter: grayscale(0);
	opacity: 1;
	border-color: var(--wvx-purple);
}
.wvx-tech--hover-colorize .wvx-tech__badge:hover .wvx-tech__logo i {
	color: var(--wvx-purple-2);
}
.wvx-tech--hover-colorize .wvx-tech__badge:hover .wvx-tech__logo svg {
	fill: var(--wvx-purple-2);
}

/* ==========================================================================
 * Responsive
 * ======================================================================== */
@media (max-width: 767px) {
	.wvx-tech__header { margin-bottom: 34px; }
	.wvx-tech__grid { gap: 12px; }
	.wvx-tech__badge { min-width: 0; padding: 18px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.wvx-tech__track { animation: none !important; }
	.wvx-tech__badge,
	.wvx-tech__tip { transition: none !important; }
}
