/**
 * ExploreXR Model Viewer Preloading Styles
 * This file contains only essential styles for displaying posters and loading indicators
 * before the main model-viewer script loads
 */

/* Essential poster image styling */
.explorexr-model-poster {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 200px;
}

/* Essential preloading styling */
.explorexr-preloading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 100;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.explorexr-preloading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 115, 170, 0.3);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: explorexr-spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes explorexr-spin {
    to { transform: rotate(360deg); }
}

.explorexr-preloading-text {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    text-align: center;
}

/* Loading bar base styles defined in model-viewer.css — not duplicated here. */
