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

body{

    font-family:Poppins,sans-serif;
    background:#f8fafc;
    color:#222;
}

/* HERO */

.hero{

    height:55vh;

    background:
    linear-gradient(rgba(0,0,0,.55),
    rgba(0,0,0,.55)),
    url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1600&q=80");

    background-size:cover;
    background-position:center;

    display:flex;
    flex-direction:column;
}

.navbar{

    padding:25px 60px;
}

.logo{

    color:white;
    font-size:32px;
    font-weight:700;
}

.hero-content{

    flex:1;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;
}

.hero-content h1{

    color:white;
    font-size:55px;
}

.hero-content p{

    color:white;

    margin:20px 0;

    font-size:18px;
}

.filter-box{

    margin-top:20px;
}

#category-dropdown{

    width:320px;

    padding:15px 20px;

    border:none;

    border-radius:12px;

    font-size:17px;

    outline:none;

    box-shadow:0 8px 25px rgba(0,0,0,.25);
}

/* MAIN */

.main-content{

    width:90%;

    margin:auto;

    padding:60px 0;
}

.section-title{

    text-align:center;

    margin-bottom:40px;

    font-size:34px;
}

.display-category-container{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;
}

/* CATEGORY CARD */

.category-card{

    background:white;

    border-radius:18px;

    overflow:hidden;

    cursor:pointer;

    transition:.35s;

    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.category-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 40px rgba(0,0,0,.18);
}

.image-container{

    overflow:hidden;
}

.image-container img{

    width:100%;

    height:230px;

    object-fit:cover;

    transition:.4s;
}

.category-card:hover img{

    transform:scale(1.08);
}

.card-content{

    padding:22px;
}

.card-content h2{

    margin-bottom:10px;

    font-size:22px;
}

.card-content p{

    color:#666;

    line-height:1.6;
}

/* MEAL CARD */

.meal-card{

    background:white;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    transition:.3s;
}

.meal-card:hover{

    transform:translateY(-8px);
}

.meal-card img{

    width:100%;

    height:260px;

    object-fit:cover;
}

.meal-content{

    padding:20px;

    text-align:center;
}

.meal-content h2{

    font-size:20px;
}

/* Responsive */

@media(max-width:768px){

.hero{

height:70vh;

}

.hero-content h1{

font-size:38px;

}

#category-dropdown{

width:90%;

}

.logo{

font-size:24px;

}

}

/* ===========================
   Recipe Details
=========================== */

.recipe-container{
    width:min(1200px,90%);
    margin:40px auto;
    display:flex;
    flex-direction:column;
    gap:40px;
}

/* Header */

.recipe-header{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:40px;
    background:#fff;
    padding:30px;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

.recipe-image{
    width:100%;
    height:420px;
    object-fit:cover;
    border-radius:18px;
}

.recipe-info{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.recipe-info h1{
    font-size:3rem;
    margin-bottom:20px;
    color:#222;
}

.recipe-meta{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
}

.recipe-meta span{
    background:#f1f5f9;
    color:#333;
    padding:10px 18px;
    border-radius:30px;
    font-size:.95rem;
    font-weight:500;
}

/* Body */

.recipe-body{
    display:grid;
    grid-template-columns:320px 1fr;
    gap:35px;
}

/* Common Card */

.ingredients-section,
.instructions-section,
.video-section,
.source-section{
    background:#fff;
    padding:30px;
    border-radius:18px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}

.ingredients-section h2,
.instructions-section h2,
.video-section h2,
.source-section h2{
    margin-bottom:20px;
    font-size:1.6rem;
    color:#222;
}

/* Ingredients */

.ingredients-list{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.ingredients-list li{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 15px;
    background:#f8fafc;
    border-radius:10px;
    border-left:5px solid #ff7043;
}

.ingredients-list span{
    color:#666;
}

.ingredients-list strong{
    color:#222;
}

/* Instructions */

.instructions-section{
    line-height:1.9;
    font-size:1rem;
    color:#555;
}

/* Bottom Sections */

.video-section,
.source-section{
    margin-top:30px;
}

.video-section a,
.source-section a{
    display:inline-block;
    margin-top:10px;
    padding:12px 24px;
    background:#ff7043;
    color:#fff;
    text-decoration:none;
    border-radius:10px;
    transition:.3s;
    font-weight:600;
}

.video-section a:hover,
.source-section a:hover{
    background:#ff5722;
    transform:translateY(-3px);
    box-shadow:0 10px 20px rgba(255,87,34,.25);
}

/* Scroll Animation */

.recipe-container>*{
    animation:fadeUp .5s ease;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* Responsive */

@media(max-width:900px){

    .recipe-header{
        grid-template-columns:1fr;
    }

    .recipe-image{
        height:320px;
    }

    .recipe-body{
        grid-template-columns:1fr;
    }

    .recipe-info h1{
        font-size:2.2rem;
    }

}

@media(max-width:600px){

    .recipe-container{
        width:95%;
    }

    .recipe-header{
        padding:20px;
    }

    .ingredients-section,
    .instructions-section,
    .video-section,
    .source-section{
        padding:20px;
    }

    .recipe-info h1{
        font-size:1.8rem;
    }

    .recipe-meta{
        gap:10px;
    }

    .recipe-meta span{
        font-size:.85rem;
        padding:8px 14px;
    }

}