/* CanvasPreview - Simple image preview for boulder trace */

.canvas-preview-container {
  position: relative;
  width: 100%;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Let image determine height - don't force fixed height */
  min-height: 200px;
  /* Remove max-height that causes cropping on desktop */
}

.canvas-preview-image {
  width: 100%;
  height: auto;                /* Let height scale naturally */
  max-height: 500px;           /* Reasonable limit for desktop */
  object-fit: contain;         /* CONTAIN not cover - no cropping */
  border-radius: 8px;
}

.canvas-preview-error {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  padding: 20px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .canvas-preview-container {
    min-height: 150px;
  }

  .canvas-preview-image {
    max-height: 300px;
  }

  .canvas-preview-error {
    font-size: 12px;
    padding: 16px;
    min-height: 150px;
  }
}
