﻿body {
    font-family: 'RobotoCondensed', "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #3d3d3d;
    color: #ffffff;
    color: #a8a8a8;
    line-height: 25px;
    text-align: justify;
    margin: 0;
    padding: 0;
    background-image: url("/img/recip_bg.jpg");
    background-repeat: no-repeat;
    background-size: cover; /* растянуть на весь экран */
    background-position: center; /* центрировать */
    background-attachment: fixed; /* фиксировать, чтобы не скролилось */
}

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(0px); /* размываем задний фон */
        -webkit-backdrop-filter: blur(0px); /* для Safari */
        z-index: -1; /* слой под всем */
    }

.dish-container {
    max-width: 800px;
    margin: 35px auto;
    background: #1a1a1af9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    padding: 25px;
}

h1 {
    font-size: 28px;
    font-weight: 400;
    color: #e67e22;
    -webkit-text-stroke: 0.1px #000000a6;
    text-stroke: 0.1px #000000a6;
    text-align: left;
}

h2 {
    margin: 90px 0px 30px 0px;
    font-size: 24px;
    font-weight: 100;
    color: #e79b2d;
    -webkit-text-stroke: 0.1px #000000a6;
    text-stroke: 0.1px #000000a6;
    border-bottom: 1px solid #83838355;
    text-align: right;
    padding-bottom: 5px;
}

h3 {
    font-weight: 400;
    color: #5f9d9f;
    margin: 40px 0px 30px 0px;
    text-align: left;
}

ul, ol {
    line-height: 30px;
    text-align: left;
    color: #abac7f;
    font-weight: 300;
    line-height: 27px;
    text-align: justify;
    margin: 10px 0px 20px 0px;
}

img {

}

strong {
    font-weight: 500;
    color: #abac7f;
}

.descr h2 {
    color: #e79b2d;
    border: none;
    text-align: left;
    margin: 50px 0px 30px 50px;
}

.descr {
    color: #bbbbbb;
    font-weight: 100;
    text-align: justify;
}

    .descr ul, .descr ol {
        font-size: 14px;
        color: #7ea1b8cc;
        font-style: italic;
        text-align: left;
    }

    .descr p {
        font-size: 14px;
        font-weight: 100;
        color: #cccccccc;
    }

.dish-info {
    font-size: 16px;
    line-height: 1.6;
    color: #e3e3e3;
}

a {
    color: #929298;
    font-weight: 400;
}

.dish-price {
    font-size: 17px;
    font-weight: 400;
    color: #ffffff7a;
    margin-top: 10px;
    position: absolute;
    top: 10px;
    left: 20px;
    /* transform: translateX(-50%); */
    display: flex;
    /* gap: 10px; */
    background: rgb(0 0 0 / 30%);
    padding: 14px;
    border-radius: 10px;
    backdrop-filter: blur(3px);
    overflow-x: auto;
    border: 1px solid #5d5d5d8f;
    text-transform: lowercase;
}

/* --- Контейнер для изображения и миниатюр --- */
.image-wrapper {
    position: relative;
    width: 100%;
    height: 360px; /* можно под размер фото */
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: background-image 0.3s ease-in-out;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

    .image-wrapper .overlay {
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle, rgba(255, 255, 255, 0) 1%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.35) 95%);
    }

/* Миниатюры */
.thumbnails {
    display: flex;
    flex-wrap: wrap; /* разрешаем перенос */
    gap: 10px;
    top: 10px;
    position: relative;
    left: 0px;
    right: 0px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(5px);
    padding: 0px 0px 0px 0px;
    border-radius: 6px;
    margin: 8px 0px;
    width: 100%;
    box-sizing: border-box;
}

    .thumbnails .thumb {
        flex: 1 0 0; /* ширина примерно 1/4 с учетом gap */
        width: 80px;
        max-width: 195px;
        height: 65px;
        object-fit: cover;
        cursor: pointer;
        border: 0px solid #ffffff36;
        border-radius: 5px;
        transition: all 0.15s;
        box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
    }

        .thumbnails .thumb:hover {
            border-color: #ff8c1a;
            height: 70px;
            margin-top: -3px;
            margin-bottom: -2px;
        }

        .thumbnails .thumb.active {
            border-color: #ff8c1a;
            width: 80px;
            height: 70px;
            margin-top: -3px;
        }

            .thumbnails .thumb.active:hover {
                border-color: #ff8c1a;
                width: 80px;
                height: 70px;
                margin-top: -3px;
                margin-bottom: 0px;
            }







