:root {
  --favorite-pink: #C48798;
  --favorite-glass: #fff7f0d9;
  --favorite-solid: #fff7f0;
  --favorite-edge: #fff9f3ed;
  --favorite-rose-surface: #ead0d6;
  --favorite-easing: cubic-bezier(.22,.7,.25,1);
}

[data-theme="dark"] {
  --favorite-pink: #D89BAD;
  --favorite-glass: #2b252bdb;
  --favorite-solid: #2b252b;
  --favorite-edge: #d89bad67;
  --favorite-rose-surface: #513842;
}

.card:has(> .favorite-toggle), .favorite-photo {
  position: relative;
}

.favorite-toggle {
  color: var(--ink);
  background-color: var(--favorite-solid);
  border: 1px solid var(--favorite-edge);
  box-shadow: 0 3px 10px #201c2026, inset 0 1px #ffffff3b;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .favorite-toggle {
    background-color: var(--favorite-glass);
    -webkit-backdrop-filter: blur(26px) saturate(155%);
    backdrop-filter: blur(26px) saturate(155%);
  }
}

.favorite-toggle {
  position: absolute;
  inset: .5rem .5rem auto auto;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 300ms var(--favorite-easing);
}

.favorite-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: transparent;
  transition: fill 300ms var(--favorite-easing), stroke 300ms var(--favorite-easing);
}

.favorite-toggle[aria-pressed="true"] svg {
  fill: var(--favorite-pink);
  stroke: var(--favorite-pink);
}

.favorite-toggle:is(:hover, :focus-visible) { border-color: var(--favorite-pink); }
.favorite-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.favorites-page {
  padding-block: clamp(1.5rem, 4.5vw, 4rem);
}

body[data-page="favoritos"] { min-height: 100vh; display: flex; flex-direction: column; }
body[data-page="favoritos"] > main { flex: 1 0 auto; }
.favorites-heading { margin: 1.25rem 0 1.5rem; }
.favorites-heading h1 { margin-bottom: .3rem; font-size: clamp(2.75rem, 6vw, 5rem); }
.favorites-heading > p:not(.eyebrow), #favorites-count { color: var(--muted); }
#favorites-count { margin: 0 0 .85rem; }
.favorites-empty { background: var(--favorite-solid); border: 1px solid var(--line); border-radius: 1rem; }
.favorites-empty .favorites-empty-icon {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--favorite-rose-surface);
  color: var(--ink);
}
.favorites-empty .favorites-empty-icon svg { width: 1.65rem; height: 1.65rem; color: inherit; }
.favorites-explore { margin-top: 1.5rem; }

@media (max-width: 27rem) {
  .card:has(> .favorite-toggle) .card-art .badge { max-width: calc(100% - 3.65rem); }
}

@media (prefers-reduced-motion: reduce) {
  .favorite-toggle, .favorite-toggle svg { transition: none; }
}
