/* ============================================
   LESSON 27 — SPECIFIC STYLES
   Listening for Specific Information
   ============================================ */

/* ── Word limit badge ── */
.l27-word-limit {
  display: inline-block;
  font-size: 1rem;
  color: var(--gold);
  background: rgba(201,168,76,.08);
  border: 1.5px solid rgba(201,168,76,.3);
  border-radius: 10px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

/* ── Question list ── */
.l27-q-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.l27-q-block {
  padding: 14px 16px;
  background: var(--bg-card-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.l27-q-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.l27-q-num {
  width: 26px;
  height: 26px;
  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;
  margin-top: 1px;
}
.l27-q-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  flex: 1;
}

/* ── Input field ── */
.l27-inp {
  padding: 9px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  width: 200px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.l27-inp-wide { width: 100%; max-width: 340px; }
.l27-inp:focus       { border-color: var(--gold); }
.l27-inp.l27-correct { border-color: var(--success); background: rgba(74,222,128,.07); color: var(--success); }
.l27-inp.l27-wrong   { border-color: var(--error);   background: rgba(248,113,113,.07); }

/* ── Inline explanation panels ── */
.l27-inline-exp {
  margin: 6px 0 4px 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: .97rem;
  line-height: 1.8;
  border: 1px solid var(--border);
}
.l27-exp-ok  { background: rgba(72,199,116,.08); border-color: var(--success); }
.l27-exp-err { background: rgba(255,100,100,.07); border-color: var(--error); }

/* ── Explanation ── */
.l27-exp-list { display: flex; flex-direction: column; gap: 8px; }
.l27-exp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--bg-card-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.l27-exp-num {
  width: 24px;
  height: 24px;
  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;
}
.l27-exp-text { font-size: 1rem; color: var(--text-muted); line-height: 1.45; }

/* ── Study Tip ── */
.l27-tip-box { display: flex; flex-direction: column; gap: 14px; }
.l27-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);
}
.l27-tip-icon  { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.l27-tip-title { font-weight: 700; color: var(--gold); margin-bottom: 4px; font-size: 1rem; }
.l27-tip-body  { color: var(--text-muted); font-size: .97rem; line-height: 1.55; margin: 0; }

/* ── Shake animation ── */
@keyframes l27-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}
.l27-shake { animation: l27-shake .4s ease; }