.other-dishes {
    max-width: 800px;
    margin: 30px auto;
    background: #2e2e2eeb;
    background: #1a1a1add;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.footer {
    max-width: 800px;
    margin: 30px auto 10px auto;
    background: #2e2e2eeb;
    background: #1a1a1ac4;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    color: #929298;
    font-size: 14px;
}

    .footer div a {
        padding: 3px 0px 3px 0px;
        display: inline-block;
    }

.dish-grid {
    display: flex;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.dish-card {
    max-width: 166px;
    min-width: 166px;
    background: #50505033;
    text-decoration: none;
    font-weight: 400;
    border-radius: 12px;
    border: 1px solid #77777777;
    overflow: hidden;
    text-align: center;
    padding: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .dish-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
        background: #50505066;
    }

    .dish-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 8px;
        transition: opacity 0.25s ease;
    }

    .dish-card h3 {
        font-size: 17px;
        font-weight: 400;
        color: #ffe152;
        margin: 5px 0;
    }

    .dish-card p {
        font-size: 14px;
        color: #ccc;
        margin: 15px 0px 0px 0px;
    }


.recipe-list_ {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 15px;
}
/*        .recipe-card_ {
    width: 100%;
    max-width: 400px;
    background: #2727278a;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.20);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s;
}
    .recipe-card_:hover {
    background: #272727cc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    margin: -1px 0px 1px 0px;
}*/


.recipe-card_ {
    border-bottom: 12px solid #232323;
    width: 100%;
    max-width: 400px;
    background: #2727278a;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.20);
    overflow: hidden; /* скрываем лишний текст */
    display: flex;
    flex-direction: column;
    max-height: 498px; /* фиксированная высота */
    min-height: 498px;
    transition: all 0.3s ease;
    position: relative; /* нужно для z-index */
}

    .recipe-card_:hover {
        max-height: 800px; /* высота при ховере, можно больше */
        z-index: 10; /* чтобы быть поверх соседних */
        background: #272727cc;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
        margin: -1px 0px 1px 0px;
    }

.recipe-link_ {
    text-decoration: none;
    color: inherit;
}

.recipe-image_ img {
    width: 100%;
    height: 200px;
}

.recipe-content_ {
    padding: 15px;
    flex: 1;
}

.recipe-title_ {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 400;
    line-height: 20px;
    color: #7ea1b8;
}

.recipe-content_ p {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 100;
    line-height: 16px;
    color: #ffffffaa;
}

blockquote {
    font-style: italic;
    padding: 20px 35px 10px 35px;
    /* line-height: 1px !important; */
    border: 1px solid #66666666;
    color: #5f9d9f;
    border-radius: 15px;
    background-color: #ffffff0f;
    margin: 50px;
}

    blockquote p {
        font-style: italic;
        line-height: 25px !important;
        color: #5f9d9f;
        font-weight: 200;
    }


.dish-unavailable {
    opacity: 0.45;
    filter: grayscale(85%);
    cursor: default;
    border: solid 1px #5e5e5e91;
}

    .dish-unavailable:hover {
        transform: none;
        box-shadow: none;
    }

.order-btn-dish {
    background-color: #45a049;
    color: #222222dd;
    margin: 10px auto;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 16px;
    margin-left: 8px;
}

    .order-btn-dish:hover {
        background-color: #e67e22;
        color: #ffffff;
        border-radius: 12px;
    }

