/* components/side-nav.css */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 18px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.5px;
  color: var(--text);
  text-decoration: none;
}
.logo {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
}
.logo img {
  width: 32px;
  height: 32px;
  display: block;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 999px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
.nav-link:hover {
  background: var(--bg-hover);
}
.nav-link.active {
  font-weight: 700;
}
.nav-link svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.nav-link.active svg {
  color: var(--orange);
}
.post-btn {
  margin-top: 14px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.post-btn:hover {
  background: var(--orange-hover);
}
.post-btn:active {
  transform: scale(.98);
}
.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
}
.me .info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.me-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.me-handle {
  color: var(--text-dim);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signout {
  font-size: 14px;
  color: var(--text-dim);
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  background: var(--orange);
}
.avatar.sm {
  width: 32px;
  height: 32px;
  font-size: 13px;
}
.bottom-nav {
  display: none;
}
.fab {
  display: none;
}
@media (max-width: 1100px) {
  .sidebar {
    padding: 18px 8px;
  }
  .brand-name,
  .nav-label,
  .me .info {
    display: none;
  }
  .brand {
    justify-content: center;
    padding: 8px 0 18px;
  }
  .nav-link {
    justify-content: center;
  }
  .post-btn {
    font-size: 0;
    padding: 14px;
  }
  .post-btn::after {
    content: "+";
    font-size: 24px;
    line-height: 1;
  }
  .me {
    justify-content: center;
  }
}
@media (max-width: 680px) {
  .sidebar {
    display: none;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  }
  .bn-link {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 6px;
    color: var(--text-dim);
  }
  .bn-link.active {
    color: var(--orange);
  }
  .bn-link svg {
    width: 25px;
    height: 25px;
  }
  .fab {
    display: grid;
    place-items: center;
    position: fixed;
    right: 18px;
    bottom: 84px;
    z-index: 40;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 106, 0, .45);
  }
}
