.subposts-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  background: #181818;
  border: 1px solid #333;
  border-radius: 10px;
}

.subpost-wrapper {
  display: flex;
  background: #1e1e1e;
  border-radius: 12px;
  padding: 1px;
  margin-bottom: 25px;
  gap: 20px;
  align-items: stretch;
}

.subpost-sidebar {
  width: 250px;
  background: #2b2b2b;
  border-radius: 10px;
  text-align: center;
  padding: 20px 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.subpost-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #e63946;
  object-fit: cover;
  margin-bottom: 10px;
}

.subpost-username {
  font-weight: bold;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.subpost-group {
  font-size: 0.9rem;
  font-style: italic;
  color: #aaa;
}

.subpost-content {
  flex: 1;
  background: #292929;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f0f0f0;
  overflow-wrap: break-word;
}

.subpost-body {
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.subpost-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #bbb;
}

.subpost-rep-btn {
  background: none;
  border: 1px solid #555;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}
.subpost-rep-btn:hover {
  background-color: #e63946;
  border-color: #e63946;
}

@media (max-width: 1024px) {
  .subpost-wrapper {
    flex-direction: column;
  }

  .subpost-sidebar,
  .subpost-content {
    width: 100%;
  }

  .subpost-sidebar {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
}

.subpost-sidebar {
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 15px;
    width: 240px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.subpost-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--accent);
}

.subpost-username a {
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
}

.subpost-group {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 500;
}

.subpost-info {
    margin: 2px 0;
    color: #ccc;
}

.subpost-socials {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.subpost-socials a {
    color: var(--accent);
    font-size: 18px;
    transition: transform 0.2s ease;
}

.subpost-socials a:hover {
    transform: scale(1.2);
}

@media screen and (max-width: 768px) {
    .subpost-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
        text-align: left;
    }

    .subpost-avatar {
        margin: 0;
    }
}

.user-details {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    font-size: 14px;
}

.user-details li {
    margin-bottom: 6px;
}

.user-socials {
    margin-top: 10px;
    gap: 10px;
    font-size: 18px;
    align-items: center;
}

.user-socials a {
    color: var(--accent);
    transition: color 0.3s;
}

.user-socials a:hover {
    color: var(--accent-hover);
}

.add-subpost-container .info-message {
    text-align: center;
    padding: 15px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 6px;
    margin-top: 20px;
    color: #ccc;
    font-style: italic;
}
