/* ============================================================
 * celestial_demo.css
 *
 * Step 3 (heliocentric rendering): adds time-controls panel.
 * Subsequent steps (Step 11 UI polish, Step 12 info panels,
 * Step 14 mobile graceful degradation) extend this file.
 * ============================================================ */


/* ------------------------------------------------------------
 * Cesium viewer container
 * ----------------------------------------------------------- */

.cesium-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    background: #000;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
}

#cesiumContainer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}


/* ------------------------------------------------------------
 * Centring container
 * ----------------------------------------------------------- */

.center-div {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 0;
}


/* ------------------------------------------------------------
 * Time-controls panel — Step 3
 * ----------------------------------------------------------- */

.tn-time-bar {
    margin-top: 0.75rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: #e8e8e8;
    border: 1px solid #2D4A2B;
    border-radius: 4px;
    font-family: Arial, sans-serif;
}

.tn-time-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.tn-time-row:last-child {
    margin-bottom: 0;
}

.tn-btn {
    background: #2D4A2B;
    color: #fff;
    border: 1px solid #7D8471;
    border-radius: 3px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.tn-btn:hover {
    background: #3d5d3a;
}

.tn-btn:active {
    background: #1f3320;
}

.tn-label {
    font-size: 0.9rem;
    color: #c8c8c8;
    white-space: nowrap;
}

.tn-slider {
    flex: 1;
    min-width: 200px;
    cursor: pointer;
    accent-color: #7D8471;
}

.tn-dilation-readout,
.tn-sim-time {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #a4ac86;
    white-space: nowrap;
}

.tn-sim-time {
    margin-left: auto;
}


/* ------------------------------------------------------------
 * Debug overlay — Step 6
 * ----------------------------------------------------------- */

.tn-debug-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    min-width: 240px;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.65);
    color: #e8e8e8;
    border: 1px solid #2D4A2B;
    border-radius: 4px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.78rem;
    pointer-events: none;  /* don't intercept Cesium camera mouse events */
    user-select: none;
}

.tn-debug-header {
    color: #a4ac86;            /* olive */
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tn-debug-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.tn-debug-label {
    color: #7D8471;            /* sage */
}

.tn-debug-value {
    color: #e8e8e8;
    font-weight: 600;
    text-align: right;
}

.tn-debug-divider {
    border-top: 1px solid rgba(45, 74, 43, 0.5);  /* faded forest green */
    margin: 0.5rem 0;
}


/* ------------------------------------------------------------
 * Step placeholders (populated in later steps)
 * ----------------------------------------------------------- */

.tn-hud { /* populated in Step 11 */ }
.tn-body-bar { /* populated in Step 11 */ }
.tn-info-panel { /* populated in Step 12 */ }
.tn-tour-bar { /* populated in Step 13 */ }


/* ------------------------------------------------------------
 * Mobile graceful degradation (Step 14)
 * ----------------------------------------------------------- */

@media (max-width: 768px) {
    .tn-time-row {
        flex-direction: column;
        align-items: stretch;
    }
    .tn-sim-time {
        margin-left: 0;
        text-align: center;
    }
}