/* pbq-styles.css — PBQ Engine Styles */

/* ── MATCH (drag-and-drop) ─────────────────────────────────────── */
.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .match-grid { grid-template-columns: 1fr; } }

.match-col { display: flex; flex-direction: column; gap: 10px; }
.match-col-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal, #00cfc8);
  margin-bottom: 4px;
}

.match-item {
  background: var(--card, #0d2137);
  border: 1.5px solid var(--border, rgba(0,207,200,.18));
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .85rem;
  cursor: grab;
  transition: border-color .2s, box-shadow .2s;
  user-select: none;
}
.match-item:hover { border-color: var(--teal, #00cfc8); box-shadow: 0 0 8px rgba(0,207,200,.2); }
.match-item.dragging { opacity: .5; }

.match-slot { display: flex; flex-direction: column; gap: 6px; }
.match-target-label {
  font-size: .82rem;
  color: var(--muted, #6b92b8);
  line-height: 1.45;
  padding: 0 2px;
}

.match-drop {
  min-height: 44px;
  border: 1.5px dashed var(--border, rgba(0,207,200,.18));
  border-radius: 6px;
  padding: 8px 12px;
  font-size: .82rem;
  color: var(--muted, #6b92b8);
  display: flex;
  align-items: center;
  transition: border-color .15s, background .15s;
}
.match-drop.drag-over {
  border-color: var(--teal, #00cfc8);
  background: rgba(0,207,200,.06);
}
.match-drop.correct { border-color: #00c896; background: rgba(0,200,150,.1); color: #00c896; }
.match-drop.incorrect { border-color: #ff4f4f; background: rgba(255,79,79,.08); }
.match-drop .match-item { border: none; background: transparent; padding: 0; margin: 0; }

/* ── ORDER (drag to reorder) ───────────────────────────────────── */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card, #0d2137);
  border: 1.5px solid var(--border, rgba(0,207,200,.18));
  border-radius: 6px;
  padding: 12px 16px;
  font-size: .87rem;
  cursor: grab;
  transition: border-color .15s, opacity .15s;
  user-select: none;
}
.order-item:hover { border-color: rgba(0,207,200,.4); }
.order-item.dragging { opacity: .4; }
.order-handle { color: var(--muted, #6b92b8); font-size: 1rem; flex-shrink: 0; }
.order-item.correct { border-color: #00c896; background: rgba(0,200,150,.08); }
.order-item.incorrect { border-color: #ff4f4f; background: rgba(255,79,79,.07); }

/* ── FILL-IN ───────────────────────────────────────────────────── */
.fillin-wrap { margin-top: 8px; }
.fillin-prompt {
  font-size: .9rem;
  color: var(--white, #e8f0f8);
  line-height: 1.6;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: rgba(0,207,200,.04);
  border-left: 3px solid var(--teal, #00cfc8);
  border-radius: 0 6px 6px 0;
}
.fillin-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fillin-prefix,
.fillin-suffix {
  font-family: 'JetBrains Mono', monospace;
  font-size: .9rem;
  color: var(--teal, #00cfc8);
  white-space: nowrap;
}
.fillin-input {
  flex: 1;
  min-width: 180px;
  background: var(--card, #0d2137);
  border: 1.5px solid var(--border, rgba(0,207,200,.18));
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .9rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--white, #e8f0f8);
  outline: none;
  transition: border-color .2s;
}
.fillin-input:focus { border-color: var(--teal, #00cfc8); }
.fillin-input.correct { border-color: #00c896; background: rgba(0,200,150,.08); }
.fillin-input.incorrect { border-color: #ff4f4f; background: rgba(255,79,79,.07); }

/* ── EXPLANATION ───────────────────────────────────────────────── */
.exp-correct {
  background: rgba(0,200,150,.1);
  border-left: 3px solid #00c896;
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  color: var(--white, #e8f0f8);
  font-size: .87rem;
  line-height: 1.6;
}
.exp-incorrect {
  background: rgba(255,79,79,.08);
  border-left: 3px solid #ff4f4f;
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  color: var(--white, #e8f0f8);
  font-size: .87rem;
  line-height: 1.6;
}
