/* ===================================================
   REVIEWER QUEST — Engineering Reviewer Styles
   Mobile-First CSS
   =================================================== */

/* ── INDEX PAGE — ENGINEERING SHORTCUT CARD ── */
.eng-shortcut-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(74, 37, 18, 0.75) 0%,
    rgba(28, 15, 10, 0.8) 100%
  );
  border: 1.5px solid rgba(212, 168, 83, 0.35);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 24px rgba(212, 168, 83, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.eng-shortcut-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(212, 168, 83, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.eng-shortcut-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 36px rgba(212, 168, 83, 0.28);
  transform: translateY(-2px);
}

.eng-shortcut-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.eng-shortcut-left {
  flex: 1;
  min-width: 0;
}

.eng-shortcut-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.55rem;
}

.eng-shortcut-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: var(--foam);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.eng-shortcut-title span {
  color: var(--gold);
}

.eng-shortcut-sub {
  font-size: 0.78rem;
  color: var(--latte);
  line-height: 1.45;
}

.eng-disc-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  flex-shrink: 0;
}

.eng-disc-preview span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.eng-shortcut-arrow {
  font-size: 1.35rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.eng-shortcut-card:hover .eng-shortcut-arrow {
  transform: translateX(4px);
}

@media (max-width: 380px) {
  .eng-disc-preview {
    display: none;
  }
}

/* ── DISCIPLINE GRID ── */
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .discipline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.discipline-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 0.5rem;
  background: rgba(28, 15, 10, 0.45);
  border: 1.5px solid rgba(196, 154, 108, 0.2);
  border-radius: var(--radius-md);
  color: var(--latte);
  cursor: pointer;
  transition: var(--transition);
  font-family: "Lato", sans-serif;
}

.discipline-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  color: var(--cream);
}

.discipline-btn.active {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.18);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(212, 168, 83, 0.25);
}

.disc-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.disc-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── HINT TEXT ── */
.eng-hint {
  font-size: 0.82rem;
  color: var(--caramel);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

/* ── DIFFICULTY SELECTOR ── */
.difficulty-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

@media (min-width: 480px) {
  .difficulty-group {
    flex-direction: row;
  }
}

.diff-label {
  flex: 1;
  cursor: pointer;
}

.diff-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.diff-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.9rem 0.5rem;
  background: rgba(28, 15, 10, 0.45);
  border: 1.5px solid rgba(196, 154, 108, 0.2);
  border-radius: var(--radius-md);
  color: var(--latte);
  transition: var(--transition);
  text-align: center;
  user-select: none;
}

.diff-label:hover .diff-pill {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
}

.diff-label input:checked ~ .diff-pill {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.18);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(212, 168, 83, 0.2);
}

.diff-icon {
  font-size: 1.4rem;
}

.diff-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--cream);
}

.diff-label input:checked ~ .diff-pill .diff-name {
  color: var(--gold);
}

.diff-sub {
  font-size: 0.7rem;
  color: var(--caramel);
}

/* ══════════════════════════════════════════════
   ENG SCENARIO PAGE (eng-scenario.html)
   ══════════════════════════════════════════════ */

/* ── SCENARIO HEADER ── */
.eng-scenario-header {
  text-align: center;
  padding: 1.5rem 0 1rem;
}

.eng-discipline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid rgba(212, 168, 83, 0.35);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xl);
  margin-bottom: 0.65rem;
}

.eng-difficulty-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--caramel);
  border: 1px solid rgba(196, 154, 108, 0.25);
  border-radius: 99px;
  padding: 0.2rem 0.75rem;
}

/* ── ENG CARD ── */
.eng-card {
  margin-bottom: 1rem;
}

.eng-section-label {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.eng-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--foam);
  white-space: pre-wrap;
}

/* ── ANSWER TEXTAREA ── */
.eng-answer-area {
  min-height: 180px;
}

/* ── HINT TOGGLE ── */
.hint-toggle {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  font-family: "Lato", sans-serif;
  transition: var(--transition);
}

.hint-toggle:hover {
  color: var(--latte);
}

.hint-chevron {
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.hint-toggle[aria-expanded="true"] .hint-chevron {
  transform: rotate(180deg);
}

.hints-list {
  margin-top: 0.85rem;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hints-list li {
  font-size: 0.88rem;
  color: var(--latte);
  line-height: 1.5;
}

/* ── FEEDBACK CARD ── */
.eng-feedback-card {
  border-color: rgba(212, 168, 83, 0.4) !important;
  animation: fade-in 0.45s ease;
}

/* ── VERDICT BANNER ── */
.verdict-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  background: rgba(107, 203, 119, 0.1);
  border: 1.5px solid rgba(107, 203, 119, 0.35);
}

.verdict-banner.wrong {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.35);
}

.verdict-banner.partial {
  background: rgba(212, 168, 83, 0.1);
  border-color: rgba(212, 168, 83, 0.35);
}

.verdict-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.verdict-title {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: var(--foam);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.verdict-sub {
  font-size: 0.82rem;
  color: var(--latte);
}

/* ── FEEDBACK SECTIONS ── */
.feedback-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(196, 154, 108, 0.15);
}

.feedback-section:last-child {
  border-bottom: none;
}

.feedback-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

/* ── SOLUTION STEPS ── */
.solution-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 1.5rem;
}

.solution-steps li {
  font-size: 0.9rem;
  color: var(--cream);
  line-height: 1.65;
  padding-left: 0.25rem;
}

.solution-steps li span.step-formula {
  display: block;
  font-family: "Courier New", monospace;
  background: rgba(28, 15, 10, 0.5);
  border: 1px solid rgba(196, 154, 108, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  margin: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--gold);
}

/* ── CONCEPT TAGS ── */
.concept-tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.concept-tags li {
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 99px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.25px;
}

/* ── VERDICT SPLIT (RIGHT/WRONG) ── */
.verdict-split {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 540px) {
  .verdict-split {
    flex-direction: row;
  }
  .verdict-col {
    flex: 1;
  }
}

.verdict-col {
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.correct-col {
  background: rgba(107, 203, 119, 0.08);
  border: 1px solid rgba(107, 203, 119, 0.25);
}

.wrong-col {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.25);
}

.verdict-col-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.correct-col .verdict-col-label {
  color: #6bcb77;
}

.wrong-col .verdict-col-label {
  color: #ff6b6b;
}

.verdict-list {
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.verdict-list li {
  font-size: 0.85rem;
  color: var(--latte);
  line-height: 1.5;
}

/* ── RESPONSIVE ── */
@media (min-width: 700px) {
  .discipline-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
