/* ============================================================
   GUITAR SCALE CATALOG
   Favorites
   ============================================================ */


/* NAV COUNT */

.favorites-nav-link {
    display: inline-flex;
    align-items: center;

    gap: 6px;
}


.favorites-nav-count {
    min-width: 20px;
    height: 20px;

    padding: 0 5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background: var(--blue);

    border-radius: 999px;

    font-size: 10px;

    font-weight: 850;
}


/* DETAIL FAVORITE BUTTON */

.favorite-button {
    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}


.favorite-button:hover {
    transform: translateY(-1px);

    border-color:
        rgba(
            109,
            170,
            255,
            0.6
        );
}


.favorite-button.is-favorite {
    color: #fff0c6;

    background:
        rgba(
            231,
            184,
            77,
            0.12
        );

    border-color:
        rgba(
            231,
            184,
            77,
            0.45
        );
}


/*
    Override the old disabled appearance now
    that the button is actually functional.
*/

.disabled-favorite {
    opacity: 1;
}


/* FAVORITES PAGE */

.favorites-section {
    width:
        min(
            1180px,
            calc(100% - 36px)
        );

    margin: 0 auto;

    padding: 38px 0 75px;
}


.favorites-toolbar {
    min-height: 42px;

    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: var(--muted);
}


.favorites-toolbar strong {
    color: #ffffff;

    font-size: 19px;
}


.clear-favorites-button {
    min-height: 36px;

    padding: 0 12px;

    color: #c9d5df;

    background: #18222d;

    border: 1px solid #354454;

    border-radius: 9px;

    cursor: pointer;

    font-size: 12px;

    font-weight: 750;
}


.clear-favorites-button:hover {
    color: #ffffff;

    background: #202d3a;
}


.favorites-loading {
    padding: 50px 20px;

    color: var(--muted);

    text-align: center;
}


.favorites-empty {
    margin-top: 8px;
}


.favorite-card-footer {
    align-items: flex-end;
}


.favorite-card-actions {
    display: flex;
    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}


.remove-favorite-button {
    padding: 0;

    color: #d7aab0;

    background: transparent;

    border: 0;

    cursor: pointer;

    font-size: 11px;

    font-weight: 750;
}


.remove-favorite-button:hover {
    color: #ffc0c8;
}


@media (max-width: 700px) {

    .favorites-section {
        padding-top: 24px;
    }


    .favorites-toolbar {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }


    .favorite-card-footer {
        align-items: flex-start;
    }

}
