* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "ADLaM Display", system-ui;
  font-weight: 400;
  background-color: #301c49;
  height: 100vh;
}

.layout {
  display: grid;
  grid-template-columns: auto 1fr 300px;
  grid-template-rows: 60px 1fr;
  grid-template-areas:
    "sidebar navbar navbar"
    "sidebar feed   right";
  min-height: 100vh;
}

.sidebar {
  grid-area: sidebar;
  position: relative;
  left: 0;
  top: 0;
  bottom: 0;
  width: auto;
  background-color: #301c49;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(142, 72, 255, 1) 0%,
    rgba(85, 43, 153, 1) 50%,
    rgba(98, 0, 255, 1) 100%
  );
}

.sidebar h1 {
  position: relative;
  margin: 20px 20px;
  font-size: 30px;
  color: #ffffff;
  text-shadow: -2px 0px #A13DFF;
  font-weight: 400;
  letter-spacing: 2px;
}

.navbar {
  grid-area: navbar;
  position: sticky;
  top: 0;
  height: 60px;
  background: #301c49;
  z-index: 10;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(142, 72, 255, 1) 0%,
    rgba(85, 43, 153, 1) 50%,
    rgba(98, 0, 255, 1) 100%
  );
}

.navbar nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  text-align: center;
}

.navbar ul {
  display: contents;
}

.navbar li {
  list-style: none;
}

.navbar a {
  display: block;
  color: #9D6BED;
  font-size: 30px;
  text-decoration: none;
  font-weight: 400;
  transition: 0.2s;
  text-align: center;
  padding: 10px 0;
}

.navbar a:hover {
  color: #9D6BED;
  text-shadow: 0 0 8px #8E48FF;
}

.feed {
  grid-area: feed;
  background-color: #1c1129;
  position: relative;
  margin: 20px, 0px;
  font-weight: 400;
}

.feed::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(142, 72, 255, 1) 0%,
    rgba(85, 43, 153, 1) 50%,
    rgba(98, 0, 255, 1) 100%
  );
}

.post {
  display: grid;
  grid-template-columns: 56px 3fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  position: relative;
}

.post { 
  border-top: 1px solid rgba(142,72,255,0.15);
}

.post .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

.post .content {
  display: grid;
  gap: 6px;
}

.post .user-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.post .user {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
}

.post .meta {
  color: #8f79c9;
  font-size: 12px;
  opacity: .9;
}

.post .text {
  color: #e9e3ff;
  line-height: 1.5;
  font-size: 16px;
}

.post .media {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 1px rgba(142,72,255,0.25) inset;
  padding: 10px;
  margin-top: 20px;
}

.post .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin:0px, 200px;
}

.post:hover {
  background: rgba(255,255,255,0.02);
}

.post::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(142, 72, 255, 1) 0%,
    rgba(85, 43, 153, 1) 50%,
    rgba(98, 0, 255, 1) 100%
  );
}
.feed .post:last-child::after { display: none; }

.right {
  grid-area: right;
  padding: 24px 16px;
  background: #1b1126;
  font-weight: 200;
}

.widget {
  position: relative;
  margin: 16px 0 28px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  box-shadow:
    0 0 0 1px rgba(142,72,255,0.45) inset,
    0 0 18px rgba(142,72,255,0.10) inset;
}

.widget-title {
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.list { list-style: none; }

.item {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 10px 4px;
  border-top: 1px solid rgba(142,72,255,0.15);
}
.item:first-child { border-top: 0; }

.item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

.item-user {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
}
.item-meta,
.item-time {
  color: #b8a6ea;
  font-size: 12px;
  opacity: .9;
}
.item-desc {
  color: #e9e3ff;
  font-size: 13px;
  line-height: 1.25;
}

.item + .item { margin-top: 2px; }
