/**
 * WP AR Viewer - Public Styles
 */

.wp-ar-viewer-container {
    position: relative;
    overflow: hidden;
    background: #000;
    margin: 0 auto;
}

.wp-ar-viewer-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999;
}

.wp-ar-viewer-container canvas {
    display: block;
}

.wp-ar-viewer-container video {
    display: none;
}

/* Loading indicator */
.wp-ar-viewer-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.wp-ar-viewer-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: ar-viewer-spin 1s linear infinite;
}

@keyframes ar-viewer-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wp-ar-viewer-loading p {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Error message */
.wp-ar-viewer-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    max-width: 80%;
}

.wp-ar-viewer-error p {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}
