/**
 * Three.js 3D Scene Container Styling
 */

#three-js-container {
  width: 100%;
  height: 300px;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.2);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(79, 70, 229, 0.3);
}

@media (max-width: 768px) {
  #three-js-container {
    height: 250px;
    margin: 15px 0;
  }
}

@media (max-width: 480px) {
  #three-js-container {
    height: 200px;
    margin: 10px 0;
  }
}

/* Product 3D Showcase */
#product-3d-showcase {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.15);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(79, 70, 229, 0.2);
  margin: 20px 0;
}

@media (max-width: 768px) {
  #product-3d-showcase {
    height: 300px;
  }
}

@media (max-width: 480px) {
  #product-3d-showcase {
    height: 250px;
  }
}

/* 3D Badge */
.three-d-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.three-d-badge i {
  font-size: 0.85em;
}

/* Loading spinner for 3D scenes */
.three-d-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #4f46e5;
}

.three-d-loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid rgba(79, 70, 229, 0.2);
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 3D Scene wrapper */
.three-d-wrapper {
  position: relative;
  width: 100%;
}

.three-d-info {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 70, 229, 0.3);
}

/* Floating 3D icon indicator */
.three-d-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.three-d-indicator:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

/* 3D Container animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#three-js-container,
#product-3d-showcase {
  animation: fadeInUp 0.6s ease-out;
}
