/* PUBMEM Components - Misc UI components */

/* Color picker */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.color-picker-row label { margin: 0; }
.color-picker-row input[type="color"] {
  width: 50px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--gh-border);
  border-radius: 4px;
  cursor: pointer;
}

/* User color dot */
.user-color-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
}

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  font-size: 1.1rem;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--gh-border);
  color: var(--gh-text-subtle);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.theme-toggle:hover {
  opacity: 1;
  background: var(--pico-primary);
  color: white;
}

/* Shortcuts hint button */
.shortcuts-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50%;
  background: var(--pico-muted-border-color);
  color: var(--pico-muted-color);
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.shortcuts-hint:hover {
  opacity: 1;
  background: var(--pico-primary);
  color: white;
}

/* Author cards */
.author-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--pico-card-background-color);
  border-left: 3px solid var(--primary);
  min-width: 160px;
}
.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.author-info strong {
  font-size: 0.95rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.author-tz {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Add author form sections */
.add-author-section {
  padding-top: 1rem;
  border-top: 1px solid var(--pico-muted-border-color);
}
.add-author-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.add-author-row input { flex: 1; margin-bottom: 0; }
.add-author-row select { flex: 1; margin-bottom: 0; }
.add-author-row button { margin-bottom: 0; padding: 0.5rem 1rem; }

/* Mobile: larger tap targets */
@media (max-width: 600px) {
  .theme-toggle, .shortcuts-hint {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 1.2rem;
  }
}
