/* میومیل — استایل سراسری */

:root {
    --mud-typography-default-family: 'Vazirmatn', Tahoma, sans-serif;
    --mud-typography-h1-family: 'Vazirmatn', Tahoma, sans-serif;
    --mud-typography-h2-family: 'Vazirmatn', Tahoma, sans-serif;
    --mud-typography-h3-family: 'Vazirmatn', Tahoma, sans-serif;
    --mud-typography-h4-family: 'Vazirmatn', Tahoma, sans-serif;
    --mud-typography-h5-family: 'Vazirmatn', Tahoma, sans-serif;
    --mud-typography-h6-family: 'Vazirmatn', Tahoma, sans-serif;
    --mud-typography-subtitle1-family: 'Vazirmatn', Tahoma, sans-serif;
    --mud-typography-subtitle2-family: 'Vazirmatn', Tahoma, sans-serif;
    --mud-typography-body1-family: 'Vazirmatn', Tahoma, sans-serif;
    --mud-typography-body2-family: 'Vazirmatn', Tahoma, sans-serif;
    --mud-typography-button-family: 'Vazirmatn', Tahoma, sans-serif;
    --mud-typography-caption-family: 'Vazirmatn', Tahoma, sans-serif;
    --mud-typography-overline-family: 'Vazirmatn', Tahoma, sans-serif;
}

html, body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

h1:focus {
    outline: none;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 8px;
}

    .blazor-error-boundary::after {
        content: "خطایی رخ داده است.";
    }

/* تصویر کارت‌ها */
.recipe-card-img {
    height: 160px;
    object-fit: cover;
    width: 100%;
    display: block;
}

.recipe-row-img {
    width: 88px;
    height: 76px;
    object-fit: cover;
    border-radius: 8px;
    flex: none;
}

.hero-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 16px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--mud-palette-secondary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.footer-dark {
    background: #2b2b2b;
    color: #d9d5cb;
}

    .footer-dark a {
        color: #d9d5cb;
        text-decoration: none;
    }

        .footer-dark a:hover {
            color: #fff;
        }

/* تصویر دستور منتخب در صفحه دسته‌بندی */
.featured-img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

/* نوار اقدام چسبان پایین صفحه دستور غذا — فقط موبایل */
.recipe-action-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 1300;
    background: #fff;
    border-top: 1.5px solid #2b2b2b;
    padding: 10px 16px;
    gap: 8px;
}

/* ردیف مواد لازم با جداکننده نقطه‌چین */
.ingredient-row + .ingredient-row {
    border-top: 1px dashed #e2ded4;
}

.cat-link {
    color: var(--mud-palette-info);
    text-decoration: none;
    cursor: pointer;
}

    .cat-link:hover {
        text-decoration: underline;
    }
