/**
 * Star Map CSS
 *
 * Styles specific to the interactive star map canvas section.
 *
 * @package Stellar
 * @since   1.0.0
 */

/* ============================================================
   SECTION WRAPPER
   ============================================================ */

.stellar-star-map-section {
	background: radial-gradient(ellipse at center, #0d1b2a 0%, var(--color-void) 70%);
	padding-top: var(--section-padding);
	padding-bottom: var(--section-padding);
	overflow: hidden;
	position: relative;
}

/* ============================================================
   CANVAS
   ============================================================ */

.stellar-star-map-canvas-wrapper {
	position: relative;
	width: 100%;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow:
		0 0 0 1px rgba(100, 255, 218, 0.1),
		0 20px 60px rgba(0, 0, 0, 0.6),
		0 0 80px rgba(13, 27, 42, 0.8);
}

#stellar-star-map-canvas {
	display: block;
	width: 100%;
	height: 500px;
	cursor: crosshair;
	background: #050510;
}

/* ============================================================
   CONTROLS BAR
   ============================================================ */

.star-map-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
	padding: 16px 20px;
	background: var(--glass-bg);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-md);
}

.star-map-controls-left,
.star-map-controls-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.map-control-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(100, 255, 218, 0.08);
	border: 1px solid rgba(100, 255, 218, 0.2);
	border-radius: var(--radius-sm);
	color: var(--color-aurora);
	font-size: 1.1rem;
	cursor: pointer;
	transition: all var(--transition-fast);
	font-family: var(--font-body);
}

.map-control-btn:hover,
.map-control-btn:focus-visible {
	background: rgba(100, 255, 218, 0.15);
	box-shadow: var(--glow-aurora);
	outline: none;
}

.map-coordinates {
	font-family: var(--font-accent);
	font-size: 0.75rem;
	color: var(--color-aurora);
	letter-spacing: 0.05em;
}

.map-hint {
	font-size: 0.8rem;
	color: var(--color-stardust);
	opacity: 0.8;
}

/* ============================================================
   STAR TOOLTIP
   ============================================================ */

.star-map-tooltip {
	position: absolute;
	background: rgba(10, 10, 26, 0.95);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(240, 194, 127, 0.3);
	border-radius: var(--radius-md);
	padding: 16px 20px;
	min-width: 200px;
	max-width: 280px;
	pointer-events: none;
	z-index: 100;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(240, 194, 127, 0.15);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.star-map-tooltip.visible {
	opacity: 1;
	transform: translateY(0);
}

.tooltip-star-name {
	font-family: var(--font-display);
	font-size: 1rem;
	color: var(--color-supernova);
	margin-bottom: 8px;
	font-weight: 700;
}

.tooltip-data {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 12px;
	font-size: 0.75rem;
}

.tooltip-label {
	color: var(--color-stardust);
	font-family: var(--font-accent);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.tooltip-value {
	color: var(--color-moonlight);
}

.tooltip-cta {
	display: inline-block;
	margin-top: 12px;
	padding: 8px 16px;
	background: var(--color-supernova);
	color: var(--color-void);
	border-radius: var(--radius-sm);
	font-size: 0.8rem;
	font-weight: 700;
	pointer-events: all;
	cursor: pointer;
	transition: background var(--transition-fast), transform var(--transition-fast);
}

.tooltip-cta:hover {
	background: var(--color-supernova-hover);
	transform: translateY(-1px);
	color: var(--color-void);
}

.tooltip-available-badge {
	display: inline-block;
	background: rgba(240, 194, 127, 0.15);
	border: 1px solid rgba(240, 194, 127, 0.4);
	color: var(--color-supernova);
	font-size: 0.7rem;
	font-family: var(--font-accent);
	padding: 3px 8px;
	border-radius: 20px;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* ============================================================
   LEGEND
   ============================================================ */

.star-map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 16px;
	font-size: 0.8rem;
	color: var(--color-stardust);
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.legend-dot-available {
	background: var(--color-supernova);
	box-shadow: 0 0 8px rgba(240, 194, 127, 0.6);
}

.legend-dot-star {
	background: #ffffff;
	opacity: 0.8;
}

.legend-dot-constellation {
	background: rgba(100, 255, 218, 0.6);
	border-radius: 0;
	width: 16px;
	height: 2px;
}

/* ============================================================
   CTA BELOW MAP
   ============================================================ */

.star-map-cta {
	text-align: center;
	margin-top: 40px;
}

.star-map-cta p {
	color: var(--color-moonlight);
	font-size: 1.1rem;
	margin-bottom: 20px;
}

/* ============================================================
   MOBILE TOUCH INDICATOR
   ============================================================ */

.star-map-touch-hint {
	display: none;
	text-align: center;
	padding: 10px;
	background: rgba(100, 255, 218, 0.05);
	border-radius: var(--radius-sm);
	font-size: 0.8rem;
	color: var(--color-aurora);
	margin-top: 8px;
}
