/*
Theme Name: Prestige 360 Blog
Theme URI: https://prestige360design.com
Description: Custom theme for Prestige 360 blog
Author: Prestige 360
Version: 1.0
*/

/* ============================================
   POST CONTENT TYPOGRAPHY
   Styles for article content - counteracts Tailwind reset
   ============================================ */

.post-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #27272a;
}

/* Paragraphs */
.post-content p {
  margin: 0 0 1.5rem;
  line-height: 1.8;
}

/* Headings */
.post-content h1 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #18181b;
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  color: #18181b;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
  color: #27272a;
}

.post-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
  color: #27272a;
}

/* Lists - IMPORTANT: restore bullets and numbers */
.post-content ul {
  margin: 1.25rem 0 1.5rem 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

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

.post-content li {
  margin-bottom: 0.625rem;
  padding-left: 0.375rem;
  line-height: 1.7;
}

.post-content li::marker {
  color: #71717a;
}

/* Nested lists */
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.post-content ul ul {
  list-style-type: circle;
}

.post-content ul ul ul {
  list-style-type: square;
}

/* Links */
.post-content a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.post-content a:hover {
  color: #1d4ed8;
}

/* Blockquotes */
.post-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid #e4e4e7;
  background-color: #fafafa;
  color: #52525b;
  font-style: italic;
  border-radius: 0 0.5rem 0.5rem 0;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Strong and emphasis */
.post-content strong,
.post-content b {
  font-weight: 600;
  color: #18181b;
}

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

/* Code */
.post-content code {
  padding: 0.2rem 0.4rem;
  font-size: 0.875em;
  background-color: #f4f4f5;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.post-content pre {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background-color: #18181b;
  color: #fafafa;
  border-radius: 0.75rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
}

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

/* Images within content */
.post-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 1rem;
}

.post-content figure {
  margin: 2rem 0;
}

.post-content figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #71717a;
  text-align: center;
}

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

.post-content th,
.post-content td {
  padding: 0.75rem 1rem;
  border: 1px solid #e4e4e7;
  text-align: left;
}

.post-content th {
  background-color: #fafafa;
  font-weight: 600;
}

.post-content tr:nth-child(even) {
  background-color: #fafafa;
}

/* Horizontal rule */
.post-content hr {
  margin: 2.5rem 0;
  border: none;
  border-top: 1px solid #e4e4e7;
}

/* Key Takeaways / Summary boxes (if using specific classes) */
.post-content .key-takeaways,
.post-content .summary-box {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f4f4f5;
  border-radius: 1rem;
  border: 1px solid #e4e4e7;
}

.post-content .key-takeaways h2,
.post-content .key-takeaways h3,
.post-content .summary-box h2,
.post-content .summary-box h3 {
  margin-top: 0;
}

/* Table of Contents styling */
.post-content .toc,
.post-content .table-of-contents {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background-color: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 1rem;
}

.post-content .toc ul,
.post-content .table-of-contents ul {
  margin: 0;
}

/* First paragraph styling (optional - larger intro) */
.post-content > p:first-of-type {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #3f3f46;
}

/* Spacing adjustment after headings followed by lists */
.post-content h2 + ul,
.post-content h2 + ol,
.post-content h3 + ul,
.post-content h3 + ol {
  margin-top: 1rem;
}
