@import './theme.css';

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
  animation: float 15s ease-in-out infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

* {
  border-color: rgba(229, 229, 229, 1);
  outline-color: rgba(59, 130, 246, 0.5);
}

.dark * {
  border-color: rgba(38, 38, 38, 1);
}

html,
body {
  min-height: 100%;
}

body {
  background: #ffffff;
  color: #121212;
}

.dark body {
  background: #000000;
  color: #f0f0f0;
}

::selection {
  background: color-mix(in srgb, var(--theme-primary) 20%, transparent);
  color: var(--theme-primary);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.4s;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-name: none;
  mix-blend-mode: normal;
}

.dark::view-transition-old(root) {
  z-index: 1;
}

.dark::view-transition-new(root) {
  z-index: 999;
}

:root:not(.dark)::view-transition-old(root) {
  z-index: 999;
}

:root:not(.dark)::view-transition-new(root) {
  z-index: 1;
}

.theme-transitioning * {
  animation-play-state: paused !important;
  transition: none !important;
}

.custom-cursor,
.custom-cursor * {
  cursor: none !important;
}

.cursor-dot {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: 8px;
  height: 8px;
  background-color: var(--theme-primary);
  border-radius: 50%;
  will-change: transform;
  filter: drop-shadow(0 0 4px var(--theme-primary));
}

.cursor-ring {
  position: fixed;
  z-index: 9998;
  pointer-events: none;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--theme-primary);
  border-radius: 50%;
  will-change: transform;
  transition: opacity 200ms ease;
}

.dark .cursor-dot {
  background-color: var(--theme-secondary);
}

.dark .cursor-ring {
  border-color: var(--theme-secondary);
}

@media (max-width: 768px) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
  .custom-cursor,
  .custom-cursor * {
    cursor: auto !important;
  }
}

.prose h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 2rem 0 1.5rem;
  color: #121212;
}

.dark .prose h1 {
  color: #ffffff;
}

.prose h2 {
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  color: #121212;
}

.dark .prose h2 {
  color: #ffffff;
}

.prose h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 1.25rem 0 0.75rem;
  color: #121212;
}

.dark .prose h3 {
  color: #ffffff;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1rem;
  color: rgba(18, 18, 18, 0.8);
  line-height: 1.7;
}

.dark .prose p,
.dark .prose ul,
.dark .prose ol {
  color: rgba(255, 255, 255, 0.8);
}

.prose ul,
.prose ol {
  margin-left: 1.5rem;
}

.prose ul > li {
  list-style: disc;
  margin-bottom: 0.5rem;
}

.prose ol > li {
  list-style: decimal;
  margin-bottom: 0.5rem;
}

.prose pre {
  background: rgba(18, 18, 18, 0.05);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.dark .prose pre {
  background: rgba(255, 255, 255, 0.05);
}

.prose code {
  background: rgba(18, 18, 18, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
}

.dark .prose code {
  background: rgba(255, 255, 255, 0.05);
}

.prose pre code {
  background: transparent;
  padding: 0;
}

.prose blockquote {
  border-left: 4px solid rgba(18, 18, 18, 0.2);
  padding-left: 1rem;
  font-style: italic;
  margin: 1rem 0;
  color: rgba(18, 18, 18, 0.7);
}

.dark .prose blockquote {
  border-left-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

.prose a {
  color: #2563eb;
  text-decoration: underline;
}

.dark .prose a {
  color: #60a5fa;
}

.prose a:hover {
  color: #1d4ed8;
}

.dark .prose a:hover {
  color: #93c5fd;
}

.prose strong {
  font-weight: 700;
  color: #121212;
}

.dark .prose strong {
  color: #ffffff;
}

.prose hr {
  margin: 2rem 0;
  border-color: rgba(18, 18, 18, 0.1);
}

.dark .prose hr {
  border-color: rgba(255, 255, 255, 0.1);
}
