@import 'tailwindcss';

@custom-variant dark (&:where(.dark, .dark *));

@keyframes bounce-dot {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Markdown content styling */
.markdown-content {
  overflow-wrap: break-word;
  word-break: break-word;
}
.markdown-content p {
  margin-bottom: 0.5rem;
}
.markdown-content p:last-child {
  margin-bottom: 0;
}
.markdown-content code {
  background-color: rgba(0, 0, 0, 0.06);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 0.8125rem;
  word-break: break-all;
}
.dark .markdown-content code {
  background-color: rgba(255, 255, 255, 0.1);
}
.markdown-content pre {
  background-color: rgba(0, 0, 0, 0.06);
  padding: 0.75rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 0.5rem 0;
}
.dark .markdown-content pre {
  background-color: rgba(255, 255, 255, 0.08);
}
.markdown-content pre code {
  background: none;
  padding: 0;
}
.markdown-content ul,
.markdown-content ol {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}
.markdown-content li {
  margin: 0.25rem 0;
}
.markdown-content a {
  color: #3b82f6;
  text-decoration: none;
}
.markdown-content a:hover {
  text-decoration: underline;
}
.markdown-content blockquote {
  border-left: 3px solid #3b82f6;
  padding-left: 0.75rem;
  margin: 0.5rem 0;
  color: #6b7280;
}
.dark .markdown-content blockquote {
  color: #9ca3af;
}
.markdown-content strong {
  font-weight: 600;
}

/* Memory flash during timeline playback */
@keyframes memory-flash {
  0% { opacity: 0; transform: scale(0.95); }
  10% { opacity: 1; transform: scale(1); }
  60% { opacity: 1; }
  100% { opacity: 0; transform: scale(0.98); }
}
.memory-flash {
  animation: memory-flash 2s ease-in-out forwards;
}

/* Glass-morphism utilities for Memory Map */
.glass {
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(75, 85, 99, 0.3);
}
.glass-light {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(75, 85, 99, 0.2);
}

/* Timeline slider */
.timeline-slider {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
  cursor: pointer;
}
.timeline-slider::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}
