/* Estilos para o visualizador 3D da GPU */

.gpu3d-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #00ff41;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  color: #00ff41;
  font-family: 'Courier New', monospace;
  z-index: 1000;
  min-width: 200px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 255, 65, 0.3);
  border-top: 3px solid #00ff41;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.loading-progress {
  font-size: 0.9rem;
  opacity: 0.8;
}

.gpu3d-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 0, 0, 0.1);
  border: 2px solid #ff4444;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  color: #ff4444;
  font-family: 'Courier New', monospace;
  z-index: 1000;
  min-width: 250px;
}

.error-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-text {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.error-retry {
  background: #ff4444;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.error-retry:hover {
  background: #cc3333;
}

/* Container do canvas 3D */
.gpu-3d-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: #0a0a0a;
  border-radius: 10px;
  overflow: hidden;
}

#gpu3dCanvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Controles avançados */
.gpu3d-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #00ff41;
  border-radius: 8px;
  padding: 1rem;
  z-index: 100;
  min-width: 200px;
  font-family: 'Courier New', monospace;
  color: #00ff41;
}

.controls-header {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: center;
  border-bottom: 1px solid #00ff41;
  padding-bottom: 0.5rem;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.control-btn {
  background: transparent;
  color: #00ff41;
  border: 1px solid #00ff41;
  padding: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.control-btn:hover {
  background: rgba(0, 255, 65, 0.2);
  transform: translateY(-1px);
}

.control-btn.active {
  background: #00ff41;
  color: #000;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.control-btn .icon {
  font-size: 1.2rem;
}

.speed-control {
  margin-bottom: 1rem;
}

.speed-control label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.speed-control input[type="range"] {
  width: 100%;
  height: 4px;
  background: rgba(0, 255, 65, 0.3);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}

.speed-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #00ff41;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.speed-control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #00ff41;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.stats-display {
  text-align: center;
  font-size: 0.8rem;
  padding: 0.5rem;
  background: rgba(0, 255, 65, 0.1);
  border-radius: 3px;
  border: 1px solid rgba(0, 255, 65, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
  .gpu3d-loading,
  .gpu3d-error {
    padding: 1.5rem;
    min-width: 180px;
  }
  
  .loading-text {
    font-size: 1rem;
  }
  
  .error-text {
    font-size: 0.9rem;
  }
}

/* Informações da GPU */
.gpu-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: #00ff41;
  padding: 2rem 1rem 1rem;
  font-family: 'Courier New', monospace;
}

.gpu-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: #00ff41;
}

.gpu-info p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.9;
}

.gpu-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.spec-item {
  font-size: 0.8rem;
  padding: 0.25rem 0;
  border-left: 2px solid #00ff41;
  padding-left: 0.5rem;
}

.spec-item strong {
  color: #00ff41;
}

/* Animações de entrada */
.gpu3d-loading,
.gpu3d-error {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
} 
