/* ============================================================
   Orbiar AR Viewer — WordPress Plugin Styles
   ============================================================ */

.orbiar-viewer-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.orbiar-viewer-wrapper model-viewer {
    width: 100%;
    height: 100%;
    display: block;
}

.orbiar-ar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    white-space: nowrap;
    z-index: 10;
}

.orbiar-ar-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

.orbiar-ar-btn:active {
    transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
    .orbiar-ar-btn {
        display: none;
    }
}

.orbiar-reset-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s, transform 0.15s;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.orbiar-reset-btn.orbiar-reset-btn--visible {
    opacity: 1;
    pointer-events: auto;
}

.orbiar-reset-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.orbiar-reset-btn:active svg {
    transform: rotate(-45deg);
    transition: transform 0.3s;
}

.orbiar-poster {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
}

.orbiar-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.orbiar-poster-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #888;
    font-size: 13px;
    font-family: inherit;
}

.orbiar-badge {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
    z-index: 5;
}

.orbiar-badge:hover {
    color: rgba(0, 0, 0, 0.7);
}

.orbiar-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px dashed rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    font-size: 14px;
    color: #888;
    text-align: center;
    padding: 24px;
}
