/* ─────────────────────────────────────────────────────────────────
   PronoKick Favorites — star buttons, section, filter, CTAs
   ───────────────────────────────────────────────────────────────── */

/* ── Star button ─────────────────────────────────────────────────── */
.pk-fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted, #71717a);
  font-size: 1rem;
  line-height: 1;
  transition: color 0.15s, transform 0.15s, background 0.15s;
  flex-shrink: 0;
  /* Don't intercept pointer events meant for parent link */
  position: relative;
  z-index: 2;
}

.pk-fav-btn:hover {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.pk-fav-btn.pk-fav-active {
  color: #f59e0b;
}

.pk-fav-btn.pk-fav-active .pk-fav-star-fill {
  display: inline;
}
.pk-fav-btn.pk-fav-active .pk-fav-star-outline {
  display: none;
}
.pk-fav-btn:not(.pk-fav-active) .pk-fav-star-fill {
  display: none;
}
.pk-fav-btn:not(.pk-fav-active) .pk-fav-star-outline {
  display: inline;
}

/* Pop animation on toggle */
@keyframes pk-fav-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.pk-fav-pop {
  animation: pk-fav-pop 0.28s ease-out;
}

/* ── Mes Favoris section (homepage) ─────────────────────────────── */
#pk-favorites-section {
  display: none; /* shown by JS when favorites exist */
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pk-fav-section-inner {
  padding: 28px 0;
}

.pk-fav-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.pk-fav-section-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pk-fav-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.pk-fav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  min-width: 20px;
}

.pk-fav-section-tip {
  font-size: 0.75rem;
  color: var(--muted, #71717a);
}

#pk-fav-matches {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#pk-fav-empty {
  display: none;
  font-size: 0.85rem;
  color: var(--muted, #71717a);
  padding: 12px 0 4px;
  text-align: center;
}

/* ── Filter toggle button ────────────────────────────────────────── */
#pk-fav-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  background: transparent;
  color: #f59e0b;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

#pk-fav-filter-btn:hover {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.4);
}

#pk-fav-filter-btn.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: #f59e0b;
  color: #f59e0b;
}

#pk-fav-filter-btn .pk-fav-filter-icon {
  font-size: 0.85rem;
}

/* ── CTA banners ─────────────────────────────────────────────────── */
.pk-fav-cta {
  display: none; /* shown by JS */
  align-items: center;
  gap: 12px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 0.8rem;
  color: var(--text, #e8e8ed);
  flex-wrap: wrap;
}

.pk-fav-cta-icon { font-size: 1.1rem; flex-shrink: 0; }

.pk-fav-cta p {
  flex: 1;
  margin: 0;
  min-width: 160px;
  color: var(--muted, #71717a);
}

.pk-fav-cta strong { color: var(--text, #e8e8ed); }

.pk-fav-cta-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #f59e0b;
  color: #000;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.pk-fav-cta-link:hover { opacity: 0.9; }

.pk-fav-cta-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted, #71717a);
  font-size: 1rem;
  padding: 0 2px;
  flex-shrink: 0;
}

/* ── Match row star positioning ─────────────────────────────────── */
/* On /matchs: star sits inside the match card, right edge */
.match-card-wrap {
  position: relative;
}

.match-card-star {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

/* On tip cards: star floats right of the card header */
.tip-card-star {
  margin-left: auto;
  flex-shrink: 0;
}

/* League header star — marks the entire league as favorite */
.league-star {
  margin-left: 4px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .pk-fav-section-title { font-size: 0.98rem; }
  .pk-fav-cta { font-size: 0.75rem; padding: 9px 12px; }
}
