@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import "tailwindcss";

@theme {
  --color-background: hsl(0 0% 100%);
  --color-foreground: hsl(224 71% 4%);
  --color-card: hsl(0 0% 100%);
  --color-card-foreground: hsl(224 71% 4%);
  --color-popover: hsl(0 0% 100%);
  --color-popover-foreground: hsl(224 71% 4%);
  --color-primary: hsl(262 83% 58%);
  --color-primary-foreground: hsl(210 20% 98%);
  --color-secondary: hsl(220 14% 96%);
  --color-secondary-foreground: hsl(220 9% 46%);
  --color-muted: hsl(220 14% 96%);
  --color-muted-foreground: hsl(220 9% 46%);
  --color-accent: hsl(220 14% 96%);
  --color-accent-foreground: hsl(220 9% 14%);
  --color-destructive: hsl(0 84% 60%);
  --color-destructive-foreground: hsl(210 20% 98%);
  --color-border: hsl(220 13% 91%);
  --color-input: hsl(220 13% 91%);
  --color-ring: hsl(262 83% 58%);
  --radius: 0.75rem;
}

.dark {
  --color-background: hsl(224 71% 4%);
  --color-foreground: hsl(210 20% 98%);
  --color-card: hsl(224 50% 7%);
  --color-card-foreground: hsl(210 20% 98%);
  --color-popover: hsl(224 50% 7%);
  --color-popover-foreground: hsl(210 20% 98%);
  --color-primary: hsl(263 70% 65%);
  --color-primary-foreground: hsl(224 71% 4%);
  --color-secondary: hsl(215 25% 14%);
  --color-secondary-foreground: hsl(210 20% 98%);
  --color-muted: hsl(215 25% 14%);
  --color-muted-foreground: hsl(217 10% 55%);
  --color-accent: hsl(215 25% 14%);
  --color-accent-foreground: hsl(210 20% 98%);
  --color-destructive: hsl(0 62% 50%);
  --color-destructive-foreground: hsl(210 20% 98%);
  --color-border: hsl(215 25% 16%);
  --color-input: hsl(215 25% 16%);
  --color-ring: hsl(263 70% 65%);
}

* {
  border-color: var(--color-border);
}

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--color-muted-foreground) 30%, transparent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--color-muted-foreground) 50%, transparent);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.2s ease-out;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse-soft {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse-soft 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Markdown preview */
.prose-preview h1,
.prose-preview h2,
.prose-preview h3 {
  font-weight: 700;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.prose-preview h1 {
  font-size: 1.5em;
}

.prose-preview h2 {
  font-size: 1.25em;
}

.prose-preview h3 {
  font-size: 1.1em;
}

.prose-preview p {
  margin-bottom: 0.75em;
}

.prose-preview ul,
.prose-preview ol {
  padding-left: 1.5em;
  margin-bottom: 0.75em;
}

.prose-preview li {
  margin-bottom: 0.25em;
}

.prose-preview blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1em;
  font-style: italic;
  color: var(--color-muted-foreground);
}

.prose-preview code {
  background: var(--color-muted);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.prose-preview strong {
  font-weight: 700;
}