/* blog-styles.css: Dedicated styles for RiseOverride blog to ensure proper list and prose rendering */

/* Ensure lists show bullets/numbers and proper indentation */
.prose ul, .prose ol {
  list-style: revert !important;
  margin-left: 2em !important;
}
.prose ul li, .prose ol li {
  color: #0f172a !important; /* Black text for light mode */
  margin-bottom: 0.5em;
}
.prose ul li::marker, .prose ol li::marker {
  color: #0f172a !important; /* Black bullets for light mode */
}
.prose p {
  margin-bottom: 1.2em;
  color: #0f172a;
}

/* Explicit link styles */
.prose a {
  color: #2563eb; /* Tailwind blue-600 */
  text-decoration: underline;
  transition: color 0.2s;
}
.prose a:hover, .prose a:focus {
  color: #1d4ed8; /* Tailwind blue-700 */
}

/* Reusable blog-related styles */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive article container */
.blog-article {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}
@media (min-width: 640px) {
  .blog-article {
    padding-top: 4rem;
    padding-bottom: 5rem;
  }
}

/* Blog header and footer spacing */
.blog-header {
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .blog-header {
    margin-bottom: 2.5rem;
  }
}
.blog-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  text-align: center;
}
@media (min-width: 640px) {
  .blog-footer {
    margin-top: 4rem;
    padding-top: 2.5rem;
  }
}

/* Code block and syntax highlighting styles */
.prose pre, .prose code, pre, code {
  background: #23272e !important; /* much darker for contrast */
  color: #f8f8f2 !important; /* light text for contrast */
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
}
.prose pre {
  border-radius: 0.5rem;
  padding: 1.2em 1em;
  overflow-x: auto;
  margin-bottom: 1.5em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
}
.prose code {
  padding: 0.15em 0.4em;
  border-radius: 0.3em;
  font-size: 0.98em;
}

/* Prism.js-like basic syntax highlighting */
.token.comment, .token.prolog, .token.doctype, .token.cdata {
  color: #6a9955;
}
.token.punctuation {
  color: #d4d4d4;
}
.token.property, .token.tag, .token.constant, .token.symbol, .token.deleted {
  color: #e2777a;
}
.token.boolean, .token.number {
  color: #b5cea8;
}
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted {
  color: #ce9178;
}
.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string {
  color: #d4d4d4;
}
.token.atrule, .token.attr-value, .token.keyword {
  color: #569cd6;
}
.token.function, .token.class-name {
  color: #dcdcaa;
}
.token.regex, .token.important, .token.variable {
  color: #d16969;
}
.token.important, .token.bold {
  font-weight: bold;
}
.token.italic {
  font-style: italic;
}
.token.entity {
  cursor: help;
}

/* Copy button for code blocks - fix position so it doesn't scroll horizontally */
.code-copy-btn {
  position: absolute;
  top: 0.7em;
  right: 1em;
  background: #334155;
  color: #f8fafc;
  border: none;
  border-radius: 0.3em;
  padding: 0.25em 0.7em;
  font-size: 0.95em;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.2s, opacity 0.2s;
  z-index: 2;
  pointer-events: auto;
  display: block;
}
.code-block-wrapper {
  position: relative;
}
.code-block-wrapper .code-copy-btn {
  position: absolute;
  top: 0.7em;
  right: 1em;
  background: #334155;
  color: #f8fafc;
  border: none;
  border-radius: 0.3em;
  padding: 0.25em 0.7em;
  font-size: 0.95em;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.2s, opacity 0.2s;
  z-index: 2;
  pointer-events: auto;
  display: block;
}
.code-block-wrapper pre {
  margin: 0;
  padding-right: 4em !important;
}
