/* Voyager Cover Interactive Explorer Styles */

.voyager-explorer-widget {
	--vy-gold: #f59e0b;
	--vy-gold-light: #fef3c7;
	--vy-gold-glow: rgba(245, 158, 11, 0.4);
	--vy-bg: #0d121f;
	--vy-card-bg: #131b2e;
	--vy-border: rgba(245, 158, 11, 0.25);
	--vy-text: #f1f5f9;
	--vy-text-muted: #94a3b8;
	--vy-cyan: #38bdf8;
	--vy-crt-amber: #ffb703;
	--vy-crt-bg: #0a0e17;

	margin: 2.5rem 0;
	padding: 1.5rem;
	background: linear-gradient(145deg, #0b0f19 0%, #111827 100%);
	border: 1px solid var(--vy-border);
	border-radius: 16px;
	box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.6), 0 0 24px -6px var(--vy-gold-glow);
	color: var(--vy-text);
	font-family: var(--font-atkinson, system-ui, -apple-system, sans-serif);
	box-sizing: border-box;
	overflow: hidden;
}

.voyager-explorer-header {
	text-align: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.voyager-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: rgba(245, 158, 11, 0.15);
	color: var(--vy-gold);
	border: 1px solid rgba(245, 158, 11, 0.35);
	padding: 0.25rem 0.8rem;
	border-radius: 9999px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 0.6rem;
}

.voyager-title {
	font-size: 1.45rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.4rem 0;
	line-height: 1.3;
}

.voyager-subtitle {
	font-size: 0.92rem;
	color: var(--vy-text-muted);
	margin: 0;
	max-width: 680px;
	margin-inline: auto;
}

/* Navigation Pill Tabs */
.voyager-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.voyager-tab-btn {
	background: rgba(19, 27, 46, 0.8);
	color: var(--vy-text-muted);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 9999px;
	padding: 0.45rem 0.9rem;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	user-select: none;
}

.voyager-tab-btn * {
	pointer-events: none;
}

.voyager-tab-btn:hover {
	background: rgba(245, 158, 11, 0.12);
	color: #fff;
	border-color: rgba(245, 158, 11, 0.4);
}

.voyager-tab-btn.active {
	background: var(--vy-gold);
	color: #0b0f19;
	border-color: var(--vy-gold);
	font-weight: 700;
	box-shadow: 0 0 14px var(--vy-gold-glow);
}

/* Two-column layout */
.voyager-main-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	align-items: start;
}

@media (max-width: 840px) {
	.voyager-main-grid {
		grid-template-columns: 1fr;
	}
}

/* Interactive Plaque Column */
.voyager-plaque-wrapper {
	position: relative;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(245, 158, 11, 0.3);
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
	aspect-ratio: 1 / 1;
	max-width: 440px;
	margin: 0 auto;
	width: 100%;
}

.voyager-plaque-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	user-select: none;
	-webkit-user-drag: none;
}

.voyager-svg-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: auto;
}

.voyager-hotspot {
	cursor: pointer;
	pointer-events: auto;
	fill: rgba(245, 158, 11, 0.08);
	stroke: var(--vy-gold);
	stroke-width: 2;
	stroke-dasharray: 6 4;
	transition: all 0.25s ease;
}

.voyager-hotspot:hover,
.voyager-hotspot.active {
	fill: rgba(245, 158, 11, 0.28);
	stroke-width: 3.5;
	stroke-dasharray: none;
	filter: drop-shadow(0 0 8px #f59e0b);
}

.voyager-hotspot-pulse {
	animation: vyPulse 2.2s infinite;
}

@keyframes vyPulse {
	0% {
		stroke-opacity: 0.4;
	}
	50% {
		stroke-opacity: 1;
		fill-opacity: 0.35;
	}
	100% {
		stroke-opacity: 0.4;
	}
}

.voyager-plaque-caption {
	text-align: center;
	font-size: 0.78rem;
	color: var(--vy-text-muted);
	margin-top: 0.5rem;
}

/* Mini-Lab Column */
.voyager-lab-panel {
	background: var(--vy-card-bg);
	border: 1px solid rgba(245, 158, 11, 0.2);
	border-radius: 12px;
	padding: 1.25rem;
	min-height: 420px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.voyager-lab-header {
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.voyager-lab-zone-tag {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--vy-gold);
	font-weight: 700;
}

.voyager-lab-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #fff;
	margin: 0.25rem 0 0.4rem 0;
}

.voyager-lab-desc {
	font-size: 0.88rem;
	color: var(--vy-text-muted);
	line-height: 1.45;
	margin: 0;
}

.voyager-lab-content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	justify-content: center;
}

/* Sub-Lab 1: Hydrogen Styles */
.vy-hydrogen-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	background: rgba(0, 0, 0, 0.4);
	padding: 1rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.vy-atom-box {
	text-align: center;
}

.vy-atom-svg {
	width: 90px;
	height: 90px;
}

