.thoughts-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.thought-item {
  position: relative;
}

.thought-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.thought-content {
  color: #c9d1d9;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  flex: 1;
}

.thought-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.thought-timestamp {
  color: #888;
  font-size: 0.85em;
  white-space: nowrap;
}

.share-thought-btn {
  background: rgba(139, 148, 158, 0.1);
  border: 1px solid rgba(139, 148, 158, 0.3);
  border-radius: 6px;
  color: #8b949e;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.share-thought-btn svg {
  width: 18px;
  height: 18px;
}

.share-thought-btn:hover {
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.15);
  border-color: rgba(88, 166, 255, 0.4);
}

.share-thought-btn:active {
  transform: scale(0.95);
}

.share-thought-btn.copied {
  color: #3fb950;
}

.thought-children {
  margin-top: 0.75rem;
  margin-left: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(139, 148, 158, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.thought-children .thought-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 1rem;
  height: 1px;
  background: rgba(139, 148, 158, 0.3);
}

.thought-more {
  position: relative;
}

.thought-more a {
  color: #58a6ff;
  text-decoration: none;
  font-size: 0.9em;
  font-style: italic;
  cursor: pointer;
  transition: color 0.2s ease;
}

.thought-more a:hover {
  color: #79c0ff;
  text-decoration: underline;
}

.thought-more-standalone {
  text-align: right;
}

.thought-more-standalone a {
  color: #58a6ff;
  text-decoration: none;
  font-size: 0.9em;
  font-style: italic;
  cursor: pointer;
  transition: color 0.2s ease;
}

.thought-more-standalone a:hover {
  color: #79c0ff;
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .thought-line {
    flex-direction: column;
    gap: 3px;
  }

  .thought-actions {
    width: 100%;
    justify-content: space-between;
  }

  .thought-children {
    margin-left: 0.5rem;
    padding-left: 1rem;
  }

  .thought-children .thought-item::before {
    left: -1rem;
    width: 0.5rem;
  }

  .thought-content {
    font-size: 0.9rem;
  }

  .thought-timestamp {
    font-size: 0.8em;
  }
}
