/* wordbank.css — Word bank browser */

.wb-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.wb-search {
  margin-bottom: var(--space-md);
}

#wb-search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#wb-search-input::placeholder {
  color: var(--text-muted);
}

/* === FILTER CHIPS === */
.wb-filters {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.chip {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.chip.active {
  background: var(--accent);
  color: white;
}

/* === WORD LIST === */
.wb-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.wb-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: var(--space-xl) 0;
}

.wb-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: transform var(--transition-fast);
  cursor: pointer;
}

.wb-item:active {
  transform: scale(0.98);
}

.wb-item-main {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 4px;
}

.wb-word {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.wb-level {
  font-size: 9px;
}

.wb-definition {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.wb-more {
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  padding: var(--space-sm);
}

/* === WORD DETAIL MODAL === */
.wb-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.wb-modal.active {
  display: flex;
}

.wb-modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  max-width: 400px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.wb-modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