.vy-spin-arrow {
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: 45px 45px;
}

.vy-spin-arrow.flipped {
	transform: rotate(180deg);
}

.vy-wave-packet {
	height: 30px;
	width: 80px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.vy-wave-packet.active {
	opacity: 1;
	animation: vyWaveEmit 1.2s infinite ease-out;
}

@keyframes vyWaveEmit {
	0% {
		transform: scaleX(0.5);
		opacity: 0.2;
	}
	50% {
		transform: scaleX(1);
		opacity: 1;
	}
	100% {
		transform: scaleX(1.3);
		opacity: 0;
	}
}

.vy-units-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem;
}

.vy-unit-card {
	background: rgba(11, 15, 25, 0.7);
	padding: 0.6rem;
	border-radius: 8px;
	border: 1px solid rgba(245, 158, 11, 0.15);
	text-align: center;
}

.vy-unit-val {
	font-family: var(--font-mono, monospace);
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--vy-gold);
}

.vy-unit-lbl {
	font-size: 0.75rem;
	color: var(--vy-text-muted);
}

/* Sub-Lab 2: Turntable & Binary */
.vy-turntable-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	background: rgba(0, 0, 0, 0.4);
	padding: 1rem;
	border-radius: 10px;
}

.vy-disc-svg {
	width: 140px;
	height: 140px;
	transition: transform 0.2s linear;
}

.vy-disc-svg.spinning {
	animation: vySpinRecord 3.6s infinite linear;
}

@keyframes vySpinRecord {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.vy-math-box {
	background: rgba(11, 15, 25, 0.9);
	border: 1px solid rgba(245, 158, 11, 0.2);
	border-radius: 8px;
	padding: 0.75rem;
	font-family: var(--font-mono, monospace);
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--vy-gold-light);
	word-break: break-all;
}

/* Sub-Lab 3: CRT Scanlines */
.vy-crt-screen {
	background: var(--vy-crt-bg);
	border: 2px solid #233045;
	border-radius: 8px;
	position: relative;
	overflow: hidden;
	height: 190px;
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 183, 3, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
}

.vy-crt-screen::before {
	content: ' ';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
		linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
	z-index: 2;
	background-size: 100% 3px, 3px 100%;
	pointer-events: none;
}

.vy-crt-canvas {
	width: 180px;
	height: 180px;
	image-rendering: pixelated;
}

.vy-crt-controls {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.vy-slider-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.82rem;
	color: var(--vy-text-muted);
}

.vy-slider {
	flex-grow: 1;
	accent-color: var(--vy-gold);
	cursor: pointer;
}

/* Sub-Lab 4: Pulsar Map */
.vy-pulsar-viewer {
	background: rgba(0, 0, 0, 0.5);
	border-radius: 10px;
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.vy-pulsar-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 0.4rem;
	max-height: 130px;
	overflow-y: auto;
	padding-right: 0.3rem;
}

.vy-pulsar-item {
	background: rgba(19, 27, 46, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	padding: 0.35rem 0.5rem;
	font-size: 0.76rem;
	cursor: pointer;
	color: var(--vy-text-muted);
	transition: all 0.2s;
	text-align: left;
}

.vy-pulsar-item:hover,
.vy-pulsar-item.active {
	background: rgba(245, 158, 11, 0.2);
	border-color: var(--vy-gold);
	color: #fff;
}

/* Sub-Lab 5: Uranium Decay */
.vy-decay-container {
	background: rgba(0, 0, 0, 0.45);
	border-radius: 10px;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.vy-decay-bar {
	height: 24px;
	width: 100%;
	background: #334155;
	border-radius: 9999px;
	overflow: hidden;
	display: flex;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.vy-bar-u238 {
	background: linear-gradient(90deg, #f59e0b, #d97706);
	height: 100%;
	transition: width 0.3s ease;
}

.vy-bar-pb206 {
	background: linear-gradient(90deg, #64748b, #475569);
	height: 100%;
	flex-grow: 1;
}

.vy-decay-legend {
	display: flex;
	justify-content: space-between;
	font-size: 0.78rem;
}

.vy-btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.vy-btn-preset {
	background: rgba(19, 27, 46, 0.9);
	color: var(--vy-text-muted);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	padding: 0.25rem 0.6rem;
	font-size: 0.75rem;
	cursor: pointer;
	transition: all 0.2s;
}

.vy-btn-preset:hover {
	background: rgba(245, 158, 11, 0.2);
	color: #fff;
	border-color: var(--vy-gold);
}

.vy-action-btn {
	background: linear-gradient(135deg, var(--vy-gold) 0%, #d97706 100%);
	color: #0b0f19;
	font-weight: 700;
	border: none;
	border-radius: 8px;
	padding: 0.5rem 1rem;
	font-size: 0.86rem;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}

.vy-action-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

.vy-action-btn:active {
	transform: translateY(0);
}
