/* STL 3D Model Viewer Styles */
.stl-viewer-container {
  position: relative;
  max-width: 800px;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 16px 0;
  background-color: var(--color-black);
  border-radius: 4px;
  overflow: hidden;
}

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

.stl-viewer-container canvas:active {
  cursor: grabbing;
}

.stl-viewer-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stl-viewer-info details {
  margin-top: 0.5rem;
}

.stl-viewer-info summary {
  color: #00a8ff;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0;
  user-select: none;
}

.stl-viewer-info summary:hover {
  color: #0088cc;
}

.stl-viewer-info details pre {
  margin-top: 0.5rem;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 0.75rem;
  overflow-x: auto;
  max-height: 300px;
}

.stl-viewer-info details code {
  font-size: 0.75rem;
  color: #c9d1d9;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
}

.stl-error {
  padding: 2rem;
  text-align: center;
  color: #ff4444;
  font-size: 0.875rem;
}

/* Smaller viewers in quoted/nested content */
.indent .stl-viewer-container {
  max-width: 100%;
  margin: 8px 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .stl-viewer-container {
    max-width: 100%;
    margin: 12px 0;
  }
}
