/**
 * WebXtrm Brand Values Widget Styles
 * Animated values radar: pulsing rings, orbital dots, central core, value chips.
 */

.wx-bv-wrap {
	width: 100%;
	display: flex;
	justify-content: center;
	box-sizing: border-box;
	padding: 10px 0;
}

.wx-bv-wrap * {
	box-sizing: border-box;
}

/* ===== CARD ===== */
.wx-bv-card {
	width: 100%;
	max-width: 100%;
	background: #0d1117;
	border: 1px solid rgba(0, 201, 240, 0.15);
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 20px 60px rgba(0, 201, 240, 0.08);
	position: relative;
	overflow: hidden;
	color: #00c9f0;
}

/* Decorative top gradient line */
.wx-bv-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(0, 201, 240, 0.6), transparent);
	pointer-events: none;
}

/* ===== VISUALIZATION ===== */
.wx-bv-viz {
	position: relative;
	width: 100%;
	height: 260px;
	margin-bottom: 24px;
	color: #00c9f0;
}

.wx-bv-svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

/* Central core overlay (HTML positioned absolutely so font icons render) */
.wx-bv-core-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	pointer-events: none;
}

.wx-bv-core-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0d1117;
}

.wx-bv-core-icon svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
	color: currentColor;
}

.wx-bv-core-icon svg path,
.wx-bv-core-icon svg circle,
.wx-bv-core-icon svg polygon,
.wx-bv-core-icon svg rect {
	fill: currentColor;
}

.wx-bv-core-icon i {
	font-size: 30px;
	color: inherit;
	line-height: 1;
}

.wx-bv-core-img {
	width: 50px;
	height: 50px;
	object-fit: contain;
	display: block;
}

/* ===== CONTENT ===== */
.wx-bv-content {
	text-align: center;
}

.wx-bv-eyebrow {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: #00c9f0;
	margin-bottom: 6px;
}

.wx-bv-heading {
	font-family: 'Inter', sans-serif;
	font-size: 22px;
	font-weight: 800;
	color: #ffffff;
	line-height: 1.2;
	margin: 0 0 8px 0;
	padding: 0;
	letter-spacing: -0.5px;
}

.wx-bv-subheading {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #9aacbd;
	line-height: 1.55;
	margin: 0 0 18px 0;
	padding: 0;
}

/* ===== CHIPS ===== */
.wx-bv-chips {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-bottom: 18px;
}

.wx-bv-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	background: rgba(0, 201, 240, 0.06);
	border: 1px solid rgba(0, 201, 240, 0.2);
	border-radius: 10px;
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.wx-bv-chip:hover {
	background: rgba(0, 201, 240, 0.12);
	border-color: rgba(0, 201, 240, 0.4);
	transform: translateY(-2px);
}

.wx-bv-chip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #00c9f0;
	flex-shrink: 0;
}

.wx-bv-chip-icon svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
	color: currentColor;
	display: block;
}

.wx-bv-chip-icon svg path,
.wx-bv-chip-icon svg circle,
.wx-bv-chip-icon svg polygon,
.wx-bv-chip-icon svg rect {
	fill: currentColor;
}

.wx-bv-chip-icon i {
	font-size: 14px;
	color: inherit;
	line-height: 1;
}

.wx-bv-chip-label {
	font-family: 'Inter', sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	color: #ffffff;
	line-height: 1.2;
}

/* ===== TRUST FOOTER ===== */
.wx-bv-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	flex-wrap: wrap;
}

.wx-bv-stars {
	display: inline-flex;
	gap: 2px;
}

.wx-bv-star {
	color: #fbbf24;
	font-size: 14px;
	line-height: 1;
}

.wx-bv-trust-text {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #9aacbd;
	line-height: 1.3;
}

/* ============================================ */
/* ===== ANIMATIONS ========================== */
/* ============================================ */

/* 1. Pulsing rings — each ring expands and fades, staggered */
@keyframes wx-bv-ring-pulse-1 {
	0%, 100% { transform: scale(1); opacity: 0.5; }
	50%      { transform: scale(1.1); opacity: 0.25; }
}

@keyframes wx-bv-ring-pulse-2 {
	0%, 100% { transform: scale(1); opacity: 0.3; }
	50%      { transform: scale(1.08); opacity: 0.5; }
}

@keyframes wx-bv-ring-pulse-3 {
	0%, 100% { transform: scale(1); opacity: 0.2; }
	50%      { transform: scale(1.06); opacity: 0.4; }
}

/* Rings are inside a transformed <g> — to scale individual circles smoothly,
   we animate them via stroke-opacity (works reliably in SVG without transform-box quirks) */
@keyframes wx-bv-ring-opacity-strong {
	0%, 100% { stroke-opacity: 0.5; }
	50%      { stroke-opacity: 0.2; }
}

@keyframes wx-bv-ring-opacity-med {
	0%, 100% { stroke-opacity: 0.3; }
	50%      { stroke-opacity: 0.55; }
}

@keyframes wx-bv-ring-opacity-weak {
	0%, 100% { stroke-opacity: 0.18; }
	50%      { stroke-opacity: 0.4; }
}

