/* Pronunciation Page (UI-only) */

.pronunciation-container {
  padding: 1rem;
}

.pronunciation-shell {
  max-width: 920px;
  margin: 0 auto;
}

.pronunciation-hero {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.1rem;
  margin-bottom: 1rem;
}

.pronunciation-hero-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pronunciation-hero-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pronunciation-mode-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.pronunciation-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 0.75rem 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-duration), box-shadow var(--transition-duration);
  cursor: pointer;
}

.pronunciation-tab i {
  font-size: 1.2rem;
}

.pronunciation-tab:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.pronunciation-tab.active {
  border-color: rgba(53, 85, 136, 0.35);
  box-shadow: var(--shadow-card);
}

.pronunciation-panels {
  margin-top: 0.25rem;
}

.pronunciation-panel {
  display: none;
}

.pronunciation-panel.active {
  display: block;
}

.pronunciation-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: var(--shadow-card);
}

.pronunciation-card-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pronunciation-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.pronunciation-placeholder {
  border: 1px dashed rgba(156, 163, 175, 0.55);
  border-radius: 14px;
  padding: 0.95rem;
  background: var(--bg-tertiary);
  margin-bottom: 1rem;
}

.pronunciation-placeholder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(53, 85, 136, 0.10);
  color: var(--accent-primary);
}

.muted {
  color: var(--text-tertiary);
}

.pronunciation-sample {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
}

.pronunciation-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
}

.pronunciation-actions button {
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 0.75rem 0.9rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}

.pronunciation-actions button i {
  font-size: 1.15rem;
}

.pronunciation-actions button.primary {
  background: rgba(53, 85, 136, 0.12);
  color: var(--accent-primary);
}

.pronunciation-actions button.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.pronunciation-actions button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.pronunciation-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pronunciation-feedback {
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .pronunciation-container {
    padding: 0.75rem;
  }

  .pronunciation-mode-tabs {
    flex-direction: column;
  }

  .pronunciation-tab {
    width: 100%;
  }
}

.pronunciation-tab:disabled {
  cursor: not-allowed;
}
