/* library.css - sectioned library view */

.library-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--panel-border);
}

.library-section:last-child {
  border-bottom: none;
}

.library-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.library-section-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.library-section-toggle {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--filter-input-bg);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.library-section-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform var(--transition-fast);
}

.library-section[data-collapsed="true"] .library-section-toggle svg {
  transform: rotate(-90deg);
}

.library-section-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.library-section[data-collapsed="true"] .library-section-body {
  display: none;
}

.library-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 12px;
}

.library-section-jump {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--filter-input-bg);
  color: var(--text-secondary);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-section-jump:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}
