*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
  background:#fafafa;
  color:#262626;
}

/* TOP BAR */
.topbar{
  background:#fff;
  border-bottom:1px solid #dbdbdb;
  padding:12px;
  text-align:center;
}

.topbar h1{
  font-size:20px;
  margin:0;
  font-weight:600;
}

/* PROFILE */
.profile{
  background:#fff;
  padding:15px;
}

.profile-row{
  display:flex;
  align-items:center;
  gap:15px;
}

.avatar{
  width:80px;
  height:80px;
  border-radius:50%;
  background:linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:28px;
  font-weight:bold;
}

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

.profile-stats strong{
  display:block;
  font-size:16px;
}

.profile-stats span{
  font-size:13px;
  color:#555;
}

.bio{
  font-size:14px;
  margin-top:10px;
}

.profile-actions{
  display:flex;
  gap:10px;
  margin-top:10px;
}

.profile-actions a{
  flex:1;
  text-align:center;
  padding:7px;
  border:1px solid #dbdbdb;
  border-radius:6px;
  text-decoration:none;
  font-size:14px;
  color:#262626;
}

/* FEED */
.feed{
  max-width:500px;
  margin:auto;
}

.post{
  background:#fff;
  border-bottom:1px solid #dbdbdb;
  margin-bottom:10px;
}

.post-header{
  padding:10px;
  font-size:14px;
  font-weight:600;
}

.post-img{
  width:100%;
  display:block;
}

.post-body{
  padding:10px;
}

.post-title{
  margin:0 0 4px;
  font-size:14px;
}

.post-text{
  font-size:13px;
  color:#555;
}

.read-more{
  display:inline-block;
  margin-top:6px;
  font-size:13px;
  color:#3897f0;
  text-decoration:none;
  font-weight:600;
}

/* FOOTER */
.footer{
  text-align:center;
  font-size:12px;
  color:#777;
  padding:15px;
}

/* FEED GRID (Instagram profile style) */
.feed-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:2px;
  max-width:900px;
  margin:0 auto 20px;
}

.grid-post{
  position:relative;
  display:block;
  background:#eee;
  aspect-ratio:1/1;
  overflow:hidden;
  text-decoration:none;
  color:#fff;
}

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

/* Caption on hover */
.grid-caption{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:6px;
  font-size:12px;
  background:linear-gradient(to top, rgba(0,0,0,.6), transparent);
  opacity:0;
  transition:.2s;
}

.grid-post:hover .grid-caption{
  opacity:1;
}

/* MOBILE */
@media(max-width:600px){
  .feed-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

/* COOKIE BANNER */
.cookie-banner{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:#fff;
  border-top:1px solid #dbdbdb;
  padding:12px 15px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  font-size:13px;
  z-index:999;
}

.cookie-banner p{
  margin:0;
  color:#555;
  line-height:1.4;
}

.cookie-banner a{
  color:#3897f0;
  text-decoration:none;
  font-weight:600;
}

.cookie-banner button{
  background:#3897f0;
  color:#fff;
  border:none;
  padding:6px 12px;
  border-radius:4px;
  font-size:13px;
  cursor:pointer;
}

.cookie-banner button:hover{
  opacity:.9;
}

/* MOBILE */
@media(max-width:600px){
  .cookie-banner{
    flex-direction:column;
    align-items:flex-start;
  }
}