:root {
  --primary-color: #5856d6;
  --secondary-color: #f2f2f7;
  --text-color: #222;
  --secondary-text: #777;
  --border-color: #e1e1e1;
  --accent-color: #ff375f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html,
body {
  height: 100%;
  width: 100%;
}

@media (max-width: 768px) {
  body::before {
    display: none;
  }

  .mobile-logo {
    display: flex;
    justify-content: center;
    color: #6366F1;
    font-weight: 700;
    font-size: 24px;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
  }
}

.mobile-logo {
  display: none;
}

.container {
  display: flex;
  height: 100vh;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

}

/* Left Sidebar */
.left-sidebar {
  width: 250px;
  border-right: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background-color: white;
}

.truth-logo {
  height: 20px;
  margin-bottom: 10px;
}

.truth-logo-mobile {
  height: 26px;
}

.search-bar {
  position: relative;
  margin: 10px 0 5px;
}

.search-bar input {
  width: 100%;
  padding: 12px 35px 12px 15px;
  border-radius: 25px;
  border: none;
  background-color: #f0f2f5;
  font-size: 15px;
}

.search-bar i {
  position: absolute;
  right: 15px;
  top: 14px;
  color: var(--secondary-text);
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.main-nav li {
  display: flex;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s;
  font-weight: 500;
  font-size: 16px;
  color: #424242;
}

.main-nav li i {
  width: 20px;
  text-align: center;
  color: #707070;
  font-size: 18px;
  margin-right: 10px;
}

.main-nav li:hover {
  color: #6366F1;
}

.main-nav li:hover i {
  color: #6366F1;
}

.main-nav li.active {
  color: #6366F1;
  font-weight: 600;
}

.main-nav li a {
  color: inherit;
  text-decoration: none;
  width: 100%;
  display: inline-block;
}

.main-nav li.active i {
  color: #6366F1;
}

.compose-btn {
  margin-top: auto;
}

.compose-btn button {
  width: 100%;
  padding: 12px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.compose-btn button:hover {
  background-color: #e0234e;
}

/* Main Content */
.main-content {
  width: 600px;
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.main-content::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
}

.back-button {
  display: flex;
  align-items: center;
  gap: 15px;
}

.back-button i {
  font-size: 18px;
}

.back-button h2 {
  font-size: 18px;
  margin-bottom: 2px;
}

.back-button span {
  font-size: 14px;
  color: var(--secondary-text);
}

.trending-tag,
.live-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 500;
}

.trending-tag {
  background-color: var(--secondary-color);
}

.live-indicator {
  color: var(--accent-color);
  font-weight: 600;
}

.more-link {
  color: #6366F1;
  font-size: 14px;
  cursor: pointer;
}

.post {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.post-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info .username {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.verified {
  margin-left: 4px;
  vertical-align: middle;
  display: inline-block;
  color: rgb(255, 71, 117);
}

.user-info .handle {
  color: var(--secondary-text);
  font-size: 14px;
}

.post-content {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.5;
}

.post-stats {
  display: flex;
  gap: 15px;
  color: var(--secondary-text);
  font-size: 14px;
  margin-bottom: 15px;
}

.date {
  margin-left: auto;
}

.post-actions {
  display: flex;
  justify-content: space-between;
}

.post-actions button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--secondary-text);
  padding: 8px;
}

@media (max-width: 768px) {
  .post-actions {
    margin-top: 10px;
  }

  .post-actions button {
    padding: 8px 5px;
  }

  .post-actions button span {
    display: none;
  }
}

.post-actions button:hover {
  color: var(--primary-color);
}

.trending-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  background-color: var(--secondary-color);
  color: var(--text-color);
  font-size: 14px;
  border-radius: 20px;
  width: fit-content;
  margin: 15px auto;
}

.comment {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.comment-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.replying-to {
  font-size: 14px;
  color: var(--secondary-text);
  margin-bottom: 10px;
  padding-left: 50px;
}
.replying-to a {
  color: rgb(67, 56, 202);
  text-decoration: none;
}

.comment-content p {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.4;
}

.comment-image {
  width: 100%;
  border-radius: 15px;
  margin-top: 10px;
}

.comment .post-actions {
  margin-top: 12px;
  padding-left: 50px;
}

.comment .post-actions button {
  font-size: 13px;
}

/* Right Sidebar */
.right-sidebar {
  width: 300px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: 100vh;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header h3 {
  font-size: 18px;
}

.stream-item,
.topic-item,
.profile-item {
  display: flex;
  margin-bottom: 15px;
  gap: 10px;
}

.stream-thumbnail {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.stream-info,
.topic-info,
.profile-info {
  flex: 1;
}

.stream-title,
.topic-name,
.profile-name {
  font-weight: 600;
  margin-bottom: 3px;
}

.stream-channel,
.topic-count,
.profile-handle {
  font-size: 14px;
  color: var(--secondary-text);
}

.live-icon {
  font-size: 14px;
}

.topic-chart {
  width: 50px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 30' width='50' height='30'%3E%3Cpath d='M0,30 L10,25 L20,28 L30,15 L40,5 L50,0' fill='none' stroke='%236366F1' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 4px;
}

.dismiss-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--secondary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--secondary-text);
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links span {
  cursor: pointer;
}

.footer-links span:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .left-sidebar {
    width: 70px;
    min-width: 70px;
    padding: 15px 10px;
  }

  .left-sidebar .logo h1,
  .left-sidebar .search-bar,
  .left-sidebar .main-nav li span,
  .left-sidebar .compose-btn button span {
    display: none;
  }

  .main-nav li {
    justify-content: center;
  }

  .main-nav li i {
    font-size: 20px;
  }

  .main-content {
    margin-left: 70px;
    margin-right: 0;
    width: calc(100% - 70px);
  }
}

@media (max-width: 768px) {
  body {
    background-color: white;
  }

  .container {
    flex-direction: column;
    max-width: 100%;
    height: auto;
  }

  .right-sidebar {
    display: none;
  }

  .left-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    height: 50px;
    padding: 0;
    border-top: 1px solid var(--border-color);
    border-right: none;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0);
    margin-left: 0;
  }

  .left-sidebar .logo,
  .left-sidebar .search-bar,
  .left-sidebar .compose-btn {
    display: none;
  }

  .main-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: white;
    border-top: 1px solid var(--border-color);
    z-index: 101;
    display: flex;
    justify-content: center;
  }

  .main-nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0 10px;
  }

  @media (max-width: 768px) {
    .main-nav ul li:nth-child(n+7) {
      display: none;
    }

    .main-nav ul {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 0;
    }
  }

  .main-nav li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 8px 0;
  }

  .main-nav li i {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .main-nav li span {
    display: none;
  }

  .main-content {
    width: 100%;
    border-right: none;
    padding-bottom: 60px;
    margin-left: 0;
    margin-right: 0;
  }

  .post-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
  }

  .post-header .trending-tag,
  .post-header .live-indicator,
  .post-header .more-link {
    display: none;
  }

  .back-button {
    gap: 15px;
  }

  .back-button h2 {
    font-size: 19px;
    font-weight: bold;
  }

  .back-button span {
    color: var(--secondary-text);
  }

  .post {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
  }

  .trending-indicator {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: inline-flex;
    padding: 5px 15px;
    margin: 15px;
  }

  .post-actions {
    justify-content: space-between;
  }

  .post-actions button {
    padding: 8px 0;
  }

  .post-stats {
    color: var(--secondary-text);
    font-size: 14px;
    margin-bottom: 10px;
  }

  .verified {
    color: var(--accent-color);
  }
}