*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:Arial;
background:#f5f5f5;
}

nav{
background:#ff6b35;
color:#fff;
padding:20px;
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
}

html{
    scroll-behavior:smooth;
}

#searchBtn{
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #88462d, #ff3c00c5);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 10px rgba(255,107,53,0.3);
}

#searchBtn:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255,107,53,0.4);
}

#searchBtn:active{
    transform: scale(0.95);
}


.search-box{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:nowrap;  
}

@media (max-width: 600px){
    .search-box{
        flex-wrap:wrap;
    }

    .icon-btn{
        width:100%;
    }
}

.search-box input{
    width: 260px;
    padding: 10px 11px;
    border: 2px solid transparent;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
    transition: 0.3s ease;
    background: #fff;
}

.search-box input:focus{
    border: 2px solid #ff6b35;
    box-shadow: 0 0 10px rgba(255,107,53,0.3);
    transform: scale(1.03);
}

button{
padding:10px 15px;
border:none;
background:#000;
color:#fff;
border-radius:5px;
cursor:pointer;
}

.hero{
text-align:center;
padding:40px;
}

#recipe-container{
width:90%;
margin:auto;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
}

.recipe-card{
background:#fff;
border-radius:10px;
overflow:hidden;
box-shadow:0 3px 10px rgba(0,0,0,.2);
text-align:center;
padding-bottom:15px;
}

.recipe-card img{
width:100%;
height:220px;
object-fit:cover;
}

.recipe-card h3{
padding:10px;
}

.card-buttons{
display:flex;
gap:10px;
justify-content:center;
padding:10px;
flex-wrap:wrap;
}

#loading{
text-align:center;
margin:20px;
}

.spinner{
width:50px;
height:50px;
border:6px solid #ddd;
border-top:6px solid #ff6b35;
border-radius:50%;
margin:auto;
animation:spin 1s linear infinite;
}

@keyframes spin{
to{transform:rotate(360deg);}
}

.modal{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.7);
justify-content:center;
align-items:center;
padding:20px;
}

.modal-content{
background:#fff;
padding:20px;
width:600px;
max-height:80vh;
overflow:auto;
border-radius:10px;
position:relative;
animation:pop .3s ease;
}

@keyframes pop{
from{transform:scale(.5);opacity:0;}
to{transform:scale(1);opacity:1;}
}

#closeBtn{
position:absolute;
top:10px;
right:15px;
font-size:25px;
cursor:pointer;
}

#modalBody h2{
text-align:center;
margin-bottom:10px;
}

#modalBody img{
width:100%;
border-radius:10px;
}

#modalBody h3{
margin-top:15px;
color:#ff6b35;
}

#modalBody ul{
list-style:none;
padding:0;
}

#modalBody li{
background:#eee;
padding:8px;
margin:5px 0;
border-radius:5px;
}

.favorites-section{
width:90%;
margin:30px auto;
}

#favorites-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
    align-items:stretch;
}

.favorite-card{
    background:#fff;
    padding:10px;
    border-radius:10px;
    text-align:center;
    box-shadow:0 3px 10px rgba(0,0,0,.2);

    display:flex;
    flex-direction:column;
    justify-content:space-between;

    height:340px;    
    overflow:hidden;
}

.favorite-card img{
    width:100%;
    height:160px;   
    object-fit:cover;
    border-radius:10px;
}

.favorite-card h4{
    height:45px;     
    overflow:hidden;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.fav-buttons{
display:flex;
gap:10px;
justify-content:center;
margin-top:10px;
}

.saved-btn{
background:#ff6b35 !important;
color:#fff !important;
}

#videoContainer{
    width:100%;
    height:400px;
}

#videoContainer iframe{
    width:100%;
    height:100%;
    border-radius:10px;
}

#closeVideoBtn{
    position:absolute;
    top:10px;
    right:15px;
    font-size:25px;
    cursor:pointer;
}

#message{
    text-align:center;
    margin-top:10px;
    color:#ff3d00;
    font-weight:500;
}

.icon-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    background:#000;
    color:#fff;
    border-radius:12px;
    text-decoration:none;
    font-size:18px;
    transition:0.3s ease;
}

.icon-btn:hover{
    background:#ff6b35;
    transform:translateY(-2px);
    box-shadow:0 5px 12px rgba(255,107,53,0.3);
}

body.dark {
    background:#121212;
    color:#fff;
}

body.dark .recipe-card,
body.dark .favorite-card,
body.dark .modal-content {
    background:#1e1e1e;
    color:#fff;
}
.icon-btn i{
    transition:0.3s;
}

.icon-btn:hover i{
    transform:scale(1.2);
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;

    color:white;
    text-decoration:none;

    font-size:20px;
    font-weight:bold;
}

.logo:hover{
    opacity:.9;
}

.logo img{
    width:40px;
    height:40px;
    object-fit:contain;
    border-radius:8px;
}

@media (max-width:600px){
    .logo{
        font-size:16px;
    }

    .logo img{
        width:32px;
        height:32px;
    }
}

