/* ---------------------------------------------
   GLOBAL PAGE LAYOUT (matches History Quiz)
---------------------------------------------- */

body {
  background: #111827;
  color: #f9fafb;
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
}

/* Centered content wrapper like History Quiz */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ---------------------------------------------
   QUIZ CONTAINER
---------------------------------------------- */

.quiz {
  background: #020617;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  margin-top: 30px; /* ensures space under header */
}

.quiz h1 {
  margin-top: 0;
  font-size: 28px;
  font-weight: 700;
}

.quiz p {
  margin-bottom: 24px;
  color: #d1d5db;
}

/* ---------------------------------------------
   GRID LAYOUT
---------------------------------------------- */

.columns {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
}

/* ---------------------------------------------
   ARTIST LIST + WORK LIST
---------------------------------------------- */

.artists,
.works {
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 12px;
  background: #0f172a;
}

/* ---------------------------------------------
   ARTIST CARDS
---------------------------------------------- */

.artist-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: grab;
  display: flex;
  align-items: center;
  gap: 10px;
}

.artist-card.dragging {
  opacity: 0.7;
  transform: scale(1.02);
  border-color: #38bdf8;
}

.artist-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ---------------------------------------------
   WORK ROWS
---------------------------------------------- */

.work-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  min-height: 130px;
}

.work-img {
  width: 140px;
  height: 110px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 1px solid #1f2937;
  flex-shrink: 0;
}

/* ---------------------------------------------
   DROP SLOTS
---------------------------------------------- */

.drop-slot {
  border: 1px dashed #374151;
  border-radius: 999px;
  padding: 6px 10px;
  text-align: center;
  color: #6b7280;
}

.drop-slot.over {
  border-color: #38bdf8;
  color: #e5e7eb;
}

.drop-slot.filled {
  border-style: solid;
  border-color: #1f2937;
  color: #e5e7eb;
  text-align: left;
}

.artist-pill {
  background: #111827;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  font-size: 13px;
}

/* ---------------------------------------------
   CONTROLS + BUTTONS
---------------------------------------------- */

.controls {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
}

.primary {
  background: #38bdf8;
  color: #0f172a;
}

.secondary {
  background: #1f2937;
  color: #e5e7eb;
}

/* ---------------------------------------------
   RESULTS
---------------------------------------------- */

.results {
  margin-top: 20px;
}

.correct {
  color: #22c55e;
}

.incorrect {
  color: #f97316;
}