.wx-bv-anim-rings .wx-bv-ring--1 {
	animation: wx-bv-ring-opacity-strong 3s ease-in-out infinite;
}

.wx-bv-anim-rings .wx-bv-ring--2 {
	animation: wx-bv-ring-opacity-med 3.5s ease-in-out infinite;
	animation-delay: 0.5s;
}

.wx-bv-anim-rings .wx-bv-ring--3 {
	animation: wx-bv-ring-opacity-weak 4s ease-in-out infinite;
	animation-delay: 1s;
}

/* 2. Center core gentle pulse — uses fill-opacity for SVG-safe animation */
@keyframes wx-bv-core-pulse {
	0%, 100% {
		fill-opacity: 1;
	}
	50% {
		fill-opacity: 0.85;
	}
}

@keyframes wx-bv-core-bg-pulse {
	0%, 100% {
		fill-opacity: 0.08;
		r: 42;
	}
	50% {
		fill-opacity: 0.18;
		r: 48;
	}
}

.wx-bv-anim-core .wx-bv-core {
	animation: wx-bv-core-pulse 2.5s ease-in-out infinite;
}

.wx-bv-anim-core .wx-bv-core-bg {
	animation: wx-bv-core-bg-pulse 2.5s ease-in-out infinite;
}

/* 3. Orbital dots — SVG animateMotion handles motion; just opacity here */
.wx-bv-dot {
	opacity: 0;
	transition: opacity 0.8s ease;
}

.wx-bv-anim-orbits .wx-bv-dot {
	opacity: 1;
}

/* When orbits are OFF, hide the dots completely */
.wx-bv-card:not(.wx-bv-anim-orbits) .wx-bv-dot {
	display: none;
}

/* Dot trail glow */
.wx-bv-dot--1 { filter: drop-shadow(0 0 4px rgba(0, 201, 240, 0.6)); }
.wx-bv-dot--2 { filter: drop-shadow(0 0 3px rgba(0, 232, 255, 0.5)); }
.wx-bv-dot--3 { filter: drop-shadow(0 0 2px rgba(0, 201, 240, 0.4)); }

/* 4. Chip stagger entry */
@keyframes wx-bv-chip-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.wx-bv-anim-chip-stagger .wx-bv-chip {
	opacity: 0;
	animation: wx-bv-chip-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
	animation-delay: calc(var(--wx-i, 0) * 0.1s + 0.3s);
}

/* Hover override for chips (after entry animation completes) */
.wx-bv-anim-chip-stagger .wx-bv-chip:hover {
	transform: translateY(-2px) scale(1);
}

/* 5. Card float */
@keyframes wx-bv-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-6px); }
}

.wx-bv-anim-float {
	animation: wx-bv-float 5s ease-in-out infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.wx-bv-anim-rings .wx-bv-ring,
	.wx-bv-anim-core .wx-bv-core,
	.wx-bv-anim-core .wx-bv-core-bg,
	.wx-bv-anim-chip-stagger .wx-bv-chip,
	.wx-bv-anim-float {
		animation: none !important;
		opacity: 1 !important;
		fill-opacity: 0.08 !important;
		stroke-opacity: 0.3 !important;
		transform: none !important;
	}
	.wx-bv-anim-core .wx-bv-core {
		fill-opacity: 1 !important;
	}
	/* animateMotion is harder to pause — hide dots when reduced motion preferred */
	.wx-bv-dot {
		opacity: 0 !important;
	}
}

/* ============================================ */
/* ===== RESPONSIVE FALLBACKS ================ */
/* ============================================ */

@media (max-width: 767px) {
	.wx-bv-card {
		padding: 22px 18px;
		border-radius: 16px;
	}
	.wx-bv-viz {
		height: 220px;
		margin-bottom: 18px;
	}
	.wx-bv-core-overlay {
		width: 64px;
		height: 64px;
	}
	.wx-bv-core-icon svg,
	.wx-bv-core-icon i {
		width: 26px;
		height: 26px;
		font-size: 26px;
	}
	.wx-bv-heading {
		font-size: 18px;
	}
	.wx-bv-subheading {
		font-size: 12.5px;
		margin-bottom: 14px;
	}
	.wx-bv-chips {
		gap: 8px;
	}
	.wx-bv-chip {
		padding: 8px 10px;
	}
	.wx-bv-chip-label {
		font-size: 11.5px;
	}
	.wx-bv-card.wx-bv-anim-float:hover {
		animation-play-state: paused;
	}
}

@media (max-width: 480px) {
	.wx-bv-card {
		padding: 18px 14px;
	}
	.wx-bv-viz {
		height: 190px;
	}
	.wx-bv-eyebrow {
		font-size: 10px;
		letter-spacing: 2px;
	}
	.wx-bv-heading {
		font-size: 17px;
	}
	.wx-bv-subheading {
		font-size: 12px;
	}
	.wx-bv-chips {
		grid-template-columns: 1fr;
	}
	.wx-bv-trust-text {
		font-size: 11px;
	}
}
