/* ================= RESET ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  background: #f0f2f5;
  color: #1c1e21;
}

/* ================= TOP NAV ================= */
.top-nav {
  position: sticky;
  top: 0;
  height: 56px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 100;
  border-bottom: 1px solid #e4e6eb;
}

.nav-logo {
  width: 36px;
  height: 36px;
}

.nav-center,
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item,
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item img,
.icon-btn img {
  width: 20px;
  height: 20px;
}

/* ================= FEED ================= */
.feed {
  max-width: 680px;
  margin: auto;
  padding: 12px;
}

/* ================= STORIES ================= */
.stories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.stories::-webkit-scrollbar {
  display: none;
}

.story {
  width: 90px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #ccc;
  flex-shrink: 0;
}

.story img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story img.avatar {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.story .name {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}

.your-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #e4e6eb;
  font-weight: 600;
}

/* ================= POST ================= */
.post-card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.post-user {
  font-weight: 600;
  font-size: 14px;
}

.post-sub {
  font-size: 12px;
  color: #65676b;
}

.post-caption {
  padding: 0 12px 8px;
  font-size: 14px;
}

.post-media img {
  width: 100%;
  display: block;
}

.post-actions {
  display: flex;
  justify-content: space-around;
  padding: 10px;
  border-top: 1px solid #e4e6eb;
}

.post-actions button {
  background: none;
  border: none;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
}

/* ================= BOTTOM NAV ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #e4e6eb;
}

.bottom-nav img {
  width: 22px;
  height: 22px;
}

.bottom-nav .add {
  width: 46px;
  height: 46px;
  background: #1e90ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav .add img {
  filter: invert(1);
}
