<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AkSocial</title>
<style>
*{box-sizing:border-box;margin:0;padding:0}
body{
font-family:Arial,sans-serif;
background:#f4f4f4;
color:#222;
padding-bottom:70px;
transition:.3s;
}
body.dark{
background:#121212;
color:white;
}
header{
height:60px;
background:white;
border-bottom:1px solid #ddd;
display:flex;
align-items:center;
justify-content:space-between;
padding:0 15px;
position:sticky;
top:0;
z-index:10;
}
.dark header,.dark .post,.dark .profile,.dark .create,
.dark .bottom{
background:#1e1e1e;
color:white;
border-color:#333;
}
.logo{
font-size:24px;
font-weight:bold;
}
header button{
background:none;
border:0;
font-size:22px;
}
.page{
max-width:600px;
margin:auto;
}
.post{
background:white;
margin:15px 5px;
border:1px solid #ddd;
border-radius:8px;
overflow:hidden;
}
.user{
display:flex;
align-items:center;
padding:12px;
font-weight:bold;
}
.avatar{
width:40px;
height:40px;
border-radius:50%;
background:#ddd;
display:flex;
align-items:center;
justify-content:center;
margin-right:10px;
}
.post img{
width:100%;
display:block;
}
.actions{
padding:10px;
}
.actions button{
border:0;
background:none;
font-size:26px;
margin-right:10px;
cursor:pointer;
}
.caption{
padding:0 12px 12px;
}
.comment{
padding:8px 12px;
border-top:1px solid #eee;
}
.comment input{
width:75%;
padding:10px;
border:1px solid #ccc;
border-radius:5px;
}
.comment button{
padding:10px;
border:0;
background:#222;
color:white;
border-radius:5px;
}
.profile,.create,.explore{
background:white;
padding:25px 15px;
display:none;
min-height:500px;
}
.profilePic{
width:90px;
height:90px;
border-radius:50%;
background:#ddd;
display:flex;
align-items:center;
justify-content:center;
font-size:35px;
margin:auto;
}
.stats{
display:flex;
justify-content:center;
gap:40px;
margin:20px;
}
.follow{
padding:10px 30px;
border:0;
border-radius:7px;
background:#222;
color:white;
}
.search{
width:100%;
padding:13px;
border:1px solid #ccc;
border-radius:8px;
margin-bottom:20px;
}
.bottom{
position:fixed;
bottom:0;
left:0;
right:0;
height:65px;
background:white;
border-top:1px solid #ddd;
display:flex;
justify-content:space-around;
align-items:center;
z-index:20;
}
.bottom button{
background:none;
border:0;
font-size:24px;
}
input,textarea{
font-size:16px;
}
.create input,.create textarea{
width:100%;
padding:12px;
margin:8px 0;
border:1px solid #ccc;
border-radius:7px;
}
.create button{
padding:12px 20px;
background:#222;
color:white;
border:0;
border-radius:7px;
}
</style>
</head>
<body>
<header>
<div class="logo">AkSocial</div>
<div>
<button onclick="toggleDark()">🌙</button>
<button onclick="showExplore