/* Customizations\MemberRecipes: "Üye tarifi" on the recipe page and on cards. */

/* Recipe page: shares the pill look of "Videolu Tarif" (.yt-video-badge,
   child style.css) in the brand's dark green. */
body.single-recipe .gt-overview-box .gt-categories ul li.yt-member-badge a,
body.single-recipe .gt-overview-box .gt-categories ul li.yt-member-badge a:visited {
    background: var(--yt-brand-green, #162a28);
    color: #fff;
}

body.single-recipe .gt-overview-box .gt-categories ul li.yt-member-badge a:hover,
body.single-recipe .gt-overview-box .gt-categories ul li.yt-member-badge a:focus-visible {
    background: var(--yt-brand-orange, #ff4400);
    color: #fff;
}

/* Platea's comma after a category: none before the pill. */
.single-recipe .gt-overview-box .gt-categories ul li:has(+ .yt-member-badge)::after {
    content: none;
}

/* Cards: bottom right of the photo ("Yeni" is bottom left, like / save top right). */
body .gt-item .gt-image .yt-member-card-badge {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem 0.25rem 0.5rem;
    border-radius: 999px;
    background: var(--yt-brand-green, #162a28);
    box-shadow: 0 4px 12px rgba(22, 42, 40, 0.18);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 767px) {
    body .gt-item .gt-image .yt-member-card-badge {
        right: 0.5rem;
        bottom: 0.5rem;
        padding: 0.2rem 0.5rem 0.2rem 0.4rem;
        font-size: 0.6875rem;
    }

    body .gt-item .gt-image .yt-member-card-badge svg {
        width: 10px;
        height: 10px;
    }
}

/* "Şef tarifi" (recipes of a YemekTarifleri Şefi): the brand orange, green on hover. */
body.single-recipe .gt-overview-box .gt-categories ul li.yt-member-badge--chef a,
body.single-recipe .gt-overview-box .gt-categories ul li.yt-member-badge--chef a:visited {
    background: var(--yt-brand-orange, #ff4400);
}

body.single-recipe .gt-overview-box .gt-categories ul li.yt-member-badge--chef a:hover,
body.single-recipe .gt-overview-box .gt-categories ul li.yt-member-badge--chef a:focus-visible {
    background: var(--yt-brand-green, #162a28);
}

body .gt-item .gt-image .yt-member-card-badge--chef {
    background: var(--yt-brand-orange, #ff4400);
    box-shadow: 0 4px 12px rgba(255, 68, 0, 0.25);
}
