/* Post Page Styles - Matching Blog Aesthetic */
:root {
  --bg: #faf9f7;
  --bg-alt: #ffffff;
  --fg: #1a1a1a;
  --muted: #666;
  --border: #e8e5e1;
  --primary: #c9544d;
  --primary-light: #f8e8e7;
  --accent: #9B59B6;
  --max-width: 720px;
  --max-width-wide: 1000px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--fg);
  text-decoration: none;
}

.logo img {
  border-radius: 6px;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--primary);
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  color: var(--border);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs li:last-child span {
  color: var(--fg);
  font-weight: 500;
}

/* Main Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

/* Article Header */
.article-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: all 0.15s;
}

.category-badge:hover {
  background: var(--primary);
  color: white;
}

.article-header h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--fg);
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.article-meta .divider {
  width: 4px;
  height: 4px;
  background: var(--border);
  border-radius: 50%;
}

.article-meta .author {
  font-weight: 500;
  color: var(--fg);
}

/* Featured Snippet / Quick Answer */
.quick-answer {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.quick-answer::before {
  content: '💡 Quick Answer';
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-answer p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--fg);
}

/* Table of Contents */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.toc h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 0.75rem;
}

.toc li:last-child {
  margin-bottom: 0;
}

.toc a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.toc a::before {
  content: counter(toc);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.toc a:hover {
  color: var(--primary);
}

.toc a:hover::before {
  background: var(--primary-light);
  color: var(--primary);
}

/* Article Content */
.article-content {
  font-size: 1.0625rem;
}

.article-content h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  margin: 3rem 0 1.25rem;
  color: var(--fg);
  scroll-margin-top: 2rem;
}

.article-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--fg);
}

.article-content p {
  margin: 1rem 0;
  color: var(--fg);
}

.article-content ul,
.article-content ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin: 0.5rem 0;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.article-content a:hover {
  text-decoration-thickness: 2px;
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--muted);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, #fef9e7 0%, #fff 100%);
  border: 1px solid #f4d03f;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.highlight-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #d4ac0d;
}

.highlight-box p {
  margin: 0;
  font-size: 0.9375rem;
}

/* Tips List */
.tips-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.tips-box h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.tips-box ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.tips-box li {
  position: relative;
  padding-left: 1.75rem;
  margin: 0.75rem 0;
}

.tips-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #a03d38 100%);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  color: white;
}

.cta-section h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.cta-section p {
  margin: 0 0 1.5rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: white;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Social Sharing */
.share-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 3rem 0;
}

.share-section span {
  font-weight: 500;
  color: var(--muted);
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 1.125rem;
  transition: all 0.15s;
}

.share-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Related Posts */
.related-section {
  margin-top: 4rem;
}

.related-section h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.related-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.related-card a {
  display: block;
  padding: 1.5rem;
  text-decoration: none;
}

.related-card .category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cat-color, var(--primary));
  margin-bottom: 0.5rem;
}

.related-card h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--fg);
  line-height: 1.4;
}

.related-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer */
.site-footer {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}

.site-footer a {
  color: var(--primary);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem 1.25rem;
  }
  
  .site-nav {
    gap: 1rem;
  }
  
  .site-nav a {
    font-size: 0.875rem;
  }
  
  .breadcrumbs {
    padding: 1rem 1.25rem 0;
  }
  
  .container {
    padding: 1.5rem 1.25rem;
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
  
  .article-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .quick-answer {
    padding: 1.5rem;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .share-section {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .article-header h1 {
    font-size: 1.75rem;
  }
  
  .toc {
    padding: 1.25rem 1.5rem;
  }
  
  .cta-section {
    padding: 2rem 1.5rem;
  }
}

