/* 3D Gaussian Splatting Viewer Styles */

/* FPS mode overlay - shown when entering first person mode */
#fps-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    color: white;
    font-family: "Plus Jakarta Sans", sans-serif;
    cursor: pointer;
}

#fps-overlay h2 {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 500;
}

#fps-overlay p {
    margin: 4px 0;
    font-size: 14px;
    opacity: 0.8;
}

#fps-overlay .click-hint {
    margin-top: 24px;
    padding: 12px 24px;
    background: rgba(99, 102, 241, 0.8);
    border-radius: 8px;
    font-size: 16px;
}

/* FPS crosshair */
#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 1001;
    display: none;
}

#crosshair::before,
#crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
}

#crosshair::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

#crosshair::after {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

/* Loading progress */
#loading-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-family: "Plus Jakarta Sans", sans-serif;
    z-index: 9999;
}

#loading-progress .progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}

#loading-progress .progress-fill {
    height: 100%;
    background: #6366f1;
    width: 0%;
    transition: width 0.3s ease;
}

/* Keyboard hints tooltip */
#keyboard-hints {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 12px;
    z-index: 999;
    display: none;
    white-space: nowrap;
}

#keyboard-hints kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
    margin: 0 2px;
}

/* Toolbar separator */
.tooltray__separator {
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    margin: 0 4px;
}

/* Mobile touch hint */
@media (max-width: 768px) {
    .tooltray {
        bottom: 24px;
        padding: 8px;
    }

    .tooltray__btn {
        width: 40px;
        height: 40px;
    }

    #fps-overlay {
        padding: 20px;
        text-align: center;
    }
}
