/*--------------------------------------------------------------
# Shared styles — Dictionary + Thesaurus pages.
# Mirrors the downloader/citation card aesthetic: .calc-card for
# the search form, .presets-panel for the results, same typography.
--------------------------------------------------------------*/
.wordlookup-section { padding: 60px 0; }

/* ── Spinner in button (reuses downloader pattern) ─────────── */
.wl-btn-label,
.wl-btn-spinner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.search-button[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.85;
}
.wl-btn-spinner .bx {
  animation: wl-spin 0.8s linear infinite;
}
@keyframes wl-spin { to { transform: rotate(360deg); } }

/* ── Results panel ──────────────────────────────────────────── */
.wordlookup-result { margin-top: 24px; }

.wl-phonetic {
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  color: #6c757d;
  margin-left: 6px;
}

#dict-audio-btn, #thes-audio-btn {
  white-space: nowrap;
}

/* ── Result body ────────────────────────────────────────────── */
.wordlookup-body {
  padding: 20px 28px 26px;
}

/* Part-of-speech badge */
.wl-pos {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0563bb;
  background: #e8f0fb;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 8px;
  margin-top: 16px;
}

/* Definition / synonym list */
.wl-list {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
}
.wl-list li {
  padding: 6px 0 6px 18px;
  position: relative;
  font-size: 15px;
  line-height: 1.6;
  color: #45505b;
  border-bottom: 1px solid #f1f4f8;
}
.wl-list li:last-child { border-bottom: none; }
.wl-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0563bb;
  opacity: 0.5;
}

/* Synonym chips */
.wl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
}
.wl-chip {
  padding: 4px 12px;
  background: #f1f4f8;
  border: 1px solid #e4eaf1;
  border-radius: 20px;
  font-size: 13px;
  color: #45505b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.wl-chip:hover {
  background: #e8f0fb;
  border-color: #0563bb;
  color: #0563bb;
}

/* "Not found" / "No synonyms" message */
.wl-empty {
  text-align: center;
  padding: 28px 20px;
  color: #6c757d;
  font-size: 15px;
}
.wl-empty i {
  display: block;
  font-size: 36px;
  color: #adb5bd;
  margin-bottom: 10px;
}

/* Cross-link strip at bottom of card */
.wl-crosslink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #eef0f2;
  font-size: 13px;
  color: #6c757d;
}
.wl-crosslink a {
  color: #0563bb;
  font-weight: 600;
  text-decoration: none;
}
.wl-crosslink a:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .wordlookup-body { padding: 16px 18px 20px; }
}
