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

body {
  background: #0f0f0f;
  color: #eaeaea;
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.7;
}

/* Left Siderbar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  background: #161616;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(59, 130, 246, 0.12),
    transparent 40%
  );
  pointer-events: none;
}

.profile {
  text-align: center;
}

.profile img {
  width: 90px;
  border-radius: 50%;
}

.profile h1 {
  font-size: 1.2rem;
  margin-top: 12px;
}

.profile p {
  font-size: 0.9rem;
  color: #9a9a9a;
  margin-top: 5px;
}

/* Navbar */
.nav {
  margin-top: 30px;
}

.nav a {
  display: block;
  padding: 10px 12px;
  color: #eaeaea;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.active {
  background: #1e1e1e;
  color: #60a5fa;
}

/* Socials */
.socials {
  margin-top: auto;
  text-align: center;
}

.socials a {
  color: #9a9a9a;
  margin: 0 6px;
  text-decoration: none;
  font-size: 0.95rem;
}

/* Layout */
.main {
  margin-left: 260px;
  padding: 30px;
  display: flex;
  gap: 30px;
}

/* Posts */
.posts {
  flex: 1;
}

.post {
  position: relative;
  padding: 0;
  margin-bottom: 35px;
  border-bottom: 1px solid #1f1f1f;
}

/* Blue Gradient */
.post::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 3px;
  height: calc(100% - 20px);
  background: linear-gradient(
    to bottom,
    #3b82f6,
    #60a5fa,
    transparent
  );
  border-radius: 2px;
}

.post-link {
  display: block;
  color: inherit;          
  text-decoration: none;   
  padding: 15px 20px 25px 30px; 
  position: relative;
}

.post-link:hover .meta {
  color: #a0a0a0;         
}

.post h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.post p {
  font-size: 0.95rem;
  color: #cfcfcf;
}

.meta {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #8a8a8a;
}

.post:hover h2 {
  color: #60a5fa;
}

/* Right Sidebar */
.rightbar {
  width: 280px;
}

.box {
  margin-bottom: 25px;
}

.box h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #cfcfcf;
}

.box a {
  display: inline-block;
  padding: 4px 10px;
  margin: 4px 6px 4px 0;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #1a1a1a;
  color: #9ca3af;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.box a::before {
  content: "#";
  margin-right: 2px;
  opacity: 0.6;
}

.box a:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

/* Responsive */
@media (max-width: 1000px) {
  .rightbar {
    display: none;
  }
}

@media (max-width: 700px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .main {
    margin-left: 0;
    flex-direction: column;
  }
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background: #161616;
  border-bottom: 1px solid #1f1f1f;
  position: sticky;
  top: 0;
  z-index: 100;
  margin-left: 260px; 
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topbar-left span {
  font-weight: 500;
  font-size: 0.95rem;
  color: #eaeaea;
  margin-right: 10px;
  cursor: default;
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-left span.clickable {
  cursor: pointer;
  color: #60a5fa;
}

.topbar-left span.clickable:hover {
  text-decoration: underline;
}


.topbar-btn {
  text-decoration: none;
  color: #eaeaea;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.topbar-btn.active {
  background: #3b82f6;
  color: #fff;
}

.topbar-current {
  color: #9a9a9a;
  font-weight: 500;
}

.topbar-right .search-wrapper {
  position: relative;
}

.topbar-right input {
  padding: 6px 12px 6px 28px;
  border-radius: 6px;
  border: none;
  background: #1f1f1f;
  color: #eaeaea;
  width: 200px;
  font-size: 0.9rem;
}

.topbar-right input::placeholder {
  color: #8a8a8a;
}

.topbar-right .search-wrapper i {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  color: #8a8a8a;
}

