/**
 * 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;
}

/* Minimal loading bar styles */
.explorexr-loading-bar-container {
    position: relative;
    width: 80%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.explorexr-loading-bar {
    height: 100%;
    width: 0%;
    background-color: #0073aa;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Load model button styling */
.explorexr-load-model-btn,
.ExploreXR-load-model-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.explorexr-load-model-btn:hover,
.ExploreXR-load-model-btn:hover {
    background-color: #005177;
}

/* Container styling */
.explorexr-model-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px;
}
