/* Shared camera/recording styles for LearnISLRecorder.
 * Used by Practice and Daily Challenge so the camera UI looks identical
 * across both. Extracted from practice/style.css.
 */

.camera-container {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#camera-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-cancel {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
}

.camera-cancel:hover { background: rgba(0,0,0,0.7); }

.camera-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* Calibrating */
.calibrate-box {
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  max-width: 320px;
}

.calibrate-box h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.calibrate-box p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 20px;
}

/* Countdown */
.countdown-value {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(146, 69, 227, 0.9);
  color: white;
  font-size: 3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: countdown-pop 0.4s ease-out;
}

@keyframes countdown-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Recording */
.recording-top-bar {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.rec-badge {
  background: #e53935;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  animation: rec-blink 1s ease-in-out infinite;
}

@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.recording-word-text {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.recording-timer {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(0,0,0,0.4);
  padding: 4px 10px;
  border-radius: 4px;
}
