/* Math Post Styles */

.post-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.post-content p {
  white-space: normal;
  letter-spacing: normal;
}

.post-content .katex {
  font-size: 1.1em;
}

.post-content .katex-display {
  margin: 1.5em 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0;
}

/* Definition boxes */
.definition {
  background: var(--color-surface);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.definition-title {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Result highlight boxes */
.result {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--row-hover) 100%);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.result-title {
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

/* Code blocks */
.post-content pre {
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--row-hover);
  padding: 0.1em 0.3em;
}

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

/* Abstract styling */
.post-abstract {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

/* Section anchors */
.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

/* Images */
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
}

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.post-content th,
.post-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.post-content th {
  font-weight: 600;
  color: var(--text-heading);
}

.post-content tr:hover td {
  background: var(--row-hover);
}

/* Mobile styles */
@media (max-width: 640px) {
  .post-content {
    font-size: 1rem;
  }
  
  .post-content p,
  .post-content li {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .post-content h2 {
    font-size: 1.3rem;
  }
  
  .post-content h3 {
    font-size: 1.1rem;
  }
  
  .post-abstract {
    font-size: 1rem;
  }
  
  .post-content code {
    font-size: 0.85em;
  }
  
  .post-content pre {
    font-size: 0.8rem;
    padding: 0.75rem;
  }
  
  .post-content .katex {
    font-size: 1em;
  }
}
