/* primitives/selection.css
   Neutral base styles for the generic selection primitive.
   Always uses the "selective-" prefix. Question-types may override within their own scope.
*/

.selective-container {
  display: flex;
  justify-content: center;
  margin: 12px 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #1f2937;
}

.selective-options {
  width: 100%;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.selective-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e6e9ee;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  box-shadow: 0 1px 0 rgba(16,24,40,0.02);
  outline: none;
}

.selective-option:focus {
  box-shadow: 0 6px 18px rgba(14,165,233,0.08);
  border-color: #0ea5e9;
  transform: translateY(-2px);
}

.selective-option-label {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0f172a;
  flex-shrink: 0;
}

.selective-option-content {
  font-size: 15px;
  color: #0f172a;
  line-height: 1.35;
}

.selective-option-selected {
  border-color: #60a5fa;
  box-shadow: 0 8px 24px rgba(96,165,250,0.12);
  transform: translateY(-2px);
}

.selective-option-correct {
  border-color: #10b981 !important;
  background: linear-gradient(180deg, rgba(16,185,129,0.06), rgba(16,185,129,0.02));
  box-shadow: 0 8px 20px rgba(16,185,129,0.06);
}

.selective-option-incorrect {
  border-color: #ef4444 !important;
  background: linear-gradient(180deg, rgba(239,68,68,0.04), rgba(239,68,68,0.02));
  box-shadow: 0 8px 20px rgba(239,68,68,0.04);
}

.selective-options .selective-option[style*="pointer-events: none"] {
  opacity: 0.9;
  cursor: default;
}

@media (min-width: 720px) {
  .selective-options {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .selective-option {
    padding: 9px 10px;
  }
  .selective-option-label {
    min-width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .selective-option-content {
    font-size: 14px;
  }
}