/* ============================================
   LESSON 18 — SPECIFIC STYLES
   Labelling a Map
   ============================================ */

/* ── Options Legend ── */
.l18-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: var(--bg-card-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
@media (max-width: 480px) { .l18-legend { grid-template-columns: 1fr; } }

.l18-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.l18-legend-letter {
  width: 28px;
  height: 28px;
  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;
}
.l18-legend-text {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ── Map image ── */
.l18-map-wrap {
  margin-bottom: 24px;
  text-align: center;
}
.l18-map-img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
}

/* ── Question list ── */
.l18-q-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.l18-q-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.l18-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: .97rem;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}

.l18-sel-wrap {
  flex: 1;
  max-width: 220px;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .18s, background .18s;
}
.l18-sel-wrap.l18-correct { border-color: var(--success); background: rgba(74,222,128,.07); }
.l18-sel-wrap.l18-wrong   { border-color: var(--error);   background: rgba(248,113,113,.07); }

.l18-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;
}
.l18-select:disabled { cursor: not-allowed; opacity: .8; }
.l18-select option   { background: var(--bg-card); color: var(--text); }

/* ── Explanation ── */
/* ── Inline explanation panels ── */
.l18-exp-inline {
  margin: 4px 0 10px 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: .97rem;
  line-height: 1.6;
  border: 1px solid var(--border);
}
.l18-exp-ok  { background: rgba(72,199,116,.08); border-color: var(--success); }
.l18-exp-err { background: rgba(255,100,100,.07); border-color: var(--error); }

.l18-exp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.l18-exp-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.l18-exp-num {
  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;
}
.l18-exp-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-top: 3px;
}
.l18-exp-text strong { color: var(--text); }

/* ── Test Tip ── */
.l18-tip-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.l18-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);
}
.l18-tip-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.l18-tip-title {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
  font-size: 1rem;
}
.l18-tip-body {
  color: var(--text-muted);
  font-size: .97rem;
  line-height: 1.55;
  margin: 0;
}

/* ── Shake animation ── */
@keyframes l18-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}
.l18-shake { animation: l18-shake .4s ease; }
