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

body {
  font-family: Arial, sans-serif;
  background-color: #fafafa;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: bold;
  font-size: 1.3rem;
}

.search {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.nav-icons span {
  margin-left: 15px;
  cursor: pointer;
  font-size: 1.3rem;
}

/* Feed Layout */
.feed {
  max-width: 600px;
  margin: 20px auto;
  padding: 0 12px;
}

/* Post Card */
.post {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Post Header */
.post-header {
  display: flex;
  align-items: center;
  padding: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.username {
  font-weight: bold;
  font-size: 14px;
}

/* Post Image */
.post-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Post Actions (Like, Comment, Share) */
.post-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 12px;
  font-size: 18px;
}

.post-actions span {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.post-actions span:hover {
  transform: scale(1.2);
}

/* Like Button Specific */
.like-btn {
  color: black;
}

.like-count {
  font-size: 14px;
}

/* Post Caption */
.post-caption {
  padding: 0 12px 12px;
  font-size: 14px;
  line-height: 1.4;
}

/* Responsive (Mobile) */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .search {
    width: 100%;
  }

  .feed {
    padding: 0 8px;
  }
}

/* Stories Bar */
.stories {
  display: flex;
  overflow-x: auto;
  gap: 14px;
  padding: 12px 16px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  scroll-snap-type: x mandatory;
}

.story {
  flex: 0 0 auto;
  text-align: center;
  scroll-snap-align: start;
  width: 70px;
}

.story-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d6249f;
  padding: 2px;
  background: white;
}

.story span {
  font-size: 12px;
  margin-top: 5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}