/* ============================================================
   AmoozYar — Result Page CSS  (RTL)
   ============================================================ */
body.ay-result-body {
  direction: rtl;
  background: #f1f5f9;
  color: #1e293b;
  min-height: 100vh;
}

#ay-result-wrap { max-width: 900px; margin: 0 auto; padding: 30px 16px 80px; }

/* ---- Header ---- */
.ayr-header { text-align: center; margin-bottom: 32px; }
.ayr-header h1 { font-size: 1.6rem; color: #2563eb; }
.ayr-header h2 { font-size: 1.2rem; margin-top: 6px; }
.ayr-set-name  { color: #64748b; font-size: .9rem; margin-top: 4px; }
.ayr-expired-notice {
  display: inline-block;
  margin-top: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: .9rem;
}

/* ---- Score section ---- */
.ayr-score-section { text-align: center; margin-bottom: 30px; }
.ayr-score-circle {
  width: 150px; height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 30px rgba(37,99,235,.35);
}
.ayr-score-circle.ayr-pass { background: linear-gradient(135deg, #16a34a, #15803d); box-shadow: 0 8px 30px rgba(22,163,74,.35); }
.ayr-score-circle.ayr-fail { background: linear-gradient(135deg, #dc2626, #b91c1c); box-shadow: 0 8px 30px rgba(220,38,38,.35); }
.ayr-score-pct { font-size: 2.4rem; font-weight: 900; color: #fff; line-height: 1; }
.ayr-score-raw { font-size: .78rem; color: rgba(255,255,255,.75); margin-top: 4px; }

.ayr-verdict {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
}
.ayr-verdict-pass { background: #dcfce7; color: #15803d; }
.ayr-verdict-fail { background: #fee2e2; color: #b91c1c; }

/* ---- Stats ---- */
.ayr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.ayr-stat {
  background: #fff;
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.ayr-stat-n { display: block; font-size: 1.8rem; font-weight: 800; color: #1e293b; }
.ayr-stat-l { font-size: .78rem; color: #64748b; margin-top: 4px; }
.ayr-correct .ayr-stat-n { color: #16a34a; }
.ayr-wrong   .ayr-stat-n { color: #dc2626; }
.ayr-skipped .ayr-stat-n { color: #d97706; }

/* ---- Actions ---- */
.ayr-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.ayr-btn {
  padding: 10px 24px;
  border-radius: 9px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
  display: inline-block;
}
.ayr-btn:hover { opacity: .88; transform: translateY(-1px); }
.ayr-btn-primary { background: #2563eb; color: #fff; }
.ayr-btn-outline { border: 2px solid #2563eb; color: #2563eb; }

/* ---- Review section ---- */
.ayr-review-section h2 { font-size: 1.2rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #e2e8f0; }

.ayr-question-row {
  background: #fff;
  border-radius: 14px;
  border-right: 5px solid #e2e8f0;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.ayr-q-correct { border-right-color: #16a34a; }
.ayr-q-wrong   { border-right-color: #dc2626; }
.ayr-q-skipped { border-right-color: #d97706; opacity: .85; }

.ayr-q-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.ayr-q-num {
  width: 30px; height: 30px;
  background: #2563eb; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700; flex-shrink: 0;
}
.ayr-q-verdict { font-size: .88rem; font-weight: 600; color: #64748b; }
.ayr-q-correct .ayr-q-verdict { color: #16a34a; }
.ayr-q-wrong   .ayr-q-verdict { color: #dc2626; }

.ayr-q-text {
  line-height: 1.75;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: .97rem;
}
.ayr-q-text img { max-width: 100%; height: auto; border-radius: 6px; }

.ayr-opts { display: flex; flex-direction: column; gap: 8px; }
.ayr-opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: .9rem;
}
.ayr-opt-right      { background: #dcfce7; border-color: #16a34a; color: #14532d; }
.ayr-opt-wrong-pick { background: #fee2e2; border-color: #dc2626; color: #7f1d1d; }
.ayr-opt-lbl {
  font-weight: 800;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .85rem;
}
.ayr-opt-right .ayr-opt-lbl      { background: #16a34a; color: #fff; }
.ayr-opt-wrong-pick .ayr-opt-lbl { background: #dc2626; color: #fff; }
.ayr-opt-body { line-height: 1.6; }
.ayr-tick, .ayr-cross { margin-right: auto; font-size: 1.1rem; flex-shrink: 0; }
.ayr-tick  { color: #16a34a; }
.ayr-cross { color: #dc2626; }

.ayr-explanation {
  margin-top: 14px;
  padding: 12px 16px;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 9px;
  font-size: .9rem;
  line-height: 1.65;
}

/* ---- Card ---- */
.ayr-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

@media (max-width:600px) {
  .ayr-stats { grid-template-columns: repeat(2,1fr); }
  .ayr-score-circle { width: 120px; height: 120px; }
  .ayr-score-pct { font-size: 1.8rem; }
}

/* Status badges (for account page) */
.ay-status-fin { background:#dcfce7; color:#15803d; }
.ay-status-exp { background:#fee2e2; color:#b91c1c; }
.ay-status-ip  { background:#dbeafe; color:#1d4ed8; }
.ay-status-ns  { background:#f1f5f9; color:#475569; }


/* AmoozYar Result — hidden answers notice */
.ayr-review-hidden {
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid #fde68a;
  border-right: 5px solid #f59e0b;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 72%);
  color: #92400e;
  line-height: 1.9;
}
.ayr-review-hidden strong { display:block;color:#78350f;margin-bottom:6px;font-weight:900; }
.ayr-review-hidden p { margin:0;color:#92400e;font-size:.92rem; }
