/* Phrasebook / Topics Showcase styling */
.phrasebook-hero {
  margin-bottom: 1.25rem;
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.topic-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background: var(--card, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  text-align: left;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.topic-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary, #38ef7d);
  background: var(--card-hover, rgba(255, 255, 255, 0.08));
}
.topic-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.topic-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}
.topic-card-desc {
  font-size: 0.8rem;
  color: var(--muted, #8e8e93);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}
.topic-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary, #38ef7d);
}

/* Topic Details / Phrase list */
.topic-detail-header {
  margin-bottom: 1.25rem;
}
.topic-actions-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.phrase-item {
  background: var(--card, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}
.phrase-ru {
  font-size: 0.95rem;
  color: var(--muted, #a0a0a5);
}
.phrase-lez {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text, #fff);
  letter-spacing: 0.2px;
}
.phrase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.phrase-cat-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted, #8e8e93);
}
