/* === Practice-Specific Styles ============================================= */
/* Shared styles (reset, buttons, word card, carousel, picker, summary, etc.)
   are in /shared/session.css */

/* --- Camera --------------------------------------------------------------- */

.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;
}

.btn-stop {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

/* --- Result --------------------------------------------------------------- */

.result-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.result-header {
  text-align: center;
}

.result-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 2rem;
}

.result-icon-circle.passed {
  background: #e8f5e9;
  color: #43a047;
}

.result-icon-circle.failed {
  background: #fce4ec;
  color: #e53935;
}

.result-header h2 {
  font-size: 1.3rem;
}

.result-confidence {
  font-size: 0.9rem;
  color: #888;
  margin-top: 4px;
}

.result-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  align-items: start;
}

.comparison-col {
  text-align: center;
}

.comparison-col h3 {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
  font-weight: 600;
}

.media-box {
  min-height: 180px;
  background: #fafafa;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.comparison-col video {
  width: 100%;
  max-height: 240px;
  border-radius: 8px;
  background: #000;
  object-fit: contain;
}

.feedback-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #6d4c00;
  width: 100%;
  max-width: 600px;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Responsive (practice-specific) --------------------------------------- */

@media (max-width: 480px) {
  .result-comparison { grid-template-columns: 1fr; }
}
