/* Claude & Antigravity aesthetic theme */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Fira Code", "Cascadia Code", Consolas, Monaco, monospace;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(150, 150, 150, 0.2);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(150, 150, 150, 0.35);
}

/* Markdown prose typography */
.prose {
  color: #e4e4e7;
  line-height: 1.7;
  font-size: 0.975rem;
}

.prose p {
  margin-bottom: 0.85rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: #fafafa;
  font-weight: 600;
  margin-top: 1.35rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.prose h1 { font-size: 1.45rem; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 0.3rem; }
.prose h2 { font-size: 1.25rem; }
.prose h3 { font-size: 1.1rem; }

.prose ul, .prose ol {
  margin-left: 1.4rem;
  margin-bottom: 0.85rem;
}

.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }

.prose li {
  margin-bottom: 0.3rem;
}

.prose blockquote {
  border-left: 3px solid #d97736;
  padding-left: 0.85rem;
  margin: 0.85rem 0;
  color: #a1a1aa;
  font-style: italic;
  background: rgba(217, 119, 54, 0.05);
  border-radius: 0 0.375rem 0.375rem 0;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.prose code:not(pre code) {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  color: #f59e0b;
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* Code block wrapper */
.code-block-wrapper {
  margin: 1rem 0;
  border-radius: 0.625rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121214;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.85rem;
  background: #18181b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #a1a1aa;
}

.code-header .lang-badge {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #d97736;
}

.code-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.code-block-wrapper pre {
  margin: 0;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.55;
  background: #0f0f11 !important;
}

/* Thinking accordion */
.thinking-accordion {
  border-radius: 0.5rem;
  border: 1px solid rgba(217, 119, 54, 0.2);
  background: rgba(217, 119, 54, 0.04);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.thinking-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: #d97736;
  background: rgba(217, 119, 54, 0.06);
}

.thinking-header:hover {
  background: rgba(217, 119, 54, 0.1);
}

.thinking-body {
  padding: 0.75rem;
  font-size: 0.85rem;
  color: #a1a1aa;
  font-style: italic;
  white-space: pre-wrap;
  border-top: 1px solid rgba(217, 119, 54, 0.1);
  max-height: 350px;
  overflow-y: auto;
}

/* Streaming pulse cursor */
.typing-cursor::after {
  content: "▋";
  color: #d97736;
  animation: blink 0.9s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Antigravity Model Card Hover Effect */
.model-card-item {
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.model-card-item:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 119, 54, 0.4);
}
