/* MAGG Garden Mini Quiz — static CSS asset. Garden theme, mobile-first. */

[data-magg-garden-mini-quiz]:empty {
  display: none;
}

[data-magg-garden-mini-quiz] {
  margin: 1.5rem 0 0.5rem;
  font-family: inherit;
  color: inherit;
}

.mgmq-panel {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.25rem 1.5rem 1.5rem;
  max-width: 600px;
}

.mgmq-panel--complete {
  border-color: rgba(180, 220, 120, 0.25);
}

/* Kicker / label */
.mgmq-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.5rem;
}

/* Title */
.mgmq-title,
.mgmq-complete-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0e8cc;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.mgmq-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.75rem;
}

/* Question */
.mgmq-progress {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 0.5rem;
}

.mgmq-question-text {
  font-size: 1rem;
  font-weight: 600;
  color: #f0e8cc;
  margin: 0 0 1rem;
  line-height: 1.4;
}

/* Intro / safe note */
.mgmq-intro {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.6rem;
  line-height: 1.5;
}

.mgmq-safe-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0.75rem 0 0;
  line-height: 1.4;
}

/* Options */
.mgmq-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mgmq-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  text-align: left;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-family: inherit;
  transition: background 0.12s ease, border-color 0.12s ease;
  width: 100%;
}

.mgmq-option:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.28);
}

.mgmq-option--selected {
  background: rgba(100, 160, 80, 0.22);
  border-color: rgba(130, 200, 90, 0.5);
  color: #d8f0b0;
}

.mgmq-option--correct {
  background: rgba(60, 170, 80, 0.25);
  border-color: rgba(80, 200, 100, 0.55);
  color: #b8f0b0;
}

.mgmq-option--wrong {
  background: rgba(190, 60, 40, 0.22);
  border-color: rgba(220, 80, 60, 0.5);
  color: #f0c0b0;
}

.mgmq-option:disabled {
  cursor: default;
}

.mgmq-option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.mgmq-option-text {
  flex: 1;
  line-height: 1.4;
}

/* Feedback */
.mgmq-feedback {
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.mgmq-feedback--correct {
  background: rgba(60, 170, 80, 0.18);
  border: 1px solid rgba(80, 200, 100, 0.35);
  color: #c0f0b0;
}

.mgmq-feedback--incorrect {
  background: rgba(190, 60, 40, 0.18);
  border: 1px solid rgba(220, 80, 60, 0.35);
  color: #f0c0b0;
}

.mgmq-feedback-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.3rem;
  opacity: 0.8;
}

.mgmq-feedback-text {
  margin: 0 0 0.25rem;
}

.mgmq-explanation {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  opacity: 0.8;
  font-style: italic;
}

/* Completion */
.mgmq-complete-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

/* Earth note */
.mgmq-earth-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
  margin: 0.4rem 0 0;
  line-height: 1.4;
}

/* Empty state */
.mgmq-empty {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* Actions */
.mgmq-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Buttons */
.mgmq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.13s ease, opacity 0.13s ease;
  text-decoration: none;
  line-height: 1.2;
}

.mgmq-btn:disabled,
.mgmq-btn[aria-disabled='true'] {
  opacity: 0.4;
  cursor: default;
}

.mgmq-btn-primary {
  background: rgba(90, 160, 60, 0.85);
  border-color: rgba(110, 190, 80, 0.6);
  color: #fff;
}

.mgmq-btn-primary:hover:not(:disabled) {
  background: rgba(100, 175, 70, 0.95);
}

.mgmq-btn-soft {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
}

.mgmq-btn-soft:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}

.mgmq-btn-earth {
  background: rgba(50, 90, 180, 0.7);
  border-color: rgba(80, 130, 220, 0.5);
  color: #d0e4ff;
}

.mgmq-btn-earth:hover:not(:disabled) {
  background: rgba(60, 100, 200, 0.85);
}

/* Mobile */
@media (max-width: 480px) {
  .mgmq-panel {
    padding: 1rem 1rem 1.25rem;
  }

  .mgmq-title,
  .mgmq-complete-title {
    font-size: 0.98rem;
  }

  .mgmq-question-text {
    font-size: 0.95rem;
  }
}
