/* --- MAIN HUD LAYOUT --- */
main {
    display: grid;
    grid-template-columns: 350px 1fr 350px;
    gap: 20px;
    padding: 20px 40px;
    max-width: 1800px;
    height: calc(100vh - 120px);
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

main.visible {
    opacity: 1;
    transform: translateY(0);
}

.hud-panel {
    background: rgba(10, 25, 47, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: inset 0 0 20px rgba(0,229,255,0.05);
}

.hud-panel h2 {
    font-family: var(--font-mono);
    color: var(--tech-cyan);
    font-size: 1.1rem;
    letter-spacing: 2px;
    border-bottom: 1px dashed rgba(0, 229, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.hud-data-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hud-data-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--slate-grey);
    text-transform: uppercase;
}

.hud-data-value {
    font-family: var(--font-main);
    font-size: 1rem;
    color: #fff;
}

#target-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0,229,255,0.4);
}

#target-desc {
    color: var(--text-light);
    line-height: 1.5;
}

.target-status {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid var(--tech-green);
    color: var(--tech-green);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 10px;
}

.status-pill {
    transition: all 0.5s ease;
    text-shadow: 0 0 5px currentColor;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn-ignition {
    display: block;
    margin-top: auto;
    padding: 15px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: var(--tech-cyan);
    font-family: var(--font-mono);
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.1);
}

.btn-ignition:hover {
    background: var(--tech-cyan);
    color: var(--navy-blue);
    box-shadow: 0 0 20px var(--tech-cyan);
}

/* --- ORBITAL SYSTEM UI --- */
.orbital-system {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.core-node {
    position: absolute;
    width: 100px;
    height: 100px;
    background: #000;
    border: 2px solid var(--tech-cyan);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.6);
    animation: pulseCore 2s infinite alternate;
    overflow: hidden;
}

.core-node img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.core-node h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 10px var(--tech-cyan);
    line-height: 1;
}

.core-node span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--tech-cyan);
    letter-spacing: 3px;
    margin-top: 5px;
}

@keyframes pulseCore {
    0% { box-shadow: 0 0 20px rgba(0,229,255,0.4), inset 0 0 20px rgba(0,229,255,0.2); }
    100% { box-shadow: 0 0 60px rgba(0,229,255,0.8), inset 0 0 40px rgba(0,229,255,0.6); }
}

/* --- HUD RINGS (Visual Only) --- */
.hud-rings {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 0; height: 0;
    pointer-events: none; /* Crucial: allow clicks through */
    z-index: 1;
}

.hud-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(0, 229, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

/* Inner Ring: radius 160px -> width/height 320px */
.hud-ring {
    width: 320px;
    height: 320px;
}

/* Outer Ring: radius 280px -> width/height 560px */
.hud-ring-outer {
    width: 560px;
    height: 560px;
    border: 1px solid rgba(0, 229, 255, 0.1); /* slightly different visual */
}

@keyframes spinSlow { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinSlowerReverse { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }

.ring-spin-slow {
    animation: spinSlow 60s linear infinite;
}

.ring-spin-slower-reverse {
    animation: spinSlowerReverse 90s linear infinite;
}

/* --- SATELLITES (HUD NODES) --- */
.satellite {
    position: absolute;
    /* top/left will be set inline by JS, representing the exact center */
    margin-top: -25px; margin-left: -25px; /* Offset exactly half of 50px width/height to center the pivot */
    width: 50px; height: 50px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto; /* Explicitly allow pointer events on satellites */
    z-index: 50;
}

/* Expand the clickable hitbox invisibly to prevent losing hover */
.satellite::after {
    content: "";
    position: absolute;
    inset: -20px; /* 20px invisible padding in all directions */
    border-radius: 50%;
    z-index: -1;
}

.satellite.explored {
    filter: drop-shadow(0 0 10px #FF00FF) hue-rotate(90deg);
    opacity: 0.8;
}

.satellite.clicked {
    filter: drop-shadow(0 0 30px #ff3366) !important;
    color: #ff3366 !important;
}

.satellite.clicked .counter-positioner {
    color: #ff3366 !important;
}

.counter-positioner {
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* PAUSE NOT NEEDED ANYMORE AS NODES ARE STATIC */

.satellite:hover {
    /* VANGUARD RULE: NO SCALE SHIFT. JUST GLOW AND COLOR CHANGE */
    z-index: 100;
    filter: drop-shadow(0 0 20px var(--tech-cyan));
}
