/* Star Trail Page Specific Styles */

/* Hero Section */
.startrail-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #16213e 0%, #0f0f23 100%);
    text-align: center;
}

.startrail-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b8b8d1;
    max-width: 600px;
    margin: 0 auto;
}

/* Star Trail Section */
.startrail-section {
    padding: 80px 0;
    background: #0f0f23;
    min-height: 60vh;
}

.startrail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 1rem;
}

.startrail-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 600;
    margin: 0;
}

.startrail-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.startrail-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.startrail-selector label {
    color: #b8b8d1;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.startrail-dropdown {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.startrail-dropdown:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 0.15);
}

.startrail-dropdown option {
    background: #0f0f23;
    color: #ffffff;
    padding: 0.5rem;
}

.control-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.control-btn.active {
    background: #4a90e2;
    border-color: #4a90e2;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 60px 0;
    color: #b8b8d1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Star Trail Container */
.startrail-container {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.startrail-container:hover {
    border-color: rgba(74, 144, 226, 0.5);
}

.startrail-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
    background: #000;
    object-fit: contain;
}

/* Star Trail Info */
.startrail-info {
    padding: 1.5rem;
    background: rgba(15, 15, 35, 0.8);
}

.startrail-date {
    font-size: 1.1rem;
    color: #4a90e2;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.startrail-filename {
    font-size: 0.9rem;
    color: #b8b8d1;
    font-family: monospace;
    word-break: break-all;
}

/* No Star Trail State */
.no-startrail {
    text-align: center;
    padding: 80px 0;
    color: #b8b8d1;
}

.no-startrail-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.no-startrail h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Fullscreen Star Trail */
.startrail-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    background: #000;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.startrail-container.fullscreen .startrail-image {
    flex: 1;
    max-height: none;
    height: 100%;
    object-fit: contain;
}

.startrail-container.fullscreen .startrail-info {
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .startrail-hero h1 {
        font-size: 2.5rem;
    }
    
    .startrail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .startrail-header h2 {
        font-size: 2rem;
    }
    
    .startrail-controls {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .startrail-selector {
        width: 100%;
        justify-content: center;
    }
    
    .startrail-dropdown {
        min-width: 150px;
        flex: 1;
    }
    
    .control-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .startrail-info {
        padding: 1rem;
    }
    
    .startrail-date {
        font-size: 1rem;
    }
    
    .startrail-filename {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .startrail-hero h1 {
        font-size: 2rem;
    }
    
    .startrail-header h2 {
        font-size: 1.5rem;
    }
    
    .startrail-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .control-btn {
        width: 100%;
        padding: 0.75rem;
    }
    
    .startrail-container {
        margin-top: 1rem;
    }
    
    .startrail-info {
        padding: 0.75rem;
    }
}

/* Error State */
.startrail-error {
    text-align: center;
    padding: 40px;
    color: #ff6b6b;
}

.startrail-error h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.startrail-error p {
    color: #b8b8d1;
    margin-bottom: 1rem;
}

.startrail-error .retry-btn {
    background: #4a90e2;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.startrail-error .retry-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
} 