
/* =========================================
   PAGE WRAPPER
========================================= */

.search-page {
    width: 92%;
    max-width: 1150px;
    margin: 35px auto 50px;
    margin: 0;
    padding: 0;
    background: #f5f7fb;
    direction: rtl;
    text-align: right;
    color: #333;
}

/* =========================================
   SEARCH BOX
========================================= */

.search-box {
    background: #ffffff;
    padding: 28px;
    border-radius: 22px;

    box-shadow:
        0 4px 18px rgba(0,0,0,0.06);

    margin-bottom: 35px;

    border: 1px solid #ececec;
}

.search-form {
    display: flex;
    gap: 14px;
    align-items: center;
}

.search-form input[type="text"] {
    flex: 1;

    padding: 16px 20px;

    border: 2px solid #ececec;
    border-radius: 14px;

    font-size: 17px;

    outline: none;

    background: #fafafa;

    transition: all 0.25s ease;
}

.search-form input[type="text"]:focus {
    border-color: #f0af21;
    background: #fff;

    box-shadow:
        0 0 0 4px rgba(240,175,33,0.10);
}

.search-form button {
    background:
        linear-gradient(
            135deg,
            #f0af21,
            #e67e22
        );

    color: #fff;

    border: none;

    padding: 16px 34px;

    border-radius: 14px;

    font-size: 17px;
    font-weight: bold;

    cursor: pointer;

    transition: all 0.25s ease;

    min-width: 130px;
}

.search-form button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 18px rgba(240,175,33,0.35);
}

/* =========================================
   RESULTS TITLE
========================================= */

.results-title {
    font-size: 28px;
    font-weight: bold;

    margin-bottom: 25px;

    color: #222;

    padding-right: 5px;
}

/* =========================================
   NO RESULTS
========================================= */

.no-results {
    background: #fff;

    padding: 40px;

    border-radius: 22px;

    text-align: center;

    font-size: 22px;

    color: #777;

    border: 1px solid #ececec;

    box-shadow:
        0 4px 18px rgba(0,0,0,0.06);
}

/* =========================================
   RESULTS LIST
========================================= */

.recipe-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* =========================================
   RECIPE CARD
========================================= */

.recipe-card {
    background: #ffffff;

    border-radius: 22px;

    padding: 26px;

    display: flex;
    align-items: flex-start;
    gap: 22px;

    border: 1px solid #ededed;

    box-shadow:
        0 4px 18px rgba(0,0,0,0.05);

    transition: all 0.28s ease;
}

.recipe-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 28px rgba(0,0,0,0.10);
}

/* =========================================
   ICON
========================================= */

.recipe-icon {
    width: 72px;
    height: 72px;

    min-width: 72px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #f0af21,
            #e67e22
        );

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;

    color: #fff;

    box-shadow:
        0 6px 18px rgba(240,175,33,0.30);
}

/* =========================================
   CONTENT
========================================= */

.recipe-content {
    flex: 1;
}

/* =========================================
   TITLE
========================================= */

.recipe-title {
    margin: 0 0 12px;

    font-size: 27px;
    font-weight: bold;

    line-height: 1.8;
}

.recipe-title a {
    color: #222;
    text-decoration: none;

    transition: color 0.25s ease;
}

.recipe-title a:hover {
    color: #e67e22;
}

/* =========================================
   DESCRIPTION
========================================= */

.recipe-description {
    font-size: 16px;

    line-height: 2;

    color: #666;

    margin-bottom: 20px;
}

/* =========================================
   FOOTER
========================================= */

.recipe-footer {
    display: flex;
    justify-content: flex-start;
}

/* =========================================
   BUTTON
========================================= */

.view-button {
    background:
        linear-gradient(
            135deg,
            #f0af21,
            #e67e22
        );

    color: #fff;

    text-decoration: none;

    padding: 12px 24px;

    border-radius: 12px;

    font-size: 15px;
    font-weight: bold;

    transition: all 0.25s ease;
}

.view-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 18px rgba(240,175,33,0.35);
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .search-page {
        width: 95%;
    }

    .search-box {
        padding: 20px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form input[type="text"],
    .search-form button {
        width: 100%;
        box-sizing: border-box;
    }

    .results-title {
        font-size: 24px;
    }

    .recipe-card {
        flex-direction: column;
        padding: 22px;
    }

    .recipe-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;

        font-size: 28px;
    }

    .recipe-title {
        font-size: 23px;
    }

    .recipe-description {
        font-size: 15px;
    }
}

.recipe-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;

    font-size: 12px;
    font-weight: bold;

    margin-bottom: 10px;

    color: #fff;
}

.search-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

/* =========================
   RESULTS GRID (2 per row)
========================= */

.recipe-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* =========================
   CARD
========================= */

.recipe-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    gap: 18px;
    align-items: flex-start;

    border: 1px solid #f1f1f1;

    box-shadow: 0 3px 12px rgba(0,0,0,0.06);

    transition: 0.25s ease;
}

.recipe-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

/* =========================
   ICON (TYPE BASED)
========================= */

.recipe-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
    color: #fff;

    background: linear-gradient(135deg, #f0af21, #e67e22);
}

/* =========================
   CONTENT
========================= */

.recipe-content {
    flex: 1;
}

.recipe-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.7;
}

.recipe-title a {
    color: #222;
    text-decoration: none;
}

.recipe-title a:hover {
    color: #e67e22;
}

.recipe-description {
    font-size: 14px;
    line-height: 1.9;
    color: #666;
}

/* =========================
   MOBILE (1 per row)
========================= */

@media (max-width: 768px) {
    .recipe-list {
        grid-template-columns: 1fr;
    }

    .recipe-card {
        flex-direction: row;
    }
}