/* ===========================================
   STARMAP-D3.CSS - d3-celestial specifika stilar
   =========================================== */

:root {
    --poster-scale: 1;
    --starmap-size: 624px;
}

.poster.portrait {
    width: calc(795px * var(--poster-scale));
    height: calc(1113px * var(--poster-scale));
}

.poster.landscape {
    width: calc(1113px * var(--poster-scale));
    height: calc(795px * var(--poster-scale));
}

/* ===========================================
   CANVAS CONTAINER
   =========================================== */
.canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    overflow: hidden;
}

#starmap-container {
    width: var(--starmap-size);
    height: var(--starmap-size);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

/* Override d3-celestial SVG/canvas styling */
#starmap-container svg,
#starmap-container canvas {
    display: block;
    border-radius: 50%;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* Dolj d3-celestial UI-element vi inte vill ha */
#starmap-container .celestial-form,
#starmap-container .celestial-controls,
#starmap-container .celestial-zoomin,
#starmap-container .celestial-zoomout {
    display: none !important;
}

/* ===========================================
   POSTER TEXT
   =========================================== */
.poster-text {
    text-align: center;
    padding: 0 30px 50px;
    user-select: none;
    color: rgba(255,255,255,0.85);
}

.poster-text h2 {
    font-family: 'PD-Gotham-Medium', Arial, sans-serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 8px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(255,255,255,0.85);
    display: inline-block;
    padding-left: 16px;
    padding-right: 16px;
    text-transform: uppercase;
}

.poster-text .coords {
    font-family: 'PD-Gotham-Light', Arial, sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.poster-text .date {
    font-family: 'PD-Gotham-Light', Arial, sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 3px;
}

/* ===========================================
   RANGE SLIDER
   =========================================== */
.field input[type="range"] {
    width: 100%;
    margin: 8px 0;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #87857f;
}

#mag-value {
    font-weight: 600;
    color: #292b2c;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1200px) {
    :root {
        --poster-scale: 0.8;
        --starmap-size: 499px;
    }
}

@media (max-width: 767px) {
    :root {
        --poster-scale: 0.58;
        --starmap-size: 362px;
    }

    .poster-text h2 {
        font-size: 20px;
        letter-spacing: 4px;
    }

    .poster-text .coords,
    .poster-text .date {
        font-size: 10px;
    }
}

@media (max-width: 544px) {
    :root {
        --poster-scale: 0.46;
        --starmap-size: 287px;
    }
}
