/* Sci-fi Rocket Launch Panel Styles */

#rocket-launch-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

#rocket-launch-panel {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(76, 175, 255, 0.6);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(76, 175, 255, 0.4), 
                inset 0 0 15px rgba(76, 175, 255, 0.2);
    color: rgba(210, 235, 255, 0.9);
    font-family: 'Orbitron', sans-serif;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    transform: translateY(100vh);
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
}

#rocket-launch-panel.active {
    transform: translateY(0);
}

/* Panel Header */
.rocket-panel-header {
    background: linear-gradient(to right, 
                rgba(0, 20, 40, 0.9), 
                rgba(0, 60, 120, 0.8), 
                rgba(0, 20, 40, 0.9));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(76, 175, 255, 0.5);
    position: relative;
}

.rocket-panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, 
                transparent, 
                rgba(76, 175, 255, 0.8), 
                transparent);
}

.panel-title {
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(76, 175, 255, 0.6);
    position: relative;
    padding-left: 30px;
}

.panel-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('../images/rocket.png');
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 3px rgba(76, 175, 255, 0.6));
}

.panel-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.panel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(76, 255, 130, 0.7);
    box-shadow: 0 0 10px rgba(76, 255, 130, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.panel-refresh {
    font-size: 0.85rem;
    letter-spacing: 1px;
    background-color: rgba(0, 40, 80, 0.7);
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid rgba(76, 175, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.panel-refresh:hover {
    background-color: rgba(0, 60, 120, 0.8);
    box-shadow: 0 0 10px rgba(76, 175, 255, 0.4);
}

/* Panel Content */
.rocket-panel-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(85vh - 60px);
    scrollbar-width: thin;
    scrollbar-color: rgba(76, 175, 255, 0.5) rgba(0, 20, 40, 0.3);
}

.rocket-panel-content::-webkit-scrollbar {
    width: 8px;
}

.rocket-panel-content::-webkit-scrollbar-track {
    background: rgba(0, 20, 40, 0.3);
    border-radius: 4px;
}

.rocket-panel-content::-webkit-scrollbar-thumb {
    background-color: rgba(76, 175, 255, 0.5);
    border-radius: 4px;
}

/* Launch Items */
.launch-item {
    background-color: rgba(0, 30, 60, 0.5);
    border: 1px solid rgba(76, 175, 255, 0.3);
    border-radius: 6px;
    margin-bottom: 15px;
    padding: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.launch-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, 
                transparent, 
                rgba(76, 175, 255, 0.6), 
                transparent);
}

.launch-item:hover {
    background-color: rgba(0, 40, 80, 0.6);
    box-shadow: 0 0 15px rgba(76, 175, 255, 0.2);
}

/* Expanded state for launch items */
.launch-item.expanded {
    background-color: rgba(0, 50, 100, 0.7);
    box-shadow: 0 0 20px rgba(76, 175, 255, 0.3), 
                inset 0 0 10px rgba(76, 175, 255, 0.1);
    transform: scale(1.01);
}

.launch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(76, 175, 255, 0.2);
}

.launch-mission {
    font-size: 1.1rem;
    margin: 0;
    color: rgba(210, 235, 255, 1);
    text-shadow: 0 0 8px rgba(76, 175, 255, 0.5);
}

.launch-status {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: rgba(0, 30, 60, 0.7);
    border: 1px solid rgba(76, 175, 255, 0.4);
}

.launch-status[data-status="go"] {
    background-color: rgba(0, 100, 0, 0.4);
    border-color: rgba(0, 255, 0, 0.5);
    color: rgba(150, 255, 150, 1);
}

.launch-status[data-status="hold"] {
    background-color: rgba(100, 60, 0, 0.4);
    border-color: rgba(255, 180, 0, 0.5);
    color: rgba(255, 210, 120, 1);
}

.launch-status[data-status="tbc"], 
.launch-status[data-status="tbd"] {
    background-color: rgba(60, 10, 80, 0.4);
    border-color: rgba(180, 100, 255, 0.5);
    color: rgba(210, 170, 255, 1);
}

.launch-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .launch-details {
        grid-template-columns: 1fr;
    }
}

.launch-detail {
    position: relative;
    padding-left: 5px;
}

.launch-detail span {
    color: rgba(150, 200, 255, 0.8);
    font-weight: 500;
    margin-right: 5px;
}

/* Launch Description Styles */
.launch-description {
    margin-top: 15px;
    padding: 12px;
    background-color: rgba(0, 15, 30, 0.6);
    border: 1px solid rgba(76, 175, 255, 0.3);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.description-header {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(150, 200, 255, 0.9);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-left: 15px;
}

.description-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: rgba(76, 175, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(76, 175, 255, 0.6);
}

.description-content {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(200, 220, 255, 0.9);
    white-space: pre-line; /* Preserve line breaks from API description */
    padding-left: 15px;
    border-left: 1px dashed rgba(76, 175, 255, 0.3);
}

/* Show Description Button */
.show-description-btn {
    margin-top: 12px;
    padding: 5px 12px;
    background-color: rgba(0, 40, 80, 0.6);
    border: 1px solid rgba(76, 175, 255, 0.5);
    border-radius: 4px;
    color: rgba(150, 200, 255, 0.9);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    position: relative;
    overflow: hidden;
}

.show-description-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(76, 175, 255, 0.1), 
                transparent);
    transition: left 0.3s ease;
}

.show-description-btn:hover {
    background-color: rgba(0, 60, 120, 0.7);
    box-shadow: 0 0 10px rgba(76, 175, 255, 0.2);
    transform: translateY(-1px);
}

.show-description-btn:hover::before {
    left: 100%;
}

.show-description-btn:active {
    transform: translateY(1px);
}

/* Loading Spinner */
.rocket-panel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    gap: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(76, 175, 255, 0.2);
    border-top: 3px solid rgba(76, 175, 255, 0.8);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: rgba(150, 200, 255, 0.8);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-align: center;
}

.rocket-launch-error {
    color: rgba(255, 150, 150, 0.9);
    text-align: center;
    padding: 20px;
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 4px;
    background-color: rgba(60, 0, 0, 0.2);
}

/* Styles for the rocket panel toggle button in the control panel */
#rocket-panel-toggle {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    min-width: 120px;
    padding: 0 15px;
    color: rgba(0, 0, 0, 0.7);
    white-space: nowrap; /* Ensure text stays on one line */
}

/* Media query for small screens */
@media (max-width: 480px) {
    #rocket-panel-toggle {
        font-size: 12px; /* Slightly smaller font for very small screens */
        min-width: 110px; /* Slightly narrower minimum width */
        padding: 0 10px; /* Reduce padding slightly */
    }
}

/* Last Updated Timestamp */
.last-updated {
    padding: 5px 20px;
    font-size: 0.8rem;
    color: rgba(150, 200, 255, 0.7);
    background-color: rgba(0, 20, 40, 0.7);
    border-bottom: 1px solid rgba(76, 175, 255, 0.3);
    text-align: right;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
} 