/* VR 3D Tiles Popup - Fast Panel V2 Styling */
/* Premium minimal neutral dark theme for VR mode */

.vr-3d-tiles-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: all;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.vr-3d-tiles-popup.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.95);
}

.vr-3d-tiles-content {
  width: 480px;
  background: linear-gradient(135deg, rgba(20, 20, 25, 0.98) 0%, rgba(25, 25, 30, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header */
.vr-3d-tiles-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vr-3d-tiles-icon {
  font-size: 28px;
  line-height: 1;
}

.vr-3d-tiles-title {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.3px;
}

.vr-3d-tiles-close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vr-3d-tiles-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
}

/* Description */
.vr-3d-tiles-description {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Location */
.vr-3d-tiles-location {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 20px;
}

.vr-location-label {
  font-size: 16px;
}

.vr-location-coords {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
  color: rgba(96, 165, 250, 1);
  letter-spacing: 0.3px;
}

/* Buttons */
.vr-3d-tiles-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.vr-btn-3d-tiles {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.vr-btn-3d-tiles:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.vr-btn-3d-tiles:active {
  transform: translateY(0);
}

.vr-btn-osm {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
  border-color: rgba(34, 197, 94, 0.3);
}

.vr-btn-osm:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
}

.vr-btn-icon {
  font-size: 20px;
  line-height: 1;
}

.vr-btn-text {
  flex: 1;
  text-align: left;
}

/* Hint */
.vr-3d-tiles-hint {
  padding: 12px 16px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 8px;
}

.vr-3d-tiles-hint small {
  font-size: 12px;
  color: rgba(252, 211, 77, 1);
  line-height: 1.5;
  letter-spacing: 0.2px;
}

/* VR Controller Hint */
.vr-controller-hint {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.vr-controller-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}

.vr-hint-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(20, 20, 25, 0.95) 0%, rgba(25, 25, 30, 0.95) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 12px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  animation: vr-hint-pulse 2s ease-in-out infinite;
}

.vr-hint-icon {
  font-size: 32px;
  line-height: 1;
  animation: vr-hint-bounce 1s ease-in-out infinite;
}

.vr-hint-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vr-hint-text strong {
  font-size: 16px;
  font-weight: 700;
  color: rgba(96, 165, 250, 1);
  letter-spacing: 0.3px;
}

.vr-hint-text span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.2px;
}

/* Animations */
@keyframes vr-hint-pulse {
  0%, 100% {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 0 24px rgba(59, 130, 246, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 0 32px rgba(59, 130, 246, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

@keyframes vr-hint-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

