/* Custom tweaks for the5fire blog */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Code blocks from legacy content_html */
.prose pre,
.content pre,
.prose code,
.content code {
  font-family: 'JetBrains Mono', Menlo, Monaco, Consolas, monospace;
}

.prose pre,
.content pre {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

.prose code,
.content code {
  background-color: rgba(6, 182, 212, 0.1);
  color: #0891b2;
  padding: 0.15rem 0.35rem;
  border-radius: 0.375rem;
  font-size: 0.85em;
}

.dark .prose code,
.dark .content code {
  color: #67e8f9;
}

.prose pre code,
.content pre code {
  background-color: transparent !important;
  color: inherit !important;
  padding: 0;
  border-radius: 0;
}

/* Images in article body */
.prose img,
.content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

/* Blockquotes */
.prose blockquote,
.content blockquote {
  border-left: 4px solid #06b6d4;
  padding-left: 1rem;
  color: #475569;
  font-style: italic;
}

.dark .prose blockquote,
.dark .content blockquote {
  color: #94a3b8;
}

/* Tables */
.prose table,
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.prose th,
.prose td,
.content th,
.content td {
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
}

.dark .prose th,
.dark .prose td,
.dark .content th,
.dark .content td {
  border-color: #334155;
}

.prose th,
.content th {
  background-color: #f1f5f9;
  font-weight: 600;
}

.dark .prose th,
.dark .content th {
  background-color: #1e293b;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Selection */
::selection {
  background-color: rgba(6, 182, 212, 0.3);
}
