/**
 * Artists listing page — toolbar, grid, detail polish.
 * Loaded on wep_actor routes (body.dark-mode).
 */

.artists-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated, #1a1f22);
  border: 1px solid var(--border-default, #2a2f33);
  border-radius: 12px;
}

.artists-toolbar__search {
  display: flex;
  flex: 1 1 220px;
  max-width: 360px;
  min-width: min(100%, 200px);
  align-items: stretch;
  border: 1px solid var(--border-default, #2a2f33);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-surface, #111618);
}

.artists-toolbar__input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-primary, #f2f2f2);
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}

.artists-toolbar__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  border: none;
  border-right: 1px solid var(--border-default, #2a2f33);
  background: rgba(245, 173, 17, 0.12);
  color: var(--color-primary, #f5ad11);
  cursor: pointer;
}

.artists-toolbar__sort {
  display: flex;
  gap: 0.35rem;
}

.artists-toolbar__sort-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary, #f2f2f2);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border-default, #2a2f33);
  background: var(--bg-surface, #111618);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.artists-toolbar__sort-btn:hover {
  border-color: var(--color-primary, #f5ad11);
  color: var(--color-primary, #f5ad11);
  text-decoration: none;
}

.artists-toolbar__sort-btn--active {
  background: var(--color-primary, #f5ad11);
  border-color: var(--color-primary, #f5ad11);
  color: #0b0e0f;
}

.artists-grid--archive {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1.5rem 1rem;
  margin-bottom: 1rem;
}

body.dark-mode .artist-card:hover .artist-card-avatar {
  border-color: var(--color-primary, #f5ad11);
}

body.dark-mode .artist-page.single_page {
  position: relative;
  overflow: hidden;
  min-height: 50vh;
}

@media (max-width: 576px) {
  .artists-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .artists-toolbar__search {
    max-width: none;
  }

  .artists-toolbar__sort {
    justify-content: center;
  }
}
