/* PausAR 3D Viewer - Premium Styles */

.pausar-viewer-container {
    width: 100%;
    height: 500px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}

/* Premium AR Button Styles */
.pausar-ar-button {
    background: #11121d;
    border-radius: 8px;
    border: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    white-space: nowrap;
    text-decoration: none !important;
}

/* Force visibility in Elementor Editor or for preview */
.elementor-editor-active .pausar-ar-button,
model-viewer:not([ar-status="not-presenting"]) .pausar-ar-button {
    display: flex !important;
}

/* Show it anyway if the browser is desktop for visual confirmation */
@media (min-width: 1025px) {
    .pausar-ar-button {
        display: flex !important;
        opacity: 0.8;
    }
    .pausar-ar-button:hover {
        opacity: 1;
    }
}

.pausar-ar-button:hover {
    background: #2a2c3a;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.pausar-ar-button:active {
    transform: translateX(-50%) translateY(0);
}

.pausar-ar-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Custom Loading/Progress Bar */
#pausar-progress-bar {
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #ff00cc, #3333ff);
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.3s;
    z-index: 20;
}

/* AR Status Indicator (from screenshot) */
.pausar-ar-status {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    background: rgba(30, 60, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.pausar-ar-status.visible {
    opacity: 1;
}

.pausar-status-icon {
    width: 40px;
    height: 40px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pausar-status-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.pausar-status-text p {
    margin: 5px 0 0;
    font-size: 13px;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

model-viewer[ar-status="not-presenting"] .pausar-ar-button {
    display: flex;
}
