/* Favorites & Recently Used CSS */

/* Heart button on tool cards */
.fav-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card, #fff);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 5;
  transition: transform 0.2s, background 0.2s;
}
.fav-heart svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted, #94a3b8);
  transition: stroke 0.2s, fill 0.2s;
}
.fav-heart.favorited svg {
  stroke: #EF4444;
  fill: #EF4444;
}
.fav-heart:hover {
  background: var(--error-light, #FEE2E2);
}
.fav-heart:hover svg {
  stroke: #EF4444;
}

/* Badge in header */
#favorites-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 100px;
  background: #EF4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}

/* Homepage rows */
.homepage-rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}
.homepage-row {
  display: none;
}
.homepage-row.visible { display: block; }
.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.row-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
}
.row-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.mini-tool-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--tool-card-bg, #fff);
  border: 1px solid var(--tool-card-border, #e2e8f0);
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mini-tool-card:hover {
  border-color: var(--tool-card-hover-border, #818CF8);
  box-shadow: var(--shadow-md);
}
.mini-icon { font-size: 1.3rem; }
.mini-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
}
