/* Blog Post Custom Styles */

.rich-text ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.rich-text li::marker {
  color: #007BFC; /* Brand accent color */
}

.rich-text pre {
  background-color: #f8fafc;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  position: relative; /* For copy button positioning */
}

.rich-text code {
  font-family: 'ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
  color: #1e293b;
  line-height: 1.6;
}

/* Copy Button Styling */
.code-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

.copy-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.4rem 0.8rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.copy-button:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
  transform: translateY(-1px);
}

.copy-button.copied {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

/* TOC Styling (Ensuring consistent look) */
.tocitem {
  display: block;
  padding: 0.5rem 0;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.tocitem:hover, .tocitem.active {
  color: #007BFC;
}