.order-select-dish {
    margin-left: 8px;
    padding: 8px;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-weight: 400;
    width: 60px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    background-color: #ffffff3b;
    border: 1.6px solid #4caf50de;
    color: #ffffff;
    display: inline-block;
    transition: all 0.3s ease;
}

    .order-select-dish:hover {
        border-radius: 12px;
        border: 1.6px solid #e67e22;
    }

.order-btn, .order-select {
    display: block;
    width: 80%;
    margin: 10px auto;
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.musreg {
    margin: 50px 50px 50px 50px;
    text-align: center;
}

.more-more {
    display: flex;
    gap: 10px;
    padding: 0px;
    list-style: none;
    margin: 35px 0px 0px 20px;
}

    .more-more span {
        display: block;
        line-height: 1.15em;
        text-align: center;
        font-size: 13px;
        font-weight: 100;
        color: #dddddd;
    }

    .more-more .dish-time {
        width: 45px;
        height: 40px;
        background-color: #3d3d3d;
        padding: 15px;
        border-radius: 12px;
        text-align: center;
        margin-bottom: 7px;
        border: 1px solid #ffffff45;
        box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

#mainportionsize {
    margin: 0px 0px -20px 0px;
    font-weight: 100;
    font-size: 18px;
    color: #5f9ea0;
}

#mainprice {
    margin: -70px 0px 20px 0px;
    font-size: 20px;
    float: right;
    color: cadetblue;
    background: rgb(84 84 84 / 50%);
    padding: 14px;
    border-radius: 10px;
    backdrop-filter: blur(7px);
    overflow-x: auto;
    border: 1px solid #ffffff33;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}


.ingredient-list {
    list-style: none; /* убираем стандартные маркеры */
    padding-left: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .ingredient-list li {
        display: inline-block;
        color: #dbdbdbbb;
        background-color: #7d7d7d4a;
        padding: 10px 25px;
        border-radius: 25px;
        border: 1px solid #fbfbfb0a;
        position: relative;
        font-size: 14px;
        transition: all 0.75s ease;
        box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

        .ingredient-list li:hover {
            background-color: #f9f9f933;
        }

#divIngredients {
    padding: 0px 0px 0px 5%;
}

.navbar-brand {
    width: 150px;
}

    .navbar-brand img {
        width: 50px;
        padding: 5px;
        background: -webkit-linear-gradient(180deg, #abac7f, #828260);
        background: -o-linear-gradient(180deg, #abac7f, #828260);
        background: linear-gradient(180deg, #abac7f, #828260);
        border-radius: 4px;
    }

    .navbar-brand #logoname {
        vertical-align: middle;
        float: right;
        margin: 6px 0px 15px 15px;
        font-size: 22px;
        color: #abac7f;
        text-decoration: none !important;
    }

.footer {
    max-width: 800px;
    margin: 30px auto 10px auto;
    background: #2e2e2eeb;
    background: #1a1a1af9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    color: #929298;
    font-size: 14px;
}

    .footer div {
        margin: 0px 0px -10px 0px;
    }

        .footer div a {
            padding: 3px 0px 3px 0px;
            display: inline-block;
            color: #929298;
            font-weight: 400;
        }

.recipe-top {
    /*display: flex;
    gap: 30px;*/
    margin-top: 20px;
}

.recipe-image {
    width: 48%;
    float: left;
    margin: 0px 30px 20px 0px;
}

.recipe-text {
    /*width: 50%;*/
}

.recipe-label {
    display: block;
    color: #5c5c5c;
    font-size: 16px;
    text-align: right;
}

/* После верхнего блока — всё на всю ширину */
.recipe-full {
    margin-top: 40px;
}

/* Адаптив */
@media (max-width: 900px) {
    .recipe-top {
        flex-direction: column;
    }

    .recipe-image,
    .recipe-text {
        width: 100%;
    }
}

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .image-modal img {
        outline: 5px solid #fafafa;
        max-width: 85%;
        max-height: auto;
        border-radius: 20px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    }
