/* Three.js 3D Viewer Styles */

.three-viewer {
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 20px auto;
    border: 2px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: #222;
    position: relative;
}

.three-viewer canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.three-viewer canvas:active {
    cursor: grabbing;
}

.viewer-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 12px;
    z-index: 10;
}

.viewer-controls h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.viewer-controls p {
    margin: 2px 0;
    font-size: 11px;
}

.viewer-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px;
    border-radius: 5px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 11px;
    z-index: 10;
}

.viewer-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
    z-index: 10;
}

/* Responsive design */
@media (max-width: 768px) {
    .three-viewer {
        height: 300px;
        margin: 15px auto;
    }
    
    .viewer-controls {
        font-size: 10px;
        padding: 8px;
    }
    
    .viewer-info {
        font-size: 10px;
        padding: 6px;
    }
}

/* Dark theme compatibility */
.post .three-viewer {
    border-color: #555;
}

/* Animation for smooth transitions */
.three-viewer {
    transition: box-shadow 0.3s ease;
}

.three-viewer:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}


