/**
    ADD/REMOVE favorite BTN
*/
.favorite-button-area {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.favorite-button {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;

    align-items: center;
    gap: 5px;
    position: relative;
}

.favorite-button.is-mobile {
    display: inline-flex !important;
}

.favorite-button.is-not-mobile {
    display: none !important;
}

/**Mobile
*/
@media only screen and (min-width: 480px) {
    .favorite-button.is-not-mobile {
        display: inline-flex !important;
    }

    .favorite-button.is-mobile {
        display: none !important;
    }
}

.favorite-button:disabled {
    background-color: #c0c0c0;
    cursor: not-allowed;
}

.favorite-button:hover {
    opacity: 50%;
}


.favorite-button-favorite {
    background-color: #012333;
    color: white;
}

.favorite-button-no-favorite {

    border-color: #012333;
    color: black;
}


@keyframes spinner-border {
    100% {
        transform: rotate(360deg);
    }
}


.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
    margin-left: 10px;
}


.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}







/**

QUERY POST

*/

.favorite-posts {
    list-style: none;
    padding-left: 0;
}

.favorite-posts * {
    margin-bottom: 20px;

}

.pagination-buttons-area {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-favorite-pagination {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.btn-favorite-pagination:disabled {
    background-color: #c0c0c0;
    cursor: not-allowed;
}

.pagination-spinner {
    width: 1rem;
    height: 1rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
    margin-left: 10px;
}

.favorite-recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.favorite-recipe-grid-item {
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f9f9f9;
}