 /*************************************************
 * Fynestudy Quiz – Clean SuperKalam-style Theme
 *************************************************/

/* ---------- GLOBAL WRAPPER ---------- */

.fsq-quiz-wrapper {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.5;

  width: 100%;
  max-width: 880px;
  margin: 0 auto 24px auto;
  box-sizing: border-box;
}

/* ---------- HEADER (TITLE + META) ---------- */

.fsq-quiz-header {
  margin-bottom: 12px;
}

.fsq-title {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
}

.fsq-meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* ---------- QUESTION CARD ---------- */

.fsq-question-card {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fsq-question-card:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

/* subtle border only, no full green/red background */
.fsq-card-correct {
  background: #ffffff !important;
  border-color: #16a34a !important;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.16);
}

.fsq-card-incorrect {
  background: #ffffff !important;
  border-color: #f97373 !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.16);
}

/* ---------- QUESTION LABEL + TEXT ---------- */

.fsq-q-header {
  margin-bottom: 4px;
}

.fsq-q-label {
  font-size: 11px;
  font-weight: 600;
  color: #f97316;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fsq-question-text {
  font-size: 15px;
  color: #111827;
  margin-bottom: 10px;
}

/* ---------- OPTIONS (PILLS) ---------- */

.fsq-options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
}

.fsq-option {
  width: 60%;
  max-width: 420px;

  text-align: left;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;

  transition: background 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease, transform 0.05s ease;
}

.fsq-option:hover {
  background: #e5f0ff;
  border-color: #bfdbfe;
}

.fsq-option:active {
  transform: scale(0.99);
}

/* selected but not checked yet */
.fsq-option-selected {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px #bfdbfe;
}

/* correct option */
.fsq-opt-correct {
  border-color: #16a34a !important;
  background: #dcfce7 !important;
}

/* wrong selected option */
.fsq-opt-wrong-selected {
  border-color: #f97373 !important;
  background: #fee2e2 !important;
}

/* option contents */

.fsq-option-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-weight: 600;
  font-size: 13px;
  color: #111827;
}

.fsq-opt-correct .fsq-option-badge {
  background: #16a34a;
  color: #ffffff;
}

.fsq-opt-wrong-selected .fsq-option-badge {
  background: #f97373;
  color: #ffffff;
}

.fsq-option-text {
  flex: 1;
}

.fsq-option-status {
  margin-left: 8px;
  font-size: 15px;
}

/* mobile: full width options */
@media (max-width: 640px) {
  .fsq-option {
    width: 100%;
    max-width: 100%;
  }
}

/* ---------- EXPLANATION SECTION ---------- */

.fsq-expl-toggle-wrap {
  margin-top: 8px;
}

.fsq-expl-toggle {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fsq-expl-toggle-disabled {
  opacity: 0.6;
  cursor: default;
}

.fsq-explanation {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  font-size: 13px;
  color: #111827;
}

.fsq-exp-title {
  margin-bottom: 4px;
  font-weight: 600;
}

.fsq-exp-main {
  margin-bottom: 6px;
}

.fsq-exp-subtitle {
  margin: 4px 0;
  font-weight: 600;
}

.fsq-exp-list {
  margin: 0;
  padding-left: 18px;
}

.fsq-exp-list li {
  margin-bottom: 3px;
}

/* ---------- FOOTER (PAGE NAV + SUMMARY) ---------- */

.fsq-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.fsq-prev-page,
.fsq-next-page {
  background: #ffffff;
  color: #111827;
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid #d1d5db;
  font-size: 13px;
  cursor: pointer;
}

.fsq-prev-page[disabled],
.fsq-next-page[disabled] {
  opacity: 0.5;
  cursor: default;
}

.fsq-prev-page:hover:not([disabled]),
.fsq-next-page:hover:not([disabled]) {
  background: #f3f4f6;
}

/* ---------- RESULT BOX ---------- */

.fsq-result-container {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  font-size: 13px;
  color: #064e3b;
}
