/* POST CONTENT */
/* Code block styling for post content */
.post-content pre {
  background-color: #f4f4f4;
  border: 1px solid #e1e1e1;
  padding: 1rem;
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Quill-specific code block classes in post content */
.post-content .ql-syntax {
  background-color: #f6f8fa;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  color: #24292e;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  white-space: pre;
  overflow-x: hidden;
  word-wrap: break-word;
  line-height: 1.6;
}

/* Inline code styling */
.post-content code {
  background-color: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  color: #e83e8c;
}

/* Code block inside pre tags */
.post-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Alternative: if Quill uses different classes */
.post-content .ql-code-block-container {
  background-color: #f4f4f4;
  border-radius: 6px;
  margin: 1rem 0;
}

.post-content .ql-code-block {
  background-color: #f6f8fa;
  border: 1px solid #d1d9e0;
  padding: 1rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  overflow-x: auto;
}

/* Handle images inside paragraphs */
.post-content p img {
  margin: 0.5rem auto;
}

/* Handle very wide content */
.post-content * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive images for different screen sizes */
@media screen and (max-width: 768px) {
  .post-content img {
    max-width: calc(100% - 1rem);
    margin: 0.5rem auto;
  }
}

body.post-open .site-footer {
  display: none;
}
