/* ============================================
   LESSON 7 — SPECIFIC STYLES
   Identifying Speakers & Purpose
   ============================================ */

/* ── Section Cards ── */
.l7-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}

.l7-sec-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.l7-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(201,168,76,.06);
  border-bottom: 1px solid var(--border);
}

.l7-sec-label {
  font-weight: 800;
  color: var(--gold);
  font-size: 1rem;
}

.l7-sec-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.l7-col {
  padding: 14px 16px;
}
.l7-col:first-child {
  border-right: 1px solid var(--border);
}

.l7-col-head {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ── Description rows ── */
.l7-desc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.l7-desc-row:last-child { margin-bottom: 0; }

.l7-role {
  font-size: .8rem;
  color: var(--text-muted);
  min-width: 110px;
  flex-shrink: 0;
}

.l7-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

/* ── Info column ── */
.l7-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.l7-info-prefix {
  font-size: .97rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Dropdown ── */
.l7-select {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: .97rem;
  padding: 5px 9px;
  width: 100%;
  max-width: 200px;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
  font-family: var(--font);
}
.l7-select:focus { border-color: var(--gold); }
.l7-select:disabled { cursor: default; opacity: .85; }

/* ── Text Input ── */
.l7-inp {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: .97rem;
  padding: 5px 9px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  display: block;
}
.l7-inp:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}

/* ── Answer states ── */
.l7-correct {
  border-color: var(--success) !important;
  background: rgba(72,199,116,.1) !important;
  color: var(--success) !important;
}
.l7-wrong {
  border-color: var(--error) !important;
  background: rgba(255,100,100,.08) !important;
  color: var(--error) !important;
}

/* ── Inline reveal badge ── */
.l7-reveal-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .8rem;
  margin-top: 2px;
}
.l7-reveal-err {
  background: rgba(255,100,100,.08);
  border: 1px solid rgba(255,100,100,.2);
}
.l7-reveal-label {
  color: var(--text-muted);
  white-space: nowrap;
}
.l7-reveal-val {
  color: var(--success);
  font-weight: 600;
}

/* ── Shake ── */
@keyframes l7shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}
.l7-shake { animation: l7shake .45s ease; }

/* ── Study Tip ── */
.l7-tip-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}
.l7-tip-icon { font-size: 1.5rem; flex-shrink: 0; }

.l7-tip-rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.l7-tr-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.l7-tr-icon  { color: var(--success); font-size: 1.25rem; margin-top: 2px; flex-shrink: 0; }
.l7-tr-title { font-weight: 600; color: var(--text); margin-bottom: 4px; font-size: 1rem; }
.l7-tr-body  { font-size: .97rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── Responsive ── */
@media (max-width: 580px) {
  .l7-sec-body {
    grid-template-columns: 1fr;
  }
  .l7-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .l7-select,
  .l7-inp { max-width: 100%; }
}
