/* Listening Practice — reuses Mini Test CBT chrome (mt-* classes) */

#listeningPracticeExamOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--mt-bg, #f8fafc);
  display: none;
  flex-direction: column;
  font-family: 'Inter', 'Noto Sans', system-ui, sans-serif;
  color: var(--mt-text, #1e293b);
}

#listeningPracticeExamOverlay.mt-open {
  display: flex;
}

.lp-hub {
  max-width: 960px;
  margin: 0 auto;
}

.lp-hub-hero {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #14b8a6 100%);
  color: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.25);
}

.lp-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.lp-topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.lp-topic-tab {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #ccfbf1;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.lp-topic-tab.lp-active {
  background: #fff;
  color: #0f766e;
  border-color: #fff;
}

.lp-topic-tab--soon {
  opacity: 0.55;
  cursor: not-allowed;
}

.lp-version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.lp-version-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.1rem 1.15rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.lp-version-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: #99f6e4;
}

.lp-version-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ccfbf1;
  color: #0f766e;
  margin-bottom: 0.75rem;
}

.lp-version-card h4 {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.95rem;
}

.lp-version-meta {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.lp-version-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0d9488;
}

.lp-coming-soon {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: #f0fdfa;
  border: 1px dashed #99f6e4;
  border-radius: 1rem;
}

.lp-coming-soon h4 {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.lp-coming-soon-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lp-coming-soon-tags span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #115e59;
  background: #fff;
  border: 1px solid #ccfbf1;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

#listeningPracticeExamOverlay .mt-split--part1 {
  grid-template-columns: 1.15fr 0.85fr;
}

@media (max-width: 768px) {
  #listeningPracticeExamOverlay .mt-split--part1 {
    grid-template-columns: 1fr;
  }
}
