/* Interactive quiz player styles (shared across catalog + watch) */

.quiz-tf-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 5.5rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.quiz-tf-btn:hover {
  transform: scale(1.02);
}

.quiz-tf-btn.selected {
  border-color: #fff;
  transform: scale(1.03);
}

.quiz-tf-true.selected {
  background: rgba(74, 222, 128, 0.35);
  border-color: #4ade80;
}

.quiz-tf-false.selected {
  background: rgba(248, 113, 113, 0.35);
  border-color: #f87171;
}

.quiz-tf-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.quiz-image-grid {
  max-width: 28rem;
  margin: 0 auto;
}

.quiz-image-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0.5rem;
  border-radius: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.quiz-image-card:hover {
  transform: scale(1.02);
}

.quiz-image-card.selected {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
}

.quiz-image-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.65rem;
}

.quiz-image-card-placeholder {
  font-size: 0.75rem;
  opacity: 0.7;
  text-align: center;
  word-break: break-all;
}

/* Matching drag-and-drop */
.quiz-matching-dnd-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.quiz-matching-dnd-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quiz-matching-dnd-left {
  font-weight: 800;
  min-width: 4.5rem;
  font-size: 1rem;
}

.quiz-matching-dnd-drop {
  flex: 1;
  min-height: 2.75rem;
  min-width: 8rem;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 0.75rem;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.quiz-matching-dnd-drop.is-drag-over {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.quiz-matching-dnd-pool-label {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.quiz-matching-dnd-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.15);
  min-height: 3rem;
}

.quiz-matching-dnd-card {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1d28;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.quiz-matching-dnd-card.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.quiz-matching-dnd-drop .quiz-matching-dnd-card {
  cursor: pointer;
}

.quiz-color-dot.selected {
  transform: scale(1.12);
  border-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

/* Watch theme overrides */
.text-\[\#2f4a6b\] .quiz-tf-btn {
  border-color: rgba(47, 74, 107, 0.2);
  background: rgba(255, 255, 255, 0.85);
  color: #2f4a6b;
}

.text-\[\#2f4a6b\] .quiz-matching-dnd-drop {
  border-color: rgba(47, 74, 107, 0.25);
}

.text-\[\#2f4a6b\] .quiz-matching-dnd-pool {
  background: rgba(47, 74, 107, 0.06);
}

.text-\[\#2f4a6b\] .quiz-image-card {
  border-color: rgba(47, 74, 107, 0.15);
  background: #fff;
}
