/**
 * X-37B Space Mission Simulation Styles
 * Specific styles for the X-37B mission visualization
 */

/* Mission control panel */
.mission-control {
    background: rgba(0, 21, 64, 0.85);
    border: 1px solid #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

/* Object labels */
.cesium-viewer .space-object-label {
    background: rgba(0, 21, 64, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 12px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Mission status display */
.mission-status {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.mission-status .status-item {
    display: flex;
    justify-content: space-between;
    margin: 3px 0;
}

.mission-status .status-label {
    color: #3498db;
}

.mission-status .status-value {
    font-weight: bold;
    color: white;
}

/* Orbit selection */
.orbit-selector {
    margin: 10px 0;
}

.orbit-selector select {
    width: 100%;
    padding: 5px;
    background: #2c3e50;
    color: white;
    border: 1px solid #3498db;
    border-radius: 3px;
}

/* Mission timeline */
.mission-timeline {
    height: 5px;
    background: #2c3e50;
    margin: 15px 0;
    border-radius: 3px;
    position: relative;
}

.mission-timeline .progress {
    height: 100%;
    background: #3498db;
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
}

.mission-timeline .milestone {
    position: absolute;
    top: -3px;
    height: 10px;
    width: 10px;
    background: #e74c3c;
    border-radius: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}

.mission-timeline .milestone.completed {
    background: #2ecc71;
}

/* Object collection animation */
@keyframes collect-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.collecting-animation {
    animation: collect-pulse 1.5s infinite;
}

/* ISS Delivery Animation */
@keyframes delivery-flash {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

.delivery-animation {
    animation: delivery-flash 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .control-panel {
        width: 200px;
        font-size: 12px;
    }
    
    .control-panel h3 {
        font-size: 14px;
    }
    
    .info-box {
        max-width: 300px;
    }
    
    .info-box h2 {
        font-size: 16px;
    }
    
    .info-box p {
        font-size: 12px;
    }
}

/* Path styles for different objects */
.x37b-path {
    color: #2ecc71;  /* Green */
}

.iss-path {
    color: #3498db;  /* Blue */
}

.debris-path {
    color: #e74c3c;  /* Red */
}

.satellite-path {
    color: #f39c12;  /* Orange */
}

/* Mission complete animation */
@keyframes mission-complete {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

.mission-complete {
    animation: mission-complete 2s infinite;
}
