/* favorites.css — shared styling for the favorite-star buttons.
   Loaded on every page so the hub cards and the per-builder header
   stars stay visually consistent. */

/* The hub card star — overlaid in the top-right corner of each
   `<a class="tool-card">`. The card is already position:relative. */
.card-favorite {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 14px; line-height: 1;
  color: #4a4a52;
  background: rgba(10, 10, 11, 0.85);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.12s, transform 0.12s, background 0.12s, border-color 0.12s;
  user-select: none;
  font-family: var(--font);
}
.card-favorite:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--card);
  transform: scale(1.12);
}
.card-favorite.is-favorite {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 238, 88, 0.12);
}

/* The per-builder header star — top-right of the page header. */
.wrap header { position: relative; }
.page-favorite {
  position: absolute; top: 24px; right: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 18px; line-height: 1;
  font-family: var(--font);
  cursor: pointer;
  transition: color 0.12s, transform 0.12s, background 0.12s, border-color 0.12s;
  z-index: 2;
}
.page-favorite:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}
.page-favorite.is-favorite {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 238, 88, 0.10);
}
@media (max-width: 480px) {
  .page-favorite { width: 32px; height: 32px; font-size: 16px; }
}
