@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
background:#0d0d0d;
color:#cbb6ff;
font-family:'Poppins',sans-serif;
line-height:1.6;
}

/* TOP BAR */

.topbar{
height:60px;
background:#111;
border-bottom:1px solid #1f1f1f;
display:flex;
align-items:center;
padding:0 25px;
backdrop-filter: blur(6px);
}

.top-links{
display:flex;
gap:15px;
}

.top-links a{
padding:10px 16px;
color:#c084ff;
letter-spacing:1px;
text-decoration:none;
font-weight:500;
border-radius:8px;
transition:all .25s ease;
}

.top-links a:hover{
background:#1c1c1c;
color:#ffffff;
transform:translateY(-1px);
}

/* LAYOUT */

.layout{
display:flex;
}

/* SIDEBAR */

.sidebar{
width:200px;
background:#111;
border-right:1px solid #1f1f1f;

position:fixed;
top:50%;
left:0;
transform:translateY(-50%);

display:flex;
align-items:center;
}

.side-links{
width:100%;
}

.side-links a{
display:block;
padding:15px 20px;
color:#a970ff;
letter-spacing:1px;
text-decoration:none;
border-bottom:1px solid #1f1f1f;
transition:all .25s ease;
}

.side-links a:hover{
background:linear-gradient(90deg,#a970ff,#ff7ad9,#7aa2ff);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;

padding-left:28px;
border-left:3px solid #a970ff;
}

/* CONTENT */

.content{
flex:1;
padding:35px;
margin-left:200px;
max-width:1100px;
}

/* HERO IMAGE */

.hero{
position:relative;
height:380px;
border-radius:20px;
overflow:hidden;
background:#141414;
box-shadow:0 20px 45px rgba(0,0,0,0.75);
}

.hero img{
width:100%;
height:100%;
object-fit:cover;
transition:transform .6s ease;
}

.hero:hover img{
transform:scale(1.05);
}

.hero::after{
content:"";
position:absolute;
inset:0;
background:linear-gradient(to bottom,rgba(0,0,0,0.1),rgba(0,0,0,0.85));
}

/* HERO TEXT */

.hero-text{
margin-top:30px;
background:#141414;
border-radius:20px;
padding:35px;
box-shadow:0 20px 40px rgba(0,0,0,0.7);
}

.hero-text h1{
font-size:36px;
margin-bottom:15px;

background:linear-gradient(45deg,#a970ff,#ff7ad9,#7aa2ff);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}

.hero-text p{
font-size:16px;
line-height:1.8;
color:#e0c3ff;
}

/* BACK BUTTON */

.back-button{
margin-bottom:20px;
}

.back-button a{
display:inline-block;
background:#141414;
color:#c084ff;
padding:10px 18px;
border-radius:12px;
text-decoration:none;
font-weight:500;
box-shadow:0 10px 25px rgba(0,0,0,0.6);
transition:all .25s ease;
}

.back-button a:hover{
transform:translateY(-4px);
background:#1c1c1c;
}

/* RECIPE GRID */

.recipe-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:25px;
margin-top:30px;
}

/* RECIPE CARDS */

.recipe-card{
background:#141414;
padding:28px;
border-radius:20px;
box-shadow:0 15px 35px rgba(0,0,0,0.65);
transition:all .25s ease;
}

.recipe-card:hover{
transform:translateY(-6px);
box-shadow:0 20px 45px rgba(0,0,0,0.8);
}

.recipe-card h2{
margin-bottom:18px;
font-size:22px;

background:linear-gradient(45deg,#a970ff,#ff7ad9,#7aa2ff);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}

/* INGREDIENTS */

.recipe-card ul{
list-style:none;
padding-left:0;
}

.recipe-card ul li{
padding:10px 0;
border-bottom:1px solid #1f1f1f;
color:#e0c3ff;
position:relative;
padding-left:22px;
}

.recipe-card ul li::before{
content:"●";
position:absolute;
left:0;
color:#a970ff;
}

/* STEPS */

.recipe-card ol{
counter-reset:step;
list-style:none;
padding-left:0;
}

.recipe-card ol li{
counter-increment:step;
padding:12px 0;
border-bottom:1px solid #1f1f1f;
color:#e0c3ff;
position:relative;
padding-left:42px;
}

.recipe-card ol li::before{
content:counter(step);
position:absolute;
left:0;
top:8px;
width:28px;
height:28px;
border-radius:50%;
background:#a970ff;
color:#0d0d0d;
font-weight:600;
display:flex;
align-items:center;
justify-content:center;
font-size:14px;
}

/* NOTES CARD (SPAN BOTH COLUMNS) */

.recipe-card:last-child{
grid-column:span 2;
}

/* SCROLLBAR */

::-webkit-scrollbar{
width:8px;
}

::-webkit-scrollbar-thumb{
background:#a970ff;
border-radius:10px;
}

::-webkit-scrollbar-track{
background:#0d0d0d;
}

/* MOBILE */

@media(max-width:800px){

.recipe-grid{
grid-template-columns:1fr;
}

.recipe-card:last-child{
grid-column:span 1;
}

.sidebar{
position:relative;
top:0;
transform:none;
width:100%;
}

.layout{
flex-direction:column;
}

.content{
margin-left:0;
padding:25px;
}

.side-links{
display:flex;
justify-content:space-around;
}

.side-links a{
padding:10px;
}

.hero{
height:260px;
}
}

/* TEXT FORMATTING */

p{
white-space:pre-wrap;
}
.time-info{
display:flex;
gap:15px;
margin-top:15px;
flex-wrap:wrap;
}

.time-info span{
background:#1a1a1a;
padding:8px 14px;
border-radius:20px;
font-size:14px;
color:#e0c3ff;
border:1px solid #2a2a2a;
}
.ingredients li{
font-size:15px;
display:flex;
align-items:center;
gap:10px;
}
.rating{
margin-top:15px;
font-size:20px;
color:#ffd700;
}

.rating span{
font-size:14px;
color:#cbb6ff;
margin-left:10px;
}