/* ---------- PROFILE ---------- */

.profile-header{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 20px;
background:#fff;
position:sticky;
top:0;
z-index:100;
border-bottom:1px solid #eee;
}

.profile-top{
display:flex;
flex-direction:column;
align-items:center;
padding:25px 20px;
}

.profile-avatar{
width:110px;
height:110px;
border-radius:50%;
object-fit:cover;
border:4px solid #ff4d8d;
background:#ddd;
}

.profile-top h2{
margin-top:15px;
font-size:30px;
font-weight:700;
}

.profile-top p{
margin-top:6px;
color:#777;
font-size:16px;
}

.profile-stats{
display:flex;
justify-content:space-evenly;
align-items:center;
margin:25px 0;
text-align:center;
}

.stat-box{
flex:1;
}

.stat-box h2{
font-size:32px;
font-weight:bold;
margin:0;
}

.stat-box span{
font-size:15px;
color:#777;
}

.profile-buttons{
display:flex;
justify-content:center;
margin:20px;
}

.profile-buttons button{
padding:12px 35px;
border:none;
border-radius:30px;
background:linear-gradient(135deg,#6C63FF,#FF4D8D);
color:white;
font-size:16px;
cursor:pointer;
}

.profile-tabs{
display:flex;
justify-content:space-around;
margin:20px;
background:#fff;
padding:10px;
border-radius:20px;
box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.tab-btn{
flex:1;
padding:12px;
border:none;
background:none;
font-size:16px;
cursor:pointer;
border-radius:15px;
transition:.3s;
}

.tab-btn.active{
background:linear-gradient(135deg,#6C63FF,#FF4D8D);
color:white;
}

.tab-content{
padding:20px;
}

#myPosts,
#likedPosts,
#savedPosts{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
gap:20px;
}

#myPosts .card,
#likedPosts .card,
#savedPosts .card{
background:white;
padding:18px;
border-radius:18px;
box-shadow:0 8px 20px rgba(0,0,0,.08);
transition:.3s;
}

#myPosts .card:hover,
#likedPosts .card:hover,
#savedPosts .card:hover{
transform:translateY(-4px);
}

@media(max-width:768px){

.profile-avatar{
width:120px;
height:120px;
border-radius:50%;
border:5px solid white;
object-fit:cover;
margin-top:-60px;
}

.profile-top h2{
font-size:24px;
}

.stat-box h2{
font-size:22px;
}

.profile-tabs{
margin:10px;
}

#myPosts,
#likedPosts,
#savedPosts{
grid-template-columns:1fr;
}

}

.profile-top{
display:flex;
flex-direction:column;
align-items:center;
text-align:center;
}