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

body{
    font-family:'Inter',sans-serif;
    background:#fafafa;
    color:#111;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* APP */

.app{
    width:100%;
    max-width:500px;
    margin:auto;
    min-height:100vh;
    background:white;
    border-left:1px solid #dbdbdb;
    border-right:1px solid #dbdbdb;
}

/* TOP BAR */

.topbar{
    position:sticky;
    top:0;
    z-index:100;
    background:white;
    border-bottom:1px solid #efefef;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 18px;
}

.logo{
    font-size:1.45rem;
    font-weight:700;
    letter-spacing:-0.05em;
}

.top-icons{
    display:flex;
    gap:18px;
}

.icon{
    width:24px;
    height:24px;
}

/* PROFILE */

.profile{
    padding:24px 18px 10px;
}

.profile-top{
    display:flex;
    align-items:center;
    gap:24px;
}

.profile-pic{
    width:95px;
    height:95px;
    border-radius:50%;
    overflow:hidden;
    flex-shrink:0;
    border:2px solid #f3d0c4;
}

.profile-stats{
    flex:1;
    display:flex;
    justify-content:space-between;
    text-align:center;
}

.stat-number{
    font-weight:700;
    font-size:1.15rem;
}

.stat-label{
    font-size:0.85rem;
    margin-top:3px;
    color:#555;
}

.username{
    margin-top:18px;
    font-weight:700;
    font-size:.5rem;
}

.bio{
    margin-top:6px;
    color:#444;
    font-size:0.8rem;
    line-height:1.45;
}

.bio span{
    color:#00376b;
    font-weight:500;
}

.buttons{
    display:flex;
    gap:8px;
    margin-top:18px;
}

.btn{
    flex:1;
    background:#efefef;
    border:none;
    border-radius:8px;
    padding:10px 0;
    font-weight:600;
    font-size:0.9rem;
}

/* STORY HIGHLIGHTS */

.highlights{
    display:flex;
    gap:18px;
    overflow-x:auto;
    padding:18px;
    scrollbar-width:none;
}

.highlights::-webkit-scrollbar{
    display:none;
}

.highlight{
    min-width:74px;
    text-align:center;
}

.highlight-ring{
    width:74px;
    height:74px;
    border-radius:50%;
    padding:3px;
    background: none
}

.highlight img{
    border-radius:50%;
    border:3px solid grey;
}

.highlight-name{
    margin-top:8px;
    font-size:0.78rem;
    font-weight: 400;
}

/* TABS */

.tabs{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    border-top:1px solid #efefef;
    border-bottom:1px solid #efefef;
}

.tab{
    padding:13px 0;
    text-align:center;
    font-size:1.2rem;
    color:#777;
}

.tab.active{
    color:black;
    border-top:2px solid black;
    margin-top:-1px;
}

/* POSTS GRID */

.posts{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:2px;
}

.post{
    aspect-ratio:4/5;
    position:relative;
    overflow:hidden;
}

.post img{
    transition:0.3s ease;
}

.post-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,0.45) 0%,
        rgba(0,0,0,0.25) 35%,
        rgba(0,0,0,0) 65%
    );
    display:flex;
    align-items:flex-end;
    justify-content:left;
    color:white;
    text-align:left;
    padding:10px;
}

.post-title{
    font-size:1rem;
    font-weight:600;
    line-height:1.3;
    max-width:90%;
}

/* MOBILE BOTTOM BAR */

.bottom-nav{
    position:fixed;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    width:100%;
    max-width:500px;
    background:white;
    border-top:1px solid #e8e8e8;
    display:flex;
    justify-content:space-around;
    padding:12px 0;
}

.bottom-nav div{
    font-size:1.3rem;
}

.spacer{
    height:70px;
}
/* DARK THEME */

body{
    background:#0f0f0f;
    color:white;
}

.app{
    background:#121212;
    border:none;
}

/* HERO PROFILE */

.hero-profile{
    position:relative;
    height:620px;
    overflow:hidden;
}

.hero-bg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to bottom,
        rgba(0,0,0,0.10) 0%,
        rgba(0,0,0,0.25) 30%,
        rgba(0,0,0,0.72) 72%,
        rgba(15,15,15,1) 100%
    );
    z-index:1;
}

/* TOPBAR */

.hero-topbar{
    position:relative;
    z-index:3;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:24px 20px;
}

.hero-left{
    display:flex;
    align-items:center;
    gap:14px;
}

.back-btn{
    width:42px;
    height:42px;
    border-radius:50%;
    background:rgba(255,255,255,0.15);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2rem;
    color:white;
}

.hero-name{
    max-width: 30%;
}


/* CONTENT */

.hero-content{
    position:relative;
    z-index:3;
    padding:40px 20px 30px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    height:calc(100% - 90px);
}

.hero-main{
    display:flex;
    align-items:center;
    gap:26px;
}

.hero-avatar{
    width:100px;
    height:100px;
    border-radius:50%;
    overflow:hidden;
    border:4px solid #ffb2b2;
    background:white;
    flex-shrink:0;
}

/* HERO */

.hero-profile{
    height:720px;
}

.hero-username{
    font-size:2rem;
    line-height:1.05;
    max-width:90%;
    font-weight: 600;
}
/* BIO */

.hero-bio{
    margin-top:28px;
}

.hero-description{
    margin-top:12px;
    font-size:0.9rem;
    line-height:1.6;
    color:#f1f1f1;
}

.hero-link{
    margin-top:14px;
    font-size:1.05rem;
    color:#d6d6d6;
}

/* BUTTONS */

.hero-buttons{
    display:flex;
    gap:12px;
    margin-top:28px;
}

.hero-btn{
    flex:1;
    height:54px;
    border-radius:14px;
    border:none;
    font-size:1rem;
    font-weight:600;
    display:flex;
    align-items:center;
    justify-content:center;
}

.follow-btn{
    background:linear-gradient(
        90deg,
        #7b61ff,
        #4f46ff
    );
    color:white;
}

.dark-btn{
    background:rgba(0,0,0,0.45);
    border:1px solid rgba(255,255,255,0.35);
    color:white;
}

/* RECIPES TITLE */

.recipes-heading{
    padding:20px;
    border-top:1px solid rgba(255,255,255,0.06);
    border-bottom:1px solid rgba(255,255,255,0.06);
    background:#121212;
}

.recipes-title{
    font-size:1.25rem;
    font-weight:700;
    letter-spacing:0.02em;
    color:white;
}

/* POSTS */

.posts{
    gap:2px;
    background:#121212;
}

/* FOOTER */

.footer{
    text-align:center;
    padding:28px 20px 90px;
    color:#8d8d8d;
    font-size:0.9rem;
    letter-spacing:0.02em;
    background:#121212;
    border-top:1px solid rgba(255,255,255,0.05);
}


/* TAGS */

.recipe-tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
}

.recipe-tag{
    padding:10px 14px;
    border-radius:999px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.1);
    font-size:0.9rem;
    color:#f2f2f2;
}

/* META */

.recipe-meta{
    display:flex;
    gap:14px;
    margin-top:18px;
}

.meta-box{
    flex:1;
    padding:18px;
    border-radius:18px;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.08);
}

.meta-title{
    font-size:0.85rem;
    color:#b9b9b9;
}

.meta-value{
    margin-top:8px;
    font-size:1rem;
    font-weight:700;
}

/* BUTTON */

.hero-buttons{
    margin-top:24px;
}

.hero-btn{
    width:100%;
}

/* RECIPE CONTENT */

.recipe-content{
    padding:26px 20px 40px;
    background:#121212;
}

.recipe-section{
    margin-bottom:42px;
}

.section-title{
    font-size:1.7rem;
    margin-bottom:22px;
    font-weight:700;
}

/* INGREDIENTS */

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

.ingredients-list li{
    padding:16px 18px;
    background:#1b1b1b;
    border-radius:16px;
    border:1px solid rgba(255,255,255,0.06);
    color:#f2f2f2;
}

/* PROCEDURE */

.procedure-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.step{
    padding:18px;
    background:#1b1b1b;
    border-radius:18px;
    line-height:1.7;
    border:1px solid rgba(255,255,255,0.06);
    color:#f2f2f2;
}

/* NOTES */

.notes-box{
    padding:22px;
    border-radius:22px;
    background:#1b1b1b;
    border:1px solid rgba(255,255,255,0.06);
    line-height:1.8;
    color:#d9d9d9;
}