/**
 * Standalone 3D Viewer Styles
 * Clean, modern design
 */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Color palette */
:root {
  --standalone-bg: #0c0d10;
  --standalone-surface: #15171c;
  --standalone-surface-hover: #1c1f26;
  --standalone-border: #252830;
  --standalone-border-hover: #363a45;
  --standalone-text: #f0f0f2;
  --standalone-text-muted: #8b8f9a;
  --standalone-text-subtle: #5c6070;
  --standalone-accent: #818cf8;
  --standalone-accent-hover: #a5b4fc;
  --standalone-accent-glow: rgba(129, 140, 248, 0.15);
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #818cf8 0%, #a5b4fc 100%);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--standalone-surface);
  border: 1px solid var(--standalone-border);
  color: var(--standalone-text);
}

.btn-secondary:hover {
  background: var(--standalone-surface-hover);
  border-color: var(--standalone-border-hover);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* Body */
body.standalone-viewer3d {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--standalone-bg);
  color: var(--standalone-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.standalone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--standalone-surface);
  border-bottom: 1px solid var(--standalone-border);
  flex-shrink: 0;
}

.standalone-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--standalone-text);
}

.standalone-header-brand svg {
  color: var(--standalone-accent);
  opacity: 0.9;
}

.standalone-header-brand h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.standalone-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Main */
.standalone-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: radial-gradient(ellipse at center top, rgba(99, 102, 241, 0.03) 0%, transparent 60%);
}

/* Dropzone */
.standalone-dropzone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.standalone-dropzone.is-hidden {
  display: none;
}

.standalone-dropzone.is-dragging .standalone-dropzone-content {
  border-color: var(--standalone-accent);
  background: var(--standalone-accent-glow);
  transform: scale(1.01);
}

.standalone-dropzone-content {
  max-width: 460px;
  width: 100%;
  padding: 56px 44px;
  border: 2px dashed var(--standalone-border);
  border-radius: 20px;
  background: var(--standalone-surface);
  text-align: center;
  transition: all 0.25s ease;
}

.standalone-dropzone-content:hover {
  border-color: var(--standalone-border-hover);
}

.standalone-dropzone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(129, 140, 248, 0.05) 100%);
  color: var(--standalone-accent);
}

.standalone-dropzone-icon svg {
  opacity: 0.8;
}

.standalone-dropzone-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--standalone-text);
  letter-spacing: -0.02em;
}

.standalone-dropzone-hint {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--standalone-text-muted);
}

.standalone-dropzone-or {
  margin: 0 0 20px;
  font-size: 12px;
  color: var(--standalone-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Viewer container */
.standalone-main .inline-files-viewer {
  margin: 0;
  border: none;
  border-radius: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--standalone-bg);
}

.standalone-main .inline-files-viewer-stage {
  flex: 1;
  height: auto !important;
  background: #0a0b0d;
}

.standalone-main .inline-files-viewer-meta {
  display: none;
}

.standalone-main .inline-files-viewer.is-hidden {
  display: none;
}

/* Responsive */
@media (max-width: 640px) {
  .standalone-header {
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .standalone-header-brand h1 {
    font-size: 15px;
  }

  .standalone-dropzone {
    padding: 24px 16px;
  }

  .standalone-dropzone-content {
    padding: 40px 24px;
    border-radius: 16px;
  }

  .standalone-dropzone-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .standalone-dropzone-icon svg {
    width: 32px;
    height: 32px;
  }

  .standalone-dropzone-title {
    font-size: 18px;
  }
}
