* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "ADLaM Display", system-ui;
  font-weight: 400;
  background-color: #301c49;
  min-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 h1 {
  margin: 20px;
  font-size: 30px;
  color: #fff;
  text-shadow: -2px 0 #A13DFF;
  font-weight: 400;
  letter-spacing: 2px;
}

.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%
  );
}

.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 { 
    position: sticky;
}

.navbar::after {
  content: "";
  position: absolute;
  left: 0; 
  right: 0; 
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,#8E48FF, #552B99 50%, #6200FF);
}

.navbar nav { 
    width: 100%; 
}

.navbar ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
}

.navbar li { list-style: none; }
.navbar a {
  display: block;
  color: #9D6BED;
  font-size: 30px;
  text-decoration: none;
  font-weight: 400;
  transition: 0.2s;
  padding: 10px 0;
  text-align: center;
}
.navbar a:hover { color: #9D6BED; text-shadow: 0 0 8px #8E48FF; }

.feed {
  grid-area: feed;
  background-color: #1c1129;
  position: relative;
  margin: 20px 0;
  padding: 18px 22px;
  font-weight: 400;
}

.feed::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px; 
  height: 100%;
  background: linear-gradient(180deg,#8E48FF, #552B99 50%, #6200FF);
}

.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: #fff; 
    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; 
}

.explore {
  padding: 18px 22px;
}

.explore-title {
  font-size: 28px;
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

.trend-card {
  border-radius: 10px;
  border: 1px solid transparent;
  background:
    linear-gradient(#1c1129, #1c1129) padding-box,
    linear-gradient(90deg, #8E48FF, #552B99 50%, #6200FF) border-box;
}

.trend-list {
  list-style: none;
  margin: 0;
  padding: 6px;
}

.trend-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
}

.trend-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, #8E48FF, #552B99 50%, #6200FF);
  opacity: .6;
}
.trend-item:last-child::after { display: none; }

.trend-left { display: grid; gap: 2px; }

.badge {
  display: inline-block;
  font-size: 11px;
  color: #b8a6ea;
  opacity: .95;
}

.trend-title {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
}

.trend-count {
  font-size: 12px;
  color: #b8a6ea;
  opacity: .9;
}

.more {
  border: 1px solid transparent;
  border-radius: 8px;
  width: 34px; height: 26px;
  display: grid; place-items: center;
  font-weight: 800;
  color: #c9b7ff;
  background:
    linear-gradient(#231530, #231530) padding-box,
    linear-gradient(90deg, #8E48FF, #552B99 50%, #6200FF) border-box;
  cursor: pointer;
}
.more:hover { box-shadow: 0 0 10px rgba(142,72,255,.25); }