/* Shared quiz shell styles (matches perfect-country.html) */

.quiz-shell {
  padding: 56px 0 44px;
}

.quiz-shell .quiz-container {
  max-width: 1160px;
  margin: 0 auto;
  border-radius: 34px;
  padding: 38px 34px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.16);
}

.quiz-shell .quiz-header {
  margin-bottom: 22px;
}

.quiz-shell .quiz-header h2 {
  font-size: 2.1rem;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: #0f172a;
}

.quiz-shell .quiz-header p {
  margin: 0;
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 70ch;
}

.quiz-shell .quiz-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 26px;
  align-items: start;
}

@media (max-width: 980px) {
  .quiz-shell .quiz-layout {
    grid-template-columns: 1fr;
  }
}

.quiz-shell .quiz-status-card {
  border-radius: 26px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(248, 250, 252, 0.9)
  );
  padding: 22px 20px;
  position: sticky;
  top: 92px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

@media (max-width: 980px) {
  .quiz-shell .quiz-status-card {
    position: relative;
    top: auto;
  }
}

.quiz-shell .status-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(99, 102, 241, 0.92);
}

.quiz-shell .quiz-status-card h3 {
  margin: 10px 0 10px;
  font-size: 1.4rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.quiz-shell .quiz-status-card p {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.6;
}

.quiz-shell .progress-orb {
  --progress: 0%;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  margin: 12px auto 16px;
  display: grid;
  place-items: center;
  background: conic-gradient(
    rgba(251, 191, 36, 0.85) var(--progress),
    rgba(226, 232, 240, 0.9) 0
  );
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  position: relative;
}

.quiz-shell .progress-orb::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
}

.quiz-shell .progress-orb-inner {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 6px;
}

.quiz-shell .progress-orb-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: #0f172a;
}

.quiz-shell .progress-orb small {
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quiz-shell .status-pill-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 10px;
}

.quiz-shell .status-pill {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(99, 102, 241, 0.06);
  color: #1e293b;
  font-weight: 700;
  font-size: 0.92rem;
}

.quiz-shell .status-footnote {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
}

.quiz-shell .quiz-main {
  min-width: 0;
}

.quiz-shell .progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: #334155;
  margin: 6px 0 10px;
  font-weight: 600;
}

.quiz-shell .progress {
  width: 100%;
  height: 12px;
  background: rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.quiz-shell .progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.quiz-shell .question-counter {
  margin: 14px 0 18px;
  color: #475569;
  font-weight: 700;
}

.quiz-shell .question {
  display: none;
}

.quiz-shell .question.active {
  display: block;
}

.quiz-shell .question h3 {
  font-size: 1.65rem;
  margin-bottom: 22px;
  color: #0f172a;
  text-align: left;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 36px;
}

.quiz-shell .question h3::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #6366f1;
  font-size: 1.2rem;
}

.quiz-shell .answers {
  display: grid;
  gap: 18px;
  margin-bottom: 10px;
}

.quiz-shell .answer-btn {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  padding: 22px 26px 22px 90px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: var(--text-strong, #0f172a);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  min-height: 120px;
}

.quiz-shell .answer-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(118, 75, 162, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.quiz-shell .answer-btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  border: 1px solid rgba(99, 102, 241, 0.08);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.quiz-shell .answer-btn:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.18);
  transform: translateY(-2px) scale(1.01);
}

.quiz-shell .answer-btn:hover::before,
.quiz-shell .answer-btn.selected::before {
  opacity: 1;
}

.quiz-shell .answer-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3),
    0 25px 50px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.6);
}

.quiz-shell .answer-btn.selected {
  border-color: rgba(99, 102, 241, 0.8);
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.25);
  transform: translateY(-3px) scale(1.012);
}

.quiz-shell .answer-badge {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff 0%, #fdf4ff 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.12);
  transition: all 0.3s ease;
  font-size: 1.35rem;
  z-index: 3;
}

.quiz-shell .answer-badge img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.quiz-shell .answer-btn:hover .answer-badge,
.quiz-shell .answer-btn.selected .answer-badge {
  border-color: rgba(99, 102, 241, 0.6);
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.25);
  transform: translateY(-2px) scale(1.05);
}

.quiz-shell .answer-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-shell .answer-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
}

.quiz-shell[data-hide-option-titles="true"] .answer-title {
  display: none;
}

.quiz-shell .answer-description {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.6;
}

.quiz-shell .answer-btn:hover .answer-description,
.quiz-shell .answer-btn.selected .answer-description {
  color: #1e293b;
}

.quiz-shell .chevron {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.18);
}

.quiz-shell .answer-btn:hover .chevron,
.quiz-shell .answer-btn.selected .chevron {
  background: rgba(99, 102, 241, 0.2);
  color: #312e81;
  transform: translateY(-50%) translateX(4px) scale(1.07);
}

/* Result Experience (from perfect-country.html) */
.quiz-shell .result {
  display: none;
  max-width: 1160px;
  margin: 40px auto;
  border-radius: 36px;
  padding: 3px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.5),
    rgba(236, 72, 153, 0.45)
  );
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.quiz-shell .result.show {
  display: block;
}

.quiz-shell .result-placeholder {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 34px;
  padding: 36px 32px;
  text-align: center;
  color: #475569;
}

.quiz-shell .result-shell {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 34px;
  padding: 28px;
}

.quiz-shell .result-hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .quiz-shell .result-hero {
    grid-template-columns: 1fr;
  }
}

.quiz-shell .result-identity {
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(236, 72, 153, 0.08)
  );
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.quiz-shell .result-label {
  display: inline-flex;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(99, 102, 241, 0.92);
  font-size: 0.78rem;
}

.quiz-shell .result-flag {
  margin-top: 18px;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.quiz-shell .flag-emoji {
  font-size: 30px;
}

.quiz-shell .result-name {
  margin-top: 16px;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  color: #0f172a;
  font-weight: 800;
}

.quiz-shell .result-tagline {
  margin-top: 10px;
  color: #334155;
  line-height: 1.6;
}

.quiz-shell .result-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quiz-shell .result-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.18);
  font-weight: 700;
  color: #1e293b;
  font-size: 0.9rem;
}

.quiz-shell .result-media {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(15, 23, 42, 0.06);
  display: grid;
  place-items: center;
}

.quiz-shell .result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quiz-shell .result-score-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 2px;
}

.quiz-shell .result-score-chip span {
  color: #64748b;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-shell .result-score-chip strong {
  color: #0f172a;
  font-size: 1.4rem;
}

.quiz-shell .result-body {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}

.quiz-shell .result-story {
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 18px 18px;
  color: #0f172a;
  line-height: 1.7;
}

.quiz-shell .result-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.quiz-shell .highlight-card {
  border-radius: 20px;
  padding: 16px 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.quiz-shell .highlight-card h4 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1.05rem;
}

.quiz-shell .highlight-card p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.quiz-shell .result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.quiz-shell .restart-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.25);
}

.quiz-shell .share-buttons h4 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 0.95rem;
}

.quiz-shell .share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-shell .share-btn {
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}