.hero{
    text-align:center;
    padding:60px 20px;
}

.hero-logo{
    width:120px;
    height:120px;
    object-fit:contain;
    margin-bottom:20px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow{
    0%{
        transform:scale(1);
        filter: drop-shadow(0 0 0 rgba(255,107,53,0));
    }

    50%{
        transform:scale(1.08);
        filter: drop-shadow(0 0 25px rgba(255,107,53,0.6));
    }

    100%{
        transform:scale(1);
        filter: drop-shadow(0 0 0 rgba(255,107,53,0));
    }
}

nav,
.navbar{
    position: sticky;
    top: 0;
    z-index: 1000;

    display:flex;
    justify-content:space-between;
    align-items:center;
       padding:10px 18px; 


    background: rgba(255, 107, 53, 0.75); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color:#fff;
    box-shadow:0 4px 20px rgba(0,0,0,0.15);
}

.nav-actions{
    display:flex;
    gap:10px;
    align-items:center;
}

.icon-btn{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#00000095;
    color:#fff;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-size:18px;
    transition:0.3s ease;
    text-decoration:none;
}

.icon-btn:hover{
    background:rgba(255, 255, 255, 0.493);
    color:#000;
    transform:translateY(-2px);
}

body.dark {
    background:#121212;
    color:#fff;
}

body.dark nav,
body.dark .navbar{

    background:rgba(18,18,18,0.65);

    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);

    border-bottom:1px solid rgba(255,255,255,0.08);

    box-shadow:0 4px 20px rgba(0,0,0,0.35);
}

body.dark .favorite-card {
    background:#2a2a2a;
    color:#ffffff;
}

body.dark .modal-content {
    background:#1e1e1e;
    color:#006b95;
}

body.dark .icon-btn {
    background:#802c2c;
    color:#000;
}

@media (max-width:600px){

    nav,
    .navbar{
        padding:8px 12px;
        min-height:50px;
    }

    .logo img{
        width:28px;
        height:28px;
    }

    .logo h1,
    nav h1{
        font-size:18px;
    }

    .icon-btn{
        width:36px;
        height:36px;
        font-size:16px;
    }

    .search-box input{
        width:160px;
        padding:8px;
    }

}

.nav-actions{
    display:flex;
    gap:10px;
    align-items:center;
}

.icon-btn{
    cursor:pointer;
}

#foodCursor{
    position:fixed;
    font-size:25px;
    pointer-events:none;
    z-index:9999;
}

.footer{
    margin-top:40px;
    padding:25px 15px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;

    background:rgba(255,255,255,0.15);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);

    border-top:1px solid rgba(0,0,0,0.08);

    box-shadow:0 -5px 20px rgba(0,0,0,0.05);

    text-align:center;

    transition:0.3s ease;
}

.footer img{
    width:65px;
    height:65px;

    border-radius:50%;
    object-fit:cover;

    border:3px solid #ff6b35;

    box-shadow:0 5px 15px rgba(255,107,53,0.3);

    transition:0.3s ease;
}

.footer img:hover{
    transform:scale(1.05);
}

.footer p{
    margin:0;

    font-size:14px;
    font-weight:500;

    color:#333;
    letter-spacing:0.3px;
}

body.dark .footer{
    background:rgba(0,0,0,0.25);
    border-top:1px solid rgba(255,255,255,0.08);
}

body.dark .footer p{
    color:#fff;
}

body.dark .footer img{
    border-color:#fff;
    box-shadow:0 5px 15px rgba(255,255,255,0.2);
}

body{
    font-family:Arial;
    background:#f5f5f5;

    min-height:100vh;
    display:flex;
    flex-direction:column;
}

.footer{
    margin-top:auto;
}

#recipe-container,
.favorites-section,
.hero{
    flex:1;
}

.footer-icons{
    display:flex;
    gap:12px;
    margin-top:10px;
}

.social-icon{
    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:10px;

    color:#000000;

    text-decoration:none;

    font-size:18px;

    transition:0.3s ease;
}

.social-icon:hover{
    background:#ff6b35;
    transform:translateY(-3px);
    box-shadow:0 5px 12px rgba(255,107,53,0.3);
}

body.dark .social-icon{

    color:#ffffff;
}

#splashScreen{
    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:100vh;

    background:#ff6b35;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    color:white;
    z-index:9999;

    animation:fadeIn 0.5s ease;
}

#splashScreen img{
    width:100px;
    height:100px;
    object-fit:contain;

    animation:popLogo 1s ease;
}

#splashScreen h1{
    margin-top:10px;
    font-size:24px;
    animation:slideUp 1s ease;
}

@keyframes popLogo{
    0%{transform:scale(0);}
    100%{transform:scale(1);}
}

@keyframes slideUp{
    from{transform:translateY(20px);opacity:0;}
    to{transform:translateY(0);opacity:1;}
}

@keyframes fadeIn{
    from{opacity:0;}
    to{opacity:1;}
}
