/* NEXORA DR TEST — Focused Examination Interface Stylesheet */

.exam-section {
  padding: 2.5rem 0 5rem;
  position: relative;
  z-index: 10;
}

.exam-container {
  max-width: 820px;
  margin: 0 auto;
}

/* Exam Top Bar & Meta */
.exam-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.exam-meta-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.question-tracker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--nx-ivory);
  letter-spacing: 0.1em;
}

.category-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--nx-gold);
  background: var(--nx-gold-surface);
  border: var(--border-width) solid var(--nx-gold-border);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
}

/* Timed Mode Countdown Display */
.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--nx-near);
  border: var(--border-width) solid var(--nx-gold-border);
  color: var(--nx-gold);
  box-shadow: 0 0 15px rgba(196, 154, 16, 0.1);
}

.timer-pill.warning-5 {
  border-color: var(--nx-skip-amber);
  color: var(--nx-skip-amber);
  animation: pulseGlow 2s infinite;
}

.timer-pill.warning-1 {
  border-color: var(--nx-fail-red);
  color: var(--nx-fail-red);
  animation: pulseGlow 1s infinite;
}

/* Examination Progress Bar */
.exam-progress-wrapper {
  margin-bottom: 2rem;
}

.exam-progress-bar-bg {
  width: 100%;
  height: 4px;
  background: var(--nx-near);
  border-radius: 2px;
  overflow: hidden;
}

.exam-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--nx-amber), var(--nx-gold));
  width: 0%;
  transition: width 0.4s var(--transition-smooth);
}

/* Question Content Card */
.question-card {
  background: var(--nx-near);
  border: var(--border-width) solid var(--nx-card-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-elevation);
  position: relative;
}

.question-text {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--nx-ivory);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.lang-ar .question-text {
  font-family: var(--font-arabic-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.6;
}

/* Question Visual Asset Container (Signs & Scenarios) */
.question-visual-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 2rem;
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  border: var(--border-width) solid var(--nx-card-border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  overflow: hidden;
}

.question-sign-img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.question-scenario-img {
  max-width: 100%;
  max-height: 380px;
  width: auto;
  border-radius: var(--radius-xs);
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.question-scenario-img:hover {
  transform: scale(1.01);
}

.visual-zoom-hint {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--nx-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Programmatic Vehicle Marker Overlays */
.overlay-badge-container {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.vehicle-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  background: var(--nx-black);
  border: var(--border-width) solid var(--nx-gold);
  color: var(--nx-gold);
  letter-spacing: 0.1em;
}

/* Answer Choices Grid */
.answers-grid {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.answer-card {
  background: var(--nx-near);
  border: var(--border-width) solid var(--nx-card-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-align: left;
}

.lang-ar .answer-card {
  text-align: right;
}

.answer-card:hover {
  background: var(--nx-elevated);
  border-color: var(--nx-gold-border);
  transform: translateX(3px);
}

.lang-ar .answer-card:hover {
  transform: translateX(-3px);
}

.answer-marker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: var(--border-width) solid var(--nx-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-muted);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.answer-text {
  font-size: 0.95rem;
  color: var(--nx-ivory);
  line-height: 1.45;
  flex-grow: 1;
}

/* Selected State */
.answer-card.selected {
  background: var(--nx-gold-surface);
  border-color: var(--nx-gold);
  box-shadow: var(--glow-gold-subtle);
}

.answer-card.selected .answer-marker {
  background: var(--nx-gold);
  color: var(--nx-black);
  border-color: var(--nx-gold);
}

/* Practice Mode Instant Feedback States */
.answer-card.correct-feedback {
  background: var(--nx-pass-surface);
  border-color: var(--nx-pass-green);
}

.answer-card.correct-feedback .answer-marker {
  background: var(--nx-pass-green);
  color: var(--nx-black);
  border-color: var(--nx-pass-green);
}

.answer-card.wrong-feedback {
  background: var(--nx-fail-surface);
  border-color: var(--nx-fail-red);
}

.answer-card.wrong-feedback .answer-marker {
  background: var(--nx-fail-red);
  color: #ffffff;
  border-color: var(--nx-fail-red);
}

/* Instant Explanation Box (Practice Mode Only) */
.practice-explanation-box {
  background: var(--nx-elevated);
  border-left: 3px solid var(--nx-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem;
  margin-top: 1.5rem;
  display: none;
}

.lang-ar .practice-explanation-box {
  border-left: none;
  border-right: 3px solid var(--nx-gold);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.practice-explanation-box.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

.explanation-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--nx-gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.explanation-text {
  font-size: 0.875rem;
  color: var(--nx-ivory);
  line-height: 1.6;
}

/* Exam Controls Bar */
.exam-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.exam-controls-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.exam-controls-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
