Files
ZeroSpace/ZeroSpace/ZeroSpace.Web/Pages/Galaxy.razor.css
T
2026-09-28 14:17:59 -04:00

391 lines
7.9 KiB
CSS

.galaxy-page {
width: 100%;
margin-bottom: 2rem;
}
.map-legend,
.map-stats {
background: rgba(22, 27, 34, 0.85);
border: 1px solid rgba(56, 189, 248, 0.15);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.legend-dot {
width: 10px;
height: 10px;
border-radius: 50%;
display: inline-block;
}
.dot-homeworld {
background-color: #10b981;
box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}
.dot-core {
background-color: #f59e0b;
box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}
.dot-side {
background-color: #38bdf8;
box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}
.legend-text {
font-size: 0.85rem;
color: #c9d1d9;
}
.galaxy-map-container {
position: relative;
width: 100%;
max-width: 1100px;
margin: 0 auto;
border-radius: 12px;
overflow: hidden;
background: #080b10;
border: 1px solid rgba(56, 189, 248, 0.2);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.05);
}
.galaxy-svg {
display: block;
width: 100%;
height: auto;
aspect-ratio: 1 / 1;
user-select: none;
}
.map-bg {
fill: #080b10;
}
/* Hyperlanes (Connection Lines) */
.hyperlane-line {
stroke: #3a4d6b;
stroke-width: 1.5;
stroke-opacity: 0.65;
stroke-linecap: round;
transition: stroke 0.2s ease, stroke-opacity 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}
.hyperlane-line.hyperlane-highlighted {
stroke: #38bdf8;
stroke-width: 2.75;
stroke-opacity: 1;
filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.85));
}
.hyperlane-line.hyperlane-dimmed {
stroke-opacity: 0.15;
}
/* Node Groups */
.node-group {
cursor: pointer;
outline: none;
transition: opacity 0.2s ease, transform 0.2s ease;
}
.node-circle {
stroke-width: 1.5;
transition: all 0.2s ease;
}
.node-aura {
opacity: 0.35;
transform-origin: 0 0;
transition: opacity 0.2s ease, r 0.2s ease;
}
.node-core-dot {
fill: #ffffff;
opacity: 0.9;
pointer-events: none;
}
.node-label {
fill: #8b949e;
font-size: 8.5px;
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
font-weight: 500;
pointer-events: none;
letter-spacing: 0.2px;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9);
transition: fill 0.2s ease, font-weight 0.2s ease, font-size 0.2s ease;
}
/* Kinds */
.kind-homeworld .node-circle {
fill: #10b981;
stroke: #34d399;
}
.kind-homeworld .node-aura {
fill: #10b981;
filter: url(#glow-homeworld);
}
.kind-core .node-circle {
fill: #f59e0b;
stroke: #fbbf24;
}
.kind-core .node-aura {
fill: #f59e0b;
filter: url(#glow-core);
}
.kind-side .node-circle {
fill: #38bdf8;
stroke: #7dd3fc;
}
.kind-side .node-aura {
fill: #38bdf8;
filter: url(#glow-side);
}
/* Node State Styles */
.node-group.is-hovered .node-circle,
.node-group:focus-visible .node-circle {
stroke: #ffffff;
stroke-width: 2.75;
filter: brightness(1.35) drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
}
.node-group.is-hovered .node-aura,
.node-group:focus-visible .node-aura {
opacity: 0.95;
animation: pulseAura 1.4s infinite alternate ease-in-out;
}
.node-group.is-hovered .node-label,
.node-group:focus-visible .node-label {
fill: #ffffff;
font-weight: 700;
font-size: 9.5px;
text-shadow: 0 0 6px rgba(56, 189, 248, 0.9), 0 2px 4px rgba(0, 0, 0, 1);
}
.node-group.is-neighbor .node-aura {
opacity: 0.7;
}
.node-group.is-neighbor .node-label {
fill: #f0f6fc;
font-weight: 600;
}
.node-group.is-neighbor .node-circle {
stroke-width: 2;
filter: brightness(1.15);
}
.node-group.is-dimmed {
opacity: 0.35;
}
/* Pulse Aura Animation */
@keyframes pulseAura {
0% {
transform: scale(1);
opacity: 0.75;
}
100% {
transform: scale(1.35);
opacity: 1;
}
}
/* Floating Glassmorphism Hover Card */
.planet-hover-card {
position: absolute;
z-index: 100;
min-width: 260px;
max-width: 310px;
padding: 14px 16px;
background: rgba(13, 17, 23, 0.94);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-radius: 10px;
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.12);
border: 1px solid rgba(56, 189, 248, 0.35);
pointer-events: none;
animation: popupFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
transition: transform 0.12s ease-out, left 0.12s ease-out, top 0.12s ease-out;
}
@keyframes popupFadeIn {
from {
opacity: 0;
scale: 0.96;
}
to {
opacity: 1;
scale: 1;
}
}
.system-kind-indicator {
width: 9px;
height: 9px;
border-radius: 50%;
display: inline-block;
}
.system-title {
font-size: 1.05rem;
letter-spacing: 0.3px;
}
.kind-badge {
font-size: 0.75rem;
font-weight: 600;
padding: 3px 8px;
border-radius: 6px;
}
/* Kind Variant Themes for Hover Card */
.planet-hover-card.kind-homeworld {
border-color: rgba(16, 185, 129, 0.45);
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 24px rgba(16, 185, 129, 0.18);
}
.planet-hover-card.kind-homeworld .kind-badge {
background: rgba(16, 185, 129, 0.2);
color: #34d399;
border: 1px solid rgba(16, 185, 129, 0.4);
}
.planet-hover-card.kind-homeworld .system-kind-indicator {
background-color: #10b981;
box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}
.planet-hover-card.kind-core {
border-color: rgba(245, 158, 11, 0.45);
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 24px rgba(245, 158, 11, 0.18);
}
.planet-hover-card.kind-core .kind-badge {
background: rgba(245, 158, 11, 0.2);
color: #fbbf24;
border: 1px solid rgba(245, 158, 11, 0.4);
}
.planet-hover-card.kind-core .system-kind-indicator {
background-color: #f59e0b;
box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}
.planet-hover-card.kind-side {
border-color: rgba(56, 189, 248, 0.45);
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.18);
}
.planet-hover-card.kind-side .kind-badge {
background: rgba(56, 189, 248, 0.2);
color: #7dd3fc;
border: 1px solid rgba(56, 189, 248, 0.4);
}
.planet-hover-card.kind-side .system-kind-indicator {
background-color: #38bdf8;
box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}
/* Card Details Grid */
.card-details-grid {
display: flex;
flex-direction: column;
gap: 8px;
}
.detail-row {
font-size: 0.82rem;
}
.detail-label {
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.6px;
color: #8b949e;
margin-bottom: 2px;
display: block;
}
.detail-value {
font-size: 0.85rem;
display: block;
line-height: 1.35;
}
.text-buff {
color: #34d399;
font-weight: 600;
}
.text-mastery {
color: #60a5fa;
font-weight: 600;
}
/* Yield Badges */
.yield-badges {
margin-top: 3px;
}
.yield-badge {
font-size: 0.72rem;
font-weight: 600;
padding: 2px 7px;
border-radius: 4px;
display: inline-flex;
align-items: center;
}
.yield-influence {
background: rgba(168, 85, 247, 0.18);
color: #c084fc;
border: 1px solid rgba(168, 85, 247, 0.4);
}
.yield-credits {
background: rgba(234, 179, 8, 0.18);
color: #facc15;
border: 1px solid rgba(234, 179, 8, 0.4);
}
.yield-energy {
background: rgba(6, 182, 212, 0.18);
color: #22d3ee;
border: 1px solid rgba(6, 182, 212, 0.4);
}
.yield-items {
background: rgba(16, 185, 129, 0.18);
color: #34d399;
border: 1px solid rgba(16, 185, 129, 0.4);
}
.yield-standard {
background: rgba(100, 116, 139, 0.15);
color: #94a3b8;
border: 1px solid rgba(100, 116, 139, 0.3);
}
.connected-systems-list {
line-height: 1.4;
font-size: 0.76rem;
color: #8b949e;
word-break: break-word;
}
.card-footer-hint {
margin-top: 4px;
}
.hint-text {
color: #38bdf8;
font-weight: 500;
font-size: 0.72rem;
letter-spacing: 0.2px;
}