/* ============================================
   LESSON 26 — SPECIFIC STYLES
   Understanding How Ideas Are Connected
   ============================================ */

/* ── Legend ── */
.l26-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--bg-card-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.l26-legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.l26-legend-letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}
.l26-legend-text { font-size: 1rem; color: var(--text-muted); }

/* ── Question list ── */
.l26-q-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.l26-q-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.l26-q-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}

/* ── Select wrapper ── */
.l26-sel-wrap {
  flex: 1;
  max-width: 340px;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .18s, background .18s;
}
.l26-sel-wrap.l26-correct { border-color: var(--success); background: rgba(74,222,128,.07); }
.l26-sel-wrap.l26-wrong   { border-color: var(--error);   background: rgba(248,113,113,.07); }

.l26-select {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.l26-select:disabled { cursor: not-allowed; opacity: .8; }
.l26-select option   { background: var(--bg-card); color: var(--text); }

/* ── Inline explanation panels ── */
.l26-inline-exp {
  margin: 4px 0 10px 0;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .97rem;
  line-height: 1.9;
  border: 1px solid var(--border);
}
.l26-exp-ok  { background: rgba(72,199,116,.08); border-color: var(--success); }
.l26-exp-err { background: rgba(255,100,100,.07); border-color: var(--error); }

/* ── Explanation ── */
.l26-exp-list { display: flex; flex-direction: column; gap: 8px; }
.l26-exp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg-card-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.l26-exp-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}
.l26-exp-desc  { font-size: 1rem; color: var(--text-muted); flex: 1; min-width: 140px; }
.l26-exp-arrow { color: var(--gold); font-size: .97rem; flex-shrink: 0; }

/* ── Type badge (shared) ── */
.l26-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  border: 1.5px solid;
  white-space: nowrap;
  text-transform: capitalize;
}

/* ── Study Tip ── */
.l26-tip-box { display: flex; flex-direction: column; gap: 14px; }
.l26-tip-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-card-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.l26-tip-icon  { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.l26-tip-title { font-weight: 700; color: var(--gold); margin-bottom: 4px; font-size: 1rem; }
.l26-tip-body  { color: var(--text-muted); font-size: .97rem; line-height: 1.55; margin: 0; }
.l26-tip-body em { color: var(--gold); font-style: normal; font-weight: 600; }

/* ── Signal rows ── */
.l26-sig-list { display: flex; flex-direction: column; gap: 7px; }
.l26-sig-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  flex-wrap: wrap;
}
.l26-sig-phrase {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  font-style: italic;
  min-width: 140px;
}

/* ── Shake animation ── */
@keyframes l26-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}
.l26-shake { animation: l26-shake .4s ease; }
