/* ================================================================
   zeliva-recipes-common.css
   Shared recipe card + tag + pagination styles
   ================================================================ */

/* ── Recipe Card ── */
.ez-recipe-cats {
    margin-top: 84px;
}

.ez-recipe-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ez-recipe-card__overlay-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 20px;
}

.ez-recipe-card__img-wrap {
    position: relative;
}

.ez-recipe-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ez-recipe-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: #f3f5e9;
}

/* Veg / Non-veg dot badge */
.post-type-archive-recipe .ez-recipe-type-dot {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    display: inline-block;
    background-color: var(--white);
    align-content: center;
}

.post-type-archive-recipe .ez-recipe-type-dot>span {
    width: 16px;
    height: 16px;
    display: block;
    border-radius: 50%;
    margin: 0 auto;
}

.ez-recipe-card__body {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ez-recipe-card__name {
    font-size: 24px;
    font-weight: 600;
    color: var(--333333);
    margin-bottom: 7px;
    line-height: 1.4172;
    flex: 1;
    font-family: var(--gp-font--plus-jakarta-sans);
}

.ez-recipe-card__excerpt {
    font-size: 18px;
    color: var(--333333);
    line-height: 1.61191;
    font-family: var(--gp-font--plus-jakarta-sans);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ez-recipe-card__divider {
    border-top: 1px solid rgba(118, 108, 36, 0.25);
    margin-bottom: 16px;
    margin-top: 0;
}

.ez-recipe-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.ez-recipe-card__meta-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ez-recipe-card__meta-item {
    display: flex;
    align-items: center;
    gap: 9px;
    line-height: 1.6116;
    font-size: 18px;
    color: var(--766c24);
    font-family: var(--gp-font--plus-jakarta-sans);
}

.ez-recipe-card__meta-item svg {
    flex-shrink: 0;
}

.post-type-archive-recipe .ez-recipe-stars>svg {
    width: 24px;
    height: 24px;
}

/* Stars */
.ez-recipe-stars {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ── Tags ── */
.ez-recipe-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    border: 1px solid rgba(118, 108, 36, 0.25);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--333333);
    background: #fff;
    font-family: var(--gp-font--plus-jakarta-sans);
    line-height: 1.6;
}

.ez-recipe-tag--cat:hover {
    background: #f3f5e9;
}

.single-recipe .ez-single-recipe__tags>span {
    max-width: 73px;
    width: 100%;
}

.ez-recipe-tag__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Category Badges (star/scalloped shape) ── */

.ez-recipe-cats__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.ez-recipe-cats__badge {
    width: 131px;
    height: 131px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    background-image: url(/wp-content/uploads/2026/05/recipes-menu-bg.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.ez-recipe-cats__badge:hover {
    transform: scale(1.06);
}

.ez-recipe-cats__badge--active {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-image: url(/wp-content/uploads/2026/05/recipes-menus-active.svg);
}

.ez-recipe-cats__badge-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.3;
    padding: 0 10px;
}

.ez-recipe-cats__badge-label strong {
    font-family: var(--gp-font--helvetica);
    color: var(--333333);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.389;
}

.ez-recipe-cats__badge-label span {
    font-size: 18px;
    font-weight: 400;
    color: var(--333333);
    font-family: var(--gp-font--helvetica);
    line-height: 1.786;
    display: inline-block;
}

.ez-recipe-cats__badge--active .ez-recipe-cats__badge-label strong,
.ez-recipe-cats__badge--active .ez-recipe-cats__badge-label span {
    color: #fff;
}

/* ── Pagination ── */
.ez-recipe-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 0 60px;
}

.ez-recipe-pagination__arrow {
    width: 50px;
    height: 50px;
    border-radius: 30px;
    border: 1px solid rgba(118, 108, 36, 0.25);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.ez-recipe-pagination__arrow:hover {
    background: #f3f5e9;
}

.ez-recipe-pagination__arrow--disabled {
    opacity: 0.4;
    pointer-events: none;
}

.ez-recipe-pagination__btn {
    width: 50px;
    height: 50px;
    padding: 5px;
    border-radius: 30px;
    border: 1px solid rgba(118, 108, 36, 0.25);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    font-family: var(--gp-font--plus-jakarta-sans, sans-serif);
    transition: background 0.2s, color 0.2s;
}

.ez-recipe-pagination__btn:hover {
    background: #f3f5e9;
}

.ez-recipe-pagination__btn--active {
    background: #d0431e;
    border-color: #d0431e;
    color: #fff;
}

/* ── Responsive ── */

@media only screen and (max-width: 1560px) {
    .ez-recipe-cats__row {
        gap: 36px;
    }

    .ez-recipe-cats__badge {
        width: 112px;
        height: 112px;
    }

    .ez-recipe-cats__badge-label strong,
    .ez-recipe-cats__badge-label span {
        font-size: 16px;
    }
}

@media only screen and (max-width: 1229.5px) {

    .tax-recipe_cat .ez-recipe-stars>svg {
        width: 18px;
        height: 18px;
    }

    .ez-recipe-cats__row,
    .ez-recipe-grid__inner {
        gap: 20px !important;
    }

    .post-type-archive-recipe .ez-recipe-type-dot {
        width: 30px;
        height: 30px;
        left: 16px;
        top: 16px;
    }

    .post-type-archive-recipe .ez-recipe-type-dot>span {
        width: 12px;
        height: 12px;
    }

    .ez-recipe-card__name {
        font-size: 18px;
    }

    .ez-recipe-card__excerpt {
        font-size: 16px;
    }

    .ez-recipe-card__meta-item {
        font-size: 16px;
    }

    .ez-recipe-card__meta-item svg {
        width: 18px;
        height: 18px;
    }

    .post-type-archive-recipe .ez-recipe-stars>svg {
        width: 18px;
        height: 18px;
    }
}

@media only screen and (max-width: 991px) {
    .ez-recipe-cats__badge {
        width: 100px;
        height: 100px;
    }

    .ez-recipe-cats__badge-label strong {
        font-size: 14px;
    }

    .ez-recipe-cats__badge-label span {
        font-size: 12px;
    }
}

@media only screen and (max-width: 575.5px) {
    .ez-recipe-pagination>* {
        width: 36px;
        height: 36px;
    }

    .ez-recipe-pagination {
        gap: 6px;
    }
}