﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: rgb(38, 137, 208);
    --main-color: rgb(223, 218, 218);
}


.main_container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header_section {
    background-color: var(--bg-color);
    align-items: center;
    padding: 10px;
    justify-content: center;
    color: var(--main-color);
    text-align: center;
}

.header_section img{
    max-width: 80px;
}
 
.header_flex{
    display: flex;
    justify-content: space-around;
    align-items: center;
}


.search_section {
     margin-top: 10px;
}

.search_section input {
    padding: 0.5rem;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
}


@media (max-width:480px) {
    
    .search_section{
       display: flex;
    }
    input{
        width: 106.16px;
        height: 37.44px;
    }
    button{
        width: 65px;
       
    }
    .header_section img{
        width: 60px;
    }
}

@media (max-width:320px) {
    .header_section img{
        display: none;
    }
}

.search_section button {
    padding: 0.5rem;
    border: none;
    border-radius: 0px 15px 15px 0px;
    margin-left: -20px;
    font-size: 1rem;
}

.filter_section {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;

}

.filter_section select {
    padding: 0.55rem 0.9rem;
    border-radius: 15px;
    border: 1px solid #bbb;
    font-size: 0.95rem;
    min-width: 150px;
    
}

/* .recipy_container{
    visibility: hidden;
} */

.recipes_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.recipe_card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 18px;
    background-color: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}


iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 12px;
   
}

[id^="video-"] {
    width: 100%;
    margin-top: 15px;
}

.recipe_card {
    overflow: visible;
}

.recipe_card h2,
.recipy_card h2 {
    color: #165896;
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.recipe_image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 10px;
    background: #e2e8f0;
}

.recipe_card p,
.recipy_card p {
    color: #475569;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.recipe_card ul {
    list-style-position: inside;
    color: #475569;
}

footer p {
    text-align: center;
    background-color: var(--bg-color);
    padding: 18px 12px;
    color: var(--main-color);
    border-radius: 0 0 24px 24px;
    margin-top: 12px;
}


main .recipes_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;

}

main .recipe_card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

main .recipe_card:hover {
    transform: scale(1.05);
}


main .recipe_card img {
    width: 100%;
}

.recipe_detail_container,
.recipe_card {
    width: 100%;
}

.recipe_detail_card {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.recipe_detail_card h2 {
    margin-bottom: 10px;
}

.detail_section {
    margin-top: 20px;
}

.detail_section h3 {
    margin-bottom: 10px;
}

.card_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.youtube_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background-color: #ff0000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    border: none;
}

.youtube_button .youtube_logo {
    width: 18px;
    height: 14px;
    display: inline-block;
    background: #fff;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M10 8.64L15.27 12 10 15.36V8.64zM21.8 7.23C21.74 6.6 21.33 6.08 20.7 5.94 18.9 5.5 12 5.5 12 5.5s-6.9 0-8.7.44C2.67 6.08 2.26 6.6 2.2 7.23 2 9.1 2 12 2 12s0 2.9.2 4.77c.06.63.47 1.15 1.1 1.29 1.8.44 8.7.44 8.7.44s6.9 0 8.7-.44c.63-.14 1.04-.66 1.1-1.29.2-1.87.2-4.77.2-4.77s0-2.9-.2-4.77z'/%3E%3C/svg%3E") center / contain no-repeat;
    background-color: #fff;
}

.detail_button,
.back_button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 16px;
    background-color: rgb(38, 137, 208);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}


.detail_button:hover,
.back_button:hover {
    color: rgb(38, 137, 208);
    background-color: rgb(255, 255, 255);
}

.recipe_detail_card {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.recipe_detail_image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
}

.recipe_detail_info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.recipe_detail_card h2 {
    margin-bottom: 10px;
    font-size: 2rem;
    color: #1a1a1a;
}

.detail_summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    background: #f7fdfd;
    border: 1px solid #e6f7f7;
    padding: 16px;
    border-radius: 12px;
    color: #333;
}

.detail_summary span {
    font-size: 0.95rem;
    line-height: 1.5;
}

 