/* ========================================
   COSMIC EXPLORER - MAIN STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: #000000;
    color: #ffffff;
}

/* ========================================
   CANVAS
   ======================================== */

#cosmos-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.visible {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
}

/* ========================================
   INFO PANEL
   ======================================== */

#info-panel {
    position: fixed;
    bottom: 40px;
    left: 40px;
    max-width: 400px;
    padding: 24px 32px;
    background: rgba(0, 5, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#info-panel.hidden {
    transform: translateY(100px);
    opacity: 0;
}

.info-content h3 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #64c8ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(100, 200, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(100, 200, 255, 0.5);
    gap: 15px;
    /* Prevent text touching */
    flex-wrap: wrap;
    /* Allow wrapping if space is tight */
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 16px;
    font-weight: 500;
    color: #64c8ff;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    #info-panel {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
        padding: 20px;
    }

    .info-content h3 {
        font-size: 24px;
    }

    .info-content p {
        font-size: 14px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ========================================
   SCROLLBAR (for future use)
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 200, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 200, 255, 0.5);
}