/* ===========================================
   Blog Styles - couplebusan.com
   Extends case-detail.css for rich blog content
   =========================================== */

/* Blog Hero */
.blog-hero {
  background: linear-gradient(135deg, #2c1810 0%, #4a2818 50%, #2c1810 100%);
}

/* Blog Card Enhancements */
.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.blog-card-time {
  font-size: 13px;
  color: #999;
  font-weight: 400;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0ebe6;
}

.blog-card-date {
  font-size: 13px;
  color: #999;
}

/* Blog Article Header Enhancements */
.blog-description {
  font-size: 17px;
  line-height: 1.8;
  color: #666;
  max-width: 700px;
  margin: 0 auto 24px;
  word-break: keep-all;
}

.blog-meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #999;
}

.blog-author {
  font-weight: 500;
  color: #666;
}

.blog-date {
  color: #999;
}

.blog-read-time {
  background: #f0ebe6;
  color: #2c1810;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 16px;
}

/* Blog Rich Content Styles */
.blog-content-section {
  border-left: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.blog-rich-content {
  max-width: 760px;
  margin: 0 auto;
}

.blog-rich-content h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 26px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 56px 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0ebe6;
  letter-spacing: -0.5px;
  line-height: 1.4;
  word-break: keep-all;
}

.blog-rich-content h2:first-child {
  margin-top: 0;
}

.blog-rich-content h3 {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #2c1810;
  margin: 36px 0 16px;
  letter-spacing: -0.3px;
  line-height: 1.5;
  word-break: keep-all;
}

.blog-rich-content p {
  font-size: 17px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 20px;
  word-break: keep-all;
  letter-spacing: -0.3px;
}

.blog-rich-content a {
  color: #2c1810;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(44, 24, 16, 0.3);
  transition: text-decoration-color 0.3s;
}

.blog-rich-content a:hover {
  text-decoration-color: #2c1810;
}

/* Lists */
.blog-rich-content ul,
.blog-rich-content ol {
  margin: 20px 0;
  padding-left: 24px;
}

.blog-rich-content li {
  font-size: 17px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 12px;
  word-break: keep-all;
  letter-spacing: -0.3px;
}

.blog-rich-content li strong {
  color: #1a1a1a;
}

/* Blockquote */
.blog-rich-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 4px solid #2c1810;
  background: #faf8f6;
  font-size: 17px;
  line-height: 1.9;
  color: #444;
  font-style: normal;
  border-radius: 0 8px 8px 0;
}

.blog-rich-content blockquote p {
  margin-bottom: 0;
}

/* TLDR Box */
.blog-tldr {
  background: #f8f6f4;
  border: 1px solid #e8e2dc;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 40px;
}

.blog-tldr h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2c1810;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-tldr ul {
  margin: 0;
  padding-left: 20px;
}

.blog-tldr li {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 8px;
}

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

/* Table of Contents */
.blog-toc {
  background: white;
  border: 1px solid #e8e2dc;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 48px;
}

.blog-toc h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2c1810;
  margin: 0 0 16px;
}

.blog-toc ol {
  margin: 0;
  padding-left: 20px;
  counter-reset: toc;
}

.blog-toc li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
  list-style: decimal;
}

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

.blog-toc a {
  color: #2c1810;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 400;
}

.blog-toc a:hover {
  color: #666;
  text-decoration: underline;
}

/* Inline CTA */
.blog-cta-inline {
  background: linear-gradient(135deg, #2c1810 0%, #4a2818 100%);
  border-radius: 16px;
  padding: 40px 36px;
  margin: 48px 0 0;
  color: white;
}

.blog-cta-inline h3 {
  font-size: 22px;
  font-weight: 600;
  color: white;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.blog-cta-inline p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 12px;
}

.blog-cta-inline p:last-child {
  margin-bottom: 0;
}

.blog-cta-inline a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-cta-inline a:hover {
  opacity: 0.85;
}

.blog-cta-inline strong {
  color: white;
}

/* Blog Body Override */
.blog-body {
  max-width: 900px;
}

/* Smooth scroll for TOC anchors */
html {
  scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-rich-content h2 {
    font-size: 22px;
    margin: 40px 0 20px;
  }

  .blog-rich-content h3 {
    font-size: 18px;
    margin: 28px 0 14px;
  }

  .blog-rich-content p,
  .blog-rich-content li {
    font-size: 16px;
  }

  .blog-tldr,
  .blog-toc {
    padding: 24px;
  }

  .blog-cta-inline {
    padding: 32px 24px;
  }

  .blog-cta-inline h3 {
    font-size: 20px;
  }

  .blog-description {
    font-size: 15px;
  }

  .blog-meta-row {
    flex-direction: column;
    gap: 8px;
  }

  .blog-rich-content blockquote {
    padding: 20px 20px;
    margin: 24px 0;
  }
}

@media (max-width: 480px) {
  .blog-rich-content h2 {
    font-size: 20px;
  }

  .blog-tldr,
  .blog-toc {
    padding: 20px;
  }

  .blog-cta-inline {
    padding: 28px 20px;
  }
}
