/* static/css/post-content.css */

.post-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: rgb(17, 24, 39);
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(31, 41, 55);
  margin-bottom: 1rem;
  padding-top: 1rem;
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(55, 65, 81);
  margin-bottom: 0.75rem;
  padding-top: 0.75rem;
}

.post-content p {
  font-size: 1rem;
  line-height: 1.75rem;
  margin-bottom: 1rem;
  color: rgb(55, 65, 81);
}

.post-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-content ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-content a {
  color: rgb(37, 99, 235);
  text-decoration: none;
}

.post-content a:hover {
  color: rgb(30, 64, 175);
}

.post-content blockquote {
  display: inline-block;
  background-color: #ffea9c; /* bg-lightyellow */
  border: 1px solid #ffce1b; /* border-accent */
  border-radius: 0.5rem; /* rounded-lg */
  padding: 0.5rem; /* p-2 */
  color: #1f2937; /* text-gray-800 */
  transition: color 0.2s ease, background-color 0.2s ease; /* transition-colors duration-200 */
}

.post-content img {
  max-width: 400px;       /* limit image width */
  height: auto;           /* keep aspect ratio */
  border-radius: 0.5rem;  /* rounded corners */
  display: block;         /* block element for centering */
  margin: 1rem auto;      /* center horizontally with top/bottom spacing */
}

.post-content code {
  background-color: rgb(243, 244, 246);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.9rem;
}

.post-content pre {
  background-color: rgb(17, 24, 39);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.post-content th,
.post-content td {
  border: 1px solid rgb(229, 231, 235);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.post-content th {
  background-color: rgb(243, 244, 246);
  font-weight: 600;
}

.post-content hr {
  margin: 0.5rem;
}