/* =====================================================================
   Menu page filters + signature suggestions (Views/Home/Menu.cshtml).
   Category + Dietary chip filters (orange theme) over the dish grid, and a
   "Chef's Signature Suggestions" band. .mf-* namespace, fully responsive.
   ===================================================================== */
.mfx { --mf-accent: var(--theme-color, #FA8507); --mf-green: #4e9e4e; --mf-ink: #241a17; --mf-muted: #857567; }

/* ---- Signature suggestions band ---- */
.mf-sig {
    margin: 4px auto 50px;
    padding: 40px clamp(16px, 4vw, 48px);
    border-radius: 22px;
    background: radial-gradient(130% 130% at 15% 0%, #241a10 0%, #17120b 55%, #0c0906 100%);
    position: relative;
    overflow: hidden;
}

    .mf-sig::after {
        content: "";
        position: absolute;
        right: -80px;
        top: 50%;
        width: 360px;
        height: 360px;
        transform: translateY(-50%);
        background: radial-gradient(circle, rgba(250, 133, 7, .18) 0%, rgba(250, 133, 7, 0) 68%);
        pointer-events: none;
    }

.mf-sig-head { text-align: center; margin-bottom: 26px; position: relative; z-index: 1; }

.mf-sig-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--style-font, cursive);
    font-size: 24px;
    color: var(--mf-accent);
    margin-bottom: 6px;
}

.mf-sig-title { color: #fff; font-size: 32px; margin: 0; }
.mf-sig-sub { color: rgba(255, 255, 255, .72); font-size: 15px; margin: 8px 0 0; }
.mf-sig .slider-area { position: relative; z-index: 1; }

/* ---- Filter bar ---- */
.mf-filterbar {
    max-width: 1120px;
    margin: 0 auto 42px;
    padding: 26px 26px 22px;
    background: #fff;
    border: 1px solid rgba(36, 26, 23, .07);
    border-radius: 22px;
    box-shadow: 0 22px 54px -32px rgba(36, 26, 23, .5);
}

.mf-bar-hint {
    text-align: center;
    font-size: 13px;
    color: var(--mf-muted);
    margin-bottom: 20px;
}

    .mf-bar-hint i { color: var(--mf-accent); margin-right: 6px; }

/* Category icon tabs */
.mf-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.mf-cat {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 7px 20px 7px 7px;
    border-radius: 999px;
    border: 1px solid rgba(36, 26, 23, .1);
    background: #fff;
    color: var(--mf-ink);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px -12px rgba(36, 26, 23, .5);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}

.mf-cat-ic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--mf-accent);
    background: linear-gradient(135deg, #fff1de, #ffe1bd);
    transition: background .22s ease, color .22s ease, transform .22s ease;
}

.mf-cat:hover {
    transform: translateY(-3px);
    border-color: rgba(250, 133, 7, .5);
    box-shadow: 0 16px 28px -16px rgba(250, 133, 7, .6);
}

    .mf-cat:hover .mf-cat-ic { transform: scale(1.06); }

.mf-cat.is-active {
    background: linear-gradient(135deg, var(--mf-accent), #ffb44d);
    border-color: transparent;
    color: #241400;
    box-shadow: 0 16px 30px -12px rgba(250, 133, 7, .85);
}

    .mf-cat.is-active .mf-cat-ic {
        background: rgba(255, 255, 255, .3);
        color: #241400;
    }

/* Dietary row */
.mf-diets-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed rgba(36, 26, 23, .1);
}

.mf-diets-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mf-muted);
}

    .mf-diets-label i { color: var(--mf-green); }

.mf-diets { display: flex; flex-wrap: wrap; gap: 9px; }

.mf-diet {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 16px 5px 5px;
    border-radius: 999px;
    border: 1px solid rgba(36, 26, 23, .12);
    background: #fff;
    color: var(--mf-ink);
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

    /* circular icon badge, ~30% larger */
    .mf-diet img {
        width: 47px;
        height: 47px;
        border-radius: 50%;
        background: #fff;
        padding: 4px;
        object-fit: contain;
        border: 1px solid rgba(36, 26, 23, .12);
        box-shadow: 0 2px 7px rgba(36, 26, 23, .16);
    }

    .mf-diet:hover { transform: translateY(-2px); border-color: var(--mf-green); }

    .mf-diet.is-active {
        background: linear-gradient(135deg, var(--mf-green), #77c26f);
        border-color: transparent;
        color: #fff;
        box-shadow: 0 10px 22px -10px rgba(78, 158, 78, .85);
    }

        /* keep the icon in its white circle (visible) when the chip is active */
        .mf-diet.is-active img { filter: none; }

/* ---- Floating (sticky) filter bar on scroll ---- */
.mf-sticky {
    position: fixed;
    left: 0;
    right: 0;
    top: 86px;
    z-index: 95;
    padding: 10px 0;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(36, 26, 23, .07);
    box-shadow: 0 14px 32px -18px rgba(36, 26, 23, .5);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform .35s ease, opacity .3s ease;
}

    .mf-sticky.is-shown { transform: none; opacity: 1; }

.mf-sticky-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mf-sticky-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 3px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

    .mf-sticky-row::-webkit-scrollbar { height: 5px; }
    .mf-sticky-row::-webkit-scrollbar-thumb { background: rgba(36, 26, 23, .2); border-radius: 3px; }

    .mf-sticky-row .mf-cat,
    .mf-sticky-row .mf-diet { flex: 0 0 auto; }

/* compact chips inside the sticky bar */
.mf-sticky .mf-cat { padding: 4px 15px 4px 4px; font-size: 13px; box-shadow: none; }
.mf-sticky .mf-cat-ic { width: 32px; height: 32px; font-size: 13px; }
.mf-sticky .mf-diet { padding: 4px 13px 4px 4px; font-size: 12.5px; }
.mf-sticky .mf-diet img { width: 34px; height: 34px; }

@media (max-width: 575px) {
    .mf-sticky { padding: 8px 0; }
    .mf-sticky .mf-cat-ic { width: 28px; height: 28px; }
    .mf-sticky .mf-diet img { width: 30px; height: 30px; }
}

/* ---- Grid + empty state ---- */
.mf-grid { margin-top: 4px; }

.mf-noresult {
    text-align: center;
    color: var(--mf-muted);
    font-size: 15px;
    padding: 46px 0 10px;
}

    .mf-noresult i { color: var(--mf-accent); margin-right: 6px; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 991px) {
    .mf-sig-title { font-size: 27px; }
}

@media (max-width: 767px) {
    .mf-filterbar { padding: 18px 14px 16px; border-radius: 18px; }

    /* category tabs scroll horizontally on phones */
    .mf-cats {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

        .mf-cat { flex: 0 0 auto; padding: 6px 16px 6px 6px; font-size: 13px; }

    .mf-cat-ic { width: 34px; height: 34px; font-size: 14px; }

    .mf-diets-row { justify-content: flex-start; }

    .mf-diets {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

        .mf-diet { flex: 0 0 auto; }

    .mf-sig { padding: 28px 16px; border-radius: 16px; }
}
