/**
 * Frontend styles — Three.js 3D Viewer
 */

.tjsv-viewer {
    position: relative;
    width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin: 1em 0;
    min-height: 200px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tjsv-viewer canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.tjsv-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #555;
    pointer-events: none;
    text-align: center;
    padding: 0 16px;
    direction: rtl;
    font-family: var(--wp--preset--font-family--vazir-fd-wol);
}

.tjsv-status[data-kind="error"] {
    color: #b32d2e;
    background: rgba(253, 226, 225, 0.85);
    pointer-events: auto;
}

.tjsv-error {
    padding: 12px 16px;
    background: #fde2e1;
    border-left: 4px solid #d63638;
    color: #5a1a1a;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

@media (max-width: 600px) {
    .tjsv-viewer {
        height: 320px !important;
    }
}