/* Content styling for display (not editor) */
.post-content {
  color: black;
}

.post-content {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: black;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: black;
}

.post-content h1 {
  font-size: 2em;
}
.post-content h2 {
  font-size: 1.5em;
}
.post-content h3 {
  font-size: 1.25em;
}
.post-content h4 {
  font-size: 1.1em;
}
.post-content h5 {
  font-size: 1em;
}
.post-content h6 {
  font-size: 0.9em;
}

.post-content p {
  margin-bottom: 1em;
  line-height: 1.6;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}
.post-content ul {
  list-style-type: disc;
}
.post-content ol {
  list-style-type: decimal;
}
.post-content li {
  margin-bottom: 0.5em;
}

.post-content blockquote {
  border-left: 4px solid #007bff;
  margin: 1em 0;
  padding-left: 1em;
  font-style: italic;
  background-color: #f8f9fa;
  padding: 1em;
  border-radius: 4px;
}

.post-content code {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 3px;
  padding: 2px 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  color: #e83e8c;
}

.post-content pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1em;
  margin: 1em 0;
  overflow-x: auto;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
}

.post-content strong {
  font-weight: 600;
}

.post-content em {
  font-style: italic;
}

.post-content a {
  color: #007bff;
  text-decoration: none;
}

.post-content a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .ql-toolbar {
    padding: 8px;
  }

  .ql-toolbar .ql-formats {
    margin-right: 8px;
  }

  .ql-toolbar button {
    width: 24px;
    height: 24px;
    margin: 1px;
  }

  .ql-editor {
    min-height: 250px;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .post-content {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

.post-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
