/* Favorites — heart save button on audition/event cards */

.audition-box,
.event-box {
  position: relative;
}

.favorite-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 5;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.favorite-btn:hover {
  transform: scale(1.12);
  background: rgba(0, 0, 0, 0.7);
}

.favorite-btn:focus-visible {
  outline: 2px solid #8e44ad;
  outline-offset: 2px;
}

.favorite-btn.is-favorited {
  color: #e74c3c;
  background: rgba(255, 255, 255, 0.95);
}

.favorite-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* The heart glyph (♥ via content) so empty vs filled is purely color */
.favorite-btn::before {
  content: "\2665"; /* ♥ */
}

/* Inline variant for detail pages: a labelled pill in normal flow, not an
   overlay. The same favorites.js drives it (it toggles .is-favorited). */
.favorite-btn--inline {
  position: static;
  width: auto;
  height: auto;
  padding: 9px 16px;
  border-radius: 22px;
  gap: 8px;
  font-size: 15px;
  font-family: "Inter", "Noto Sans", system-ui, sans-serif;
  color: #8e44ad;
  background: #fff;
  border: 1px solid #8e44ad;
  box-shadow: none;
}
.favorite-btn--inline::after { content: "Save to favorites"; }
.favorite-btn--inline:hover { transform: none; background: #f6eefb; }
.favorite-btn--inline.is-favorited {
  color: #fff;
  background: #8e44ad;
}
.favorite-btn--inline.is-favorited::after { content: "Saved \2713"; }

/* ---- My Favorites page ---- */
.favorites-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 72px;
  font-family: "Inter", "Noto Sans", system-ui, sans-serif;
}
.favorites-page h1 { margin: 0 0 4px; }
.favorites-page .fav-intro { color: #666; margin: 0 0 24px; }
.fav-section { margin-top: 36px; }
.fav-section h2 {
  font-size: 1.25rem;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #8e44ad;
}
.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.fav-card {
  position: relative;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
}
.fav-card-link { display: block; color: inherit; text-decoration: none; }
.fav-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
}
.fav-card-body { padding: 12px 14px; }
.fav-card-body h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.25; }
.fav-card-body p { margin: 2px 0; color: #555; font-size: 0.9rem; }
.fav-empty {
  color: #666;
  background: #faf7fd;
  border: 1px dashed #d9c7ea;
  border-radius: 8px;
  padding: 18px;
}
.fav-empty a { color: #8e44ad; font-weight: 600; }
