/* Tesla Flight - 新增功能样式 */

/* 照片模式 UI */
#photo-ui {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: rgba(10, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0ecf1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-width: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s ease;
}

#photo-ui h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #4a9eff;
}

#photo-ui .control-group {
  margin: 16px 0;
}

#photo-ui label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #b0c4d4;
}

#photo-ui input[type="range"] {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

#photo-ui input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4a9eff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

#photo-ui input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

#photo-ui input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: #4a9eff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#photo-ui .value-display {
  font-size: 12px;
  color: #7a92a8;
  margin-top: 4px;
  display: block;
}

#photo-ui .shortcuts {
  margin: 16px 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.8;
}

#photo-ui .shortcuts span {
  display: block;
  color: #9ab4c8;
}

#photo-ui .shortcuts kbd {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  font-family: monospace;
  font-size: 11px;
  color: #d0e0ed;
  margin-right: 8px;
}

#photo-capture {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #4a9eff 0%, #357ae8 100%);
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

#photo-capture:hover {
  background: linear-gradient(135deg, #5aa8ff 0%, #4689f0 100%);
  box-shadow: 0 6px 16px rgba(74, 158, 255, 0.4);
  transform: translateY(-1px);
}

#photo-capture:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}

/* 挑战通知动画 */
.challenge-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 200;
  background: linear-gradient(135deg, rgba(10, 20, 35, 0.95) 0%, rgba(20, 35, 50, 0.95) 100%);
  backdrop-filter: blur(16px);
  padding: 32px 48px;
  border-radius: 16px;
  border: 2px solid rgba(74, 158, 255, 0.4);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6), 0 0 80px rgba(74, 158, 255, 0.2);
  opacity: 0;
  animation: challengePopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             challengePopOut 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19) 3.6s forwards;
  pointer-events: none;
}

.challenge-notification .icon {
  font-size: 64px;
  text-align: center;
  margin-bottom: 16px;
  animation: challengeIconPulse 1.5s ease-in-out infinite;
}

.challenge-notification .title {
  font-size: 28px;
  font-weight: bold;
  color: #4a9eff;
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(74, 158, 255, 0.5);
}

.challenge-notification .description {
  font-size: 16px;
  color: #b0c4d4;
  text-align: center;
  margin-bottom: 16px;
}

.challenge-notification .reward {
  font-size: 20px;
  font-weight: bold;
  color: #ffd700;
  text-align: center;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

@keyframes challengePopIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotate(-5deg);
  }
  60% {
    transform: translate(-50%, -50%) scale(1.05) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes challengePopOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9) translateY(-20px);
  }
}

@keyframes challengeIconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* 时间倒带状态指示 */
.rewind-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 72px;
  color: rgba(74, 158, 255, 0.8);
  text-shadow: 0 0 20px rgba(74, 158, 255, 0.6);
  animation: rewindPulse 0.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 150;
}

@keyframes rewindPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* 隐藏元素的通用类 */
.hidden {
  display: none !important;
}

