/* LTR / RTL alignment fixes */
.ltr, .word-en, .pron-ipa, .colloc-en, .ex-en, .chip, .wf-word, .wf-pos, .side-list li, .info-val {
  direction: ltr !important;
  text-align: left !important;
  font-family: var(--font-en), 'Inter', sans-serif;
}
.ex-en strong { color: var(--purple); }
.learning-label {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}
/* Dual sidebar layout for archive */
.vocab-layout {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 16px 48px;
  align-items: start;
}
@media (max-width: 1100px) {
  .vocab-layout { grid-template-columns: 1fr; }
  .sidebar-topics, .sidebar-promo { display: none; }
}
/* Topic item with glass hover */
.topic-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  text-decoration: none;
  color: var(--text-1);
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.2s;
  border: 1px solid transparent;
}
.topic-item::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}
.topic-item:hover {
  background: var(--purple-light);
  border-color: var(--purple-mid);
  transform: translateX(-2px);
}
.topic-item:hover::before {
  left: 120%;
}
.topic-thumb {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--purple-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.topic-thumb img { width: 100%; height: 100%; object-fit: cover; }
.topic-thumb i { font-size: 18px; color: var(--purple); }
.topic-name { font-size: 13px; font-weight: 500; }
.topic-count { font-size: 11px; color: var(--text-3); margin-right: auto; }
/* Promo cards */
.promo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.promo-card h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.promo-item {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.promo-item:last-child { border-bottom: none; }
.promo-item:hover .promo-title { color: var(--purple); }
.promo-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--purple-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.promo-icon i { font-size: 18px; color: var(--purple); }
.promo-title { font-size: 13px; font-weight: 500; line-height: 1.4; }
.promo-meta { font-size: 11px; color: var(--text-3); }
/* Homepage hero */
.home-hero {
  background: linear-gradient(135deg, #534AB7 0%, #7c3aed 50%, #a78bfa 100%);
  color: #fff;
  padding: 60px 24px 70px;
  text-align: center;
  border-radius: 0 0 24px 24px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  top: -80px; right: -60px;
}
.home-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; position: relative; }
.home-hero p { font-size: 16px; opacity: 0.9; max-width: 520px; margin: 0 auto 24px; position: relative; }
.home-stats {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  margin-top: 28px; position: relative;
}
.home-stat { text-align: center; }
.home-stat .num { font-size: 28px; font-weight: 800; display: block; }
.home-stat .label { font-size: 12px; opacity: 0.8; }
.home-section { margin-bottom: 48px; }
.home-section h2 {
  font-size: 22px; font-weight: 700; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
