/* Estudia · De Marketing · Claude Cert Trainer
   Brand: Navy #16273f · Navy Dark #2e4769 · Lime #9be564 · Inter font only */

* { font-family: 'Inter', Arial, sans-serif; }

body {
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  letter-spacing: -0.005em;
}

/* Brand text logo */
.brand-text-light {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fafafa;
}
.brand-text-dark {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #16273f;
}

/* Smooth view transitions */
.view {
  animation: fadeIn 0.25s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Option buttons */
.option-btn {
  text-align: left;
  width: 100%;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 2px solid #dddfe3;
  border-radius: 0.75rem;
  transition: all 0.15s ease;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #121212;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.option-btn:hover:not(:disabled) {
  border-color: #16273f;
  background: #fafafa;
}
.option-btn .letter {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: #fafafa;
  color: #16273f;
  border: 1.5px solid #dddfe3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.05rem;
}
.option-btn.selected {
  border-color: #16273f;
  background: rgba(22, 39, 63, 0.03);
}
.option-btn.selected .letter {
  background: #16273f;
  color: white;
  border-color: #16273f;
}
.option-btn.correct {
  border-color: #9be564;
  background: rgba(155, 229, 100, 0.1);
}
.option-btn.correct .letter {
  background: #9be564;
  color: #16273f;
  border-color: #9be564;
}
.option-btn.incorrect {
  border-color: #b91c1c;
  background: rgba(185, 28, 28, 0.05);
}
.option-btn.incorrect .letter {
  background: #b91c1c;
  color: white;
  border-color: #b91c1c;
}
.option-btn:disabled {
  cursor: default;
}

/* Code in question text */
.question-text code {
  background: rgba(22, 39, 63, 0.06);
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.85em;
  color: #16273f;
  font-weight: 600;
}

/* Verified badge — uses brand lime */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(155, 229, 100, 0.15);
  color: #16273f;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 1rem;
  letter-spacing: 0.04em;
  border: 1px solid #9be564;
  text-transform: uppercase;
}
.verified-badge::before {
  content: '✓';
  color: #16273f;
  font-weight: 900;
}

/* Difficulty pill — brand-aligned */
.diff-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.diff-pill.easy {
  background: rgba(155, 229, 100, 0.18);
  color: #16273f;
}
.diff-pill.medium {
  background: rgba(22, 39, 63, 0.08);
  color: #16273f;
}
.diff-pill.hard {
  background: #16273f;
  color: #fafafa;
}

/* Domain label pill */
.domain-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #808187;
}

/* Progress bar */
.progress-bar {
  background: #dddfe3;
  border-radius: 0.5rem;
  height: 0.55rem;
  overflow: hidden;
  position: relative;
}
.progress-bar .fill {
  height: 100%;
  transition: width 0.4s ease;
  border-radius: 0.5rem;
}

/* Feedback card */
.feedback {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  border-left: 4px solid;
}
.feedback.correct {
  background: rgba(155, 229, 100, 0.1);
  border-color: #9be564;
}
.feedback.incorrect {
  background: rgba(185, 28, 28, 0.05);
  border-color: #b91c1c;
}
.feedback h4 {
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #16273f;
  font-size: 1rem;
}
.feedback .explain {
  color: #121212;
  font-size: 0.9rem;
  line-height: 1.65;
}
.feedback .trap {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(22, 39, 63, 0.08);
  font-size: 0.85rem;
  color: #808187;
  line-height: 1.5;
}
.feedback .trap strong {
  color: #16273f;
  font-weight: 700;
}

/* Range slider — branded */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #16273f;
  border-radius: 50%;
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #16273f;
  border-radius: 50%;
  cursor: pointer;
  border: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fafafa; }
::-webkit-scrollbar-thumb { background: #dddfe3; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #808187; }

/* Mode card emphasized state */
.mode-card.is-active {
  border-color: #9be564;
  box-shadow: 0 0 0 4px rgba(155, 229, 100, 0.2);
}

/* Leaderboard tabs */
.lb-tab-btn {
  color: #808187;
  background: transparent;
  cursor: pointer;
}
.lb-tab-btn:hover {
  color: #16273f;
  background: rgba(22, 39, 63, 0.04);
}
.lb-tab-btn.lb-tab-active {
  background: #16273f;
  color: #fafafa;
}

/* Leaderboard rows */
.lb-row {
  border-bottom: 1px solid #dddfe3;
  transition: background 0.15s;
}
.lb-row:hover { background: #fafafa; }
.lb-row:last-child { border-bottom: none; }
.lb-row.is-self {
  background: rgba(155, 229, 100, 0.08);
}
.lb-row.is-self:hover { background: rgba(155, 229, 100, 0.14); }

.lb-rank {
  font-weight: 800;
  color: #808187;
  font-size: 1rem;
}
.lb-rank.gold { color: #d4a008; }
.lb-rank.silver { color: #6b7280; }
.lb-rank.bronze { color: #b45309; }
.lb-rank.top { font-size: 1.25rem; }

.lb-name {
  font-weight: 600;
  color: #16273f;
}
.lb-name .domain {
  color: #808187;
  font-weight: 400;
  font-size: 0.85em;
}

.lb-points {
  font-weight: 700;
  color: #16273f;
  font-variant-numeric: tabular-nums;
}
