/* Tarqiya - Hazard Perception Simulator Styles */

.hazard-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hazard-stage-card {
  position: relative;
  background-color: #0F172A;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
  width: 100%;
  cursor: crosshair;
}

.hazard-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hazard-hud {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.hazard-timer-badge {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hazard-click-prompt {
  background: rgba(13, 100, 219, 0.9);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  animation: pulseGlow 1.5s infinite;
}

.hazard-click-marker {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 3px solid #EF4444;
  background: rgba(239, 68, 68, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pingMarker 0.6s ease-out;
  z-index: 15;
}

@keyframes pingMarker {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

.hazard-feedback-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  animation: fadeIn 0.3s ease;
}

.hazard-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
}

.hazard-score-excellent {
  background-color: var(--color-success-soft);
  color: var(--color-success);
}

.hazard-score-late {
  background-color: var(--color-warning-soft);
  color: var(--color-warning);
}

.hazard-score-missed {
  background-color: var(--color-error-soft);
  color: var(--color-error);
}
