/* Rich vocabulary detail card (learn page) */
.vocab-detail-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 11, 18, 0.98) 100%);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.vocab-detail-card__head {
  padding: 1.25rem 1.25rem 0;
}

.vocab-detail-card__word-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.vocab-detail-card__word {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.vocab-detail-card__pos {
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
}

.vocab-detail-card__ipa-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding: 0.35rem 0.65rem;
  min-height: 0;
  border-radius: 0.625rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.vocab-detail-card__ipa-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  flex-shrink: 0;
  line-height: 1.2;
}

.vocab-detail-card__ipa {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.875rem;
  color: #c4b5fd;
  flex: 1;
  line-height: 1.2;
}

.vocab-detail-card__speak {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.vocab-detail-card__speak svg {
  width: 0.9rem;
  height: 0.9rem;
}

.vocab-detail-card__speak:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.vocab-detail-card__speak:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.vocab-detail-card__speak.is-playing {
  animation: vocab-speak-pulse 1s ease-in-out infinite;
}

@keyframes vocab-speak-pulse {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  }
  50% {
    box-shadow: 0 4px 22px rgba(167, 139, 250, 0.6);
  }
}

.vocab-detail-card__body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vocab-detail-card__section-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.vocab-detail-card__bn-meaning-line {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
}

.vocab-detail-card__bn-meaning-line .label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-right: 0.35rem;
}

.vocab-detail-card__bn-meaning-line .text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #38bdf8;
}

.vocab-detail-card__usage {
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.vocab-detail-card__usage strong {
  color: #e2e8f0;
  font-weight: 700;
}

.vocab-detail-card__structure-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vocab-detail-card__structure-list li {
  font-size: 0.8125rem;
  color: #94a3b8;
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.vocab-detail-card__structure-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8b5cf6;
}

.vocab-detail-card__examples {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.vocab-detail-card__example {
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 6, 23, 0.5);
}

.vocab-detail-card__example-line {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

.vocab-detail-card__example-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.25rem;
}

.vocab-detail-card__example-label--past {
  color: #60a5fa;
}
.vocab-detail-card__example-label--present {
  color: #34d399;
}
.vocab-detail-card__example-label--future {
  color: #a78bfa;
}

.vocab-detail-card__example-en {
  font-weight: 600;
  color: #f1f5f9;
}

.vocab-detail-card__example-bn {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 500;
}

.vocab-detail-card__example-bn--pending {
  display: none;
}

.vocab-detail-card__nav {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
}

.vocab-detail-card__nav button {
  flex: 1;
  min-width: 0;
}

.vocab-detail-card__index {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: #475569;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(15, 23, 42, 0.9);
  align-self: flex-start;
}
