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

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.65);
}

/* Subtle tech grid backdrop */
.bg-tech-grid {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.14), transparent 36%),
    radial-gradient(circle at 80% 10%, rgba(79, 70, 229, 0.16), transparent 38%),
    linear-gradient(to right, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

.dark .bg-tech-grid {
  background-image:
    radial-gradient(circle at 18% 18%, rgba(6, 182, 212, 0.16), transparent 38%),
    radial-gradient(circle at 82% 12%, rgba(79, 70, 229, 0.2), transparent 40%),
    linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* Card hover elevation */
.card-hover {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
}

/* Prose styling for articles */
.article-prose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.article-prose p {
  line-height: 1.8;
  margin-bottom: 1rem;
}
.article-prose ul, .article-prose ol {
  margin-left: 1.25rem;
  margin-bottom: 1.15rem;
  line-height: 1.75;
}
.article-prose ul {
  list-style-type: disc;
}
.article-prose ol {
  list-style-type: decimal;
}
.article-prose pre {
  position: relative;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-size: 0.85rem;
  line-height: 1.65;
}
.article-prose code:not(pre code) {
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
  font-size: 0.85em;
}

/* Toast animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.toast-enter {
  animation: slideInRight 0.24s ease-out forwards;
}

/* Modal fade */
@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-pop {
  animation: modalPop 0.2s ease-out forwards;
}
