#thread {
  scroll-behavior: smooth;
}

.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  border-radius: 50%;
  background: #94a3b8;
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.markdown-content > *:first-child {
  margin-top: 0;
}

.markdown-content > *:last-child {
  margin-bottom: 0;
}

.markdown-content p {
  margin: 0.5em 0;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  font-weight: 600;
  margin: 0.75em 0 0.4em;
  line-height: 1.3;
}

.markdown-content h1 { font-size: 1.25rem; }
.markdown-content h2 { font-size: 1.1rem; }
.markdown-content h3 { font-size: 1rem; }

.markdown-content ul,
.markdown-content ol {
  margin: 0.5em 0;
  padding-left: 1.4em;
}

.markdown-content li {
  margin: 0.2em 0;
}

.markdown-content code {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 0.15em 0.35em;
  font-size: 0.85em;
}

.markdown-content pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 0.75em;
  overflow-x: auto;
  margin: 0.5em 0;
}

.markdown-content pre code {
  background: none;
  padding: 0;
}

.markdown-content blockquote {
  border-left: 3px solid #cbd5e1;
  padding-left: 0.75em;
  color: #475569;
  margin: 0.5em 0;
}

.markdown-content a {
  color: #4f46e5;
  text-decoration: underline;
}

.cursor-blink::after {
  content: "\2588";
  margin-left: 2px;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}
