/* Blog Index */
.blog-hero { padding: 80px 0 48px; text-align: center; }
.blog-hero h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; }
.blog-hero p { font-size: 18px; color: #9CA3AF; max-width: 520px; margin: 0 auto; }

.blog-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.filter-btn { padding: 8px 18px; border-radius: 99px; border: 1px solid #242424; background: #141414; color: #9CA3AF; font-size: 14px; font-weight: 500; cursor: pointer; transition: 0.2s ease; font-family: inherit; }
.filter-btn:hover, .filter-btn.active { border-color: #4CBB17; color: #4CBB17; background: rgba(76,187,23,0.06); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; margin-bottom: 80px; }

.blog-card { background: #141414; border: 1px solid #242424; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.blog-card:hover { border-color: #4CBB17; box-shadow: 0 0 40px rgba(76,187,23,0.08); }
.blog-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cat-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #4CBB17; background: rgba(76,187,23,0.1); padding: 4px 10px; border-radius: 99px; }
.blog-card-date { font-size: 13px; color: #9CA3AF; }
.blog-card h2 { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: 12px; letter-spacing: -0.3px; }
.blog-card p { font-size: 14px; color: #9CA3AF; line-height: 1.65; flex: 1; margin-bottom: 20px; }
.read-more { display: inline-flex; align-items: center; gap: 6px; color: #4CBB17; font-size: 14px; font-weight: 600; transition: gap 0.2s ease; }
.blog-card:hover .read-more { gap: 10px; }
.read-more::after { content: '→'; }

/* Post page */
.post-hero { padding: 80px 0 48px; border-bottom: 1px solid #242424; margin-bottom: 64px; }
.post-hero .container { max-width: 780px; }
.post-hero .cat-tag { margin-bottom: 20px; display: inline-block; }
.post-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -1px; line-height: 1.15; margin-bottom: 20px; color: #fff; }
.post-meta { display: flex; align-items: center; gap: 20px; color: #9CA3AF; font-size: 14px; }
.post-meta span { display: flex; align-items: center; gap: 6px; }

.post-layout { display: grid; grid-template-columns: 1fr 260px; gap: 64px; max-width: 1100px; margin: 0 auto; padding: 0 24px 96px; align-items: start; }
.post-content { min-width: 0; }
.post-content h2 { font-size: 26px; font-weight: 800; color: #fff; margin: 48px 0 16px; letter-spacing: -0.3px; }
.post-content h3 { font-size: 20px; font-weight: 700; color: #fff; margin: 32px 0 12px; }
.post-content p { font-size: 16px; color: #9CA3AF; line-height: 1.8; margin-bottom: 20px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-content li { font-size: 16px; color: #9CA3AF; line-height: 1.75; margin-bottom: 8px; }
.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content strong { color: #e2e8f0; font-weight: 600; }
.post-content a { color: #4CBB17; text-decoration: underline; }
.callout-box { background: rgba(76,187,23,0.06); border: 1px solid rgba(76,187,23,0.2); border-radius: 12px; padding: 20px 24px; margin: 32px 0; }
.callout-box p { color: #e2e8f0; margin: 0; font-size: 15px; }
.callout-box strong { color: #4CBB17; }

.post-toc { background: #141414; border: 1px solid #242424; border-radius: 16px; padding: 24px; position: sticky; top: 88px; }
.post-toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: #9CA3AF; margin-bottom: 16px; font-weight: 700; }
.post-toc ol { padding-left: 0; counter-reset: toc; }
.post-toc li { list-style: none; counter-increment: toc; margin-bottom: 10px; }
.post-toc li::before { content: counter(toc) ". "; color: #4CBB17; font-weight: 700; font-size: 13px; }
.post-toc a { font-size: 13px; color: #9CA3AF; transition: color 0.2s; line-height: 1.5; }
.post-toc a:hover { color: #4CBB17; }

.post-cta { background: #141414; border: 1px solid #242424; border-radius: 20px; padding: 56px 40px; text-align: center; margin: 64px 0; }
.post-cta h2 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.post-cta p { font-size: 16px; color: #9CA3AF; margin-bottom: 28px; }

.related-posts { margin-top: 64px; padding-top: 48px; border-top: 1px solid #242424; }
.related-posts h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* Tablet */
@media (min-width: 641px) and (max-width: 1023px) {
  .post-layout { grid-template-columns: 1fr; gap: 0; padding: 0 24px 80px; }
  .post-toc { position: relative; top: 0; margin-bottom: 40px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; gap: 0; padding: 0 20px 64px; }
  .post-toc { display: none; }
  .post-hero .container { padding: 0 20px; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-cta { padding: 40px 24px; }
  .post-cta h2 { font-size: 22px; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 28px; }
  .post-hero h1 { font-size: 26px; }
  .post-content h2 { font-size: 22px; }
}
