/* Favourites (Views/Favourites/Index.cshtml) and the hearts (Views/Shared/_FavouriteButton.cshtml, js/seo/favourites.js). */

/* The heart: outline when the app is not a favourite, filled when it is. */
.fav-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.fav-btn-icon {
    display: block;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.fav-btn.is-on .fav-btn-icon {
    fill: currentColor;
}

.fav-btn:disabled {
    cursor: progress;
    opacity: 0.7;
}

.fav-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.55);
    outline-offset: 2px;
}

/* On a card's picture, top-right, mirroring the premium crown top-left. */
.fav-btn--card {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 4;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.fav-btn--card:hover {
    background: rgba(0, 0, 0, 0.7);
}

.fav-btn--card.is-on {
    color: #f43f5e;
}

/* In an app page's hero: a labelled button under the intro. */
.fav-btn--hero {
    align-self: flex-start;
    margin-top: 12px;
    min-height: 38px;
    padding: 8px 14px;
    border-color: rgba(16, 24, 40, 0.18);
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}

.fav-btn--hero:hover {
    background: rgba(16, 24, 40, 0.06);
}

.fav-btn--hero.is-on {
    border-color: rgba(225, 29, 72, 0.45);
    color: #e11d48;
}

.dark .fav-btn--hero {
    border-color: rgba(255, 255, 255, 0.22);
}

.dark .fav-btn--hero:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dark .fav-btn--hero.is-on {
    border-color: rgba(251, 113, 133, 0.55);
    color: #fb7185;
}

/* The page. */
.favourites-hero {
    gap: 10px;
    margin-bottom: clamp(20px, 3vw, 36px);
    padding: clamp(20px, 3vw, 32px);
}

.favourites-hero h1 {
    margin: 0;
}

.favourites-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.favourites-empty[hidden],
.favourites-page [hidden] {
    display: none;
}

.favourites-message {
    margin: 0;
    padding: 18px 20px;
    border: 1px dashed rgba(16, 24, 40, 0.2);
    border-radius: 16px;
    color: var(--main-200);
}

.favourites-message--error {
    border-style: solid;
    border-color: rgba(220, 38, 38, 0.45);
    color: rgb(185, 28, 28);
}

.dark .favourites-message {
    border-color: rgba(255, 255, 255, 0.2);
}

.dark .favourites-message--error {
    color: rgb(248, 113, 113);
}