/* Blog listing and post styles */

.blog-hero { 
  padding: 24px 0 12px; 
  background: radial-gradient(1000px 500px at 10% -10%, rgba(255,95,69,.14), transparent 60%);
  min-height: auto; 
  margin-top: 0; 
}
.blog-hero .container { display:block !important; padding: 0 16px; }
.blog-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2rem); margin-bottom: 6px; }
.blog-hero p { color: var(--text-secondary); font-size: 1rem; }
.blog-hero + section { padding-top: 16px; }
.blog-hero h1 { margin-bottom: 8px; }
.blog-hero p { color: var(--text-secondary); }

.posts-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
@media (max-width: 1200px){ .posts-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px){ .posts-grid{ grid-template-columns: 1fr; } }

.post-card { display:block; text-decoration:none; color:inherit; cursor:pointer; background: var(--bg-secondary); border:1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); overflow:hidden; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover, .post-card:focus-visible { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.25); outline: none; }
.post-thumb { position:relative; aspect-ratio: 16/9; overflow:hidden; background: linear-gradient(135deg, rgba(255,95,69,.2), rgba(255,255,255,.05)); }
.post-thumb img { width:100%; height:100%; object-fit: cover; display:block; transition: transform .3s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 16px; display:flex; flex-direction:column; gap:8px; }
.post-meta { color: var(--text-muted); font-size: .9rem; }
.post-title { font-size: 1.15rem; }
.post-excerpt { color: var(--text-secondary); font-size: .95rem; }
.post-actions { margin-top: 8px; }

/* Blog post page */
.post-hero { padding: 64px 0 28px; }
.post-hero .meta { color: var(--text-muted); margin-top: 6px; }
.post-content { max-width: 820px; margin: 0 auto; padding: 0 16px; }
.post-content h2 { margin-top: 18px; }
.post-content p, .post-content li { line-height: 1.7; }
.related { margin-top: 28px; }
.related a { display:inline-block; margin-right: 12px; margin-bottom: 8px; }

/* Enhanced blog elements */
.post-banner { margin: 0 auto 12px; max-width: 1024px; padding: 0 16px; }
.post-banner img { width: 100%; height: auto; border-radius: var(--radius-lg); object-fit: cover; }
.post-meta-bar { display:flex; gap:12px; flex-wrap:wrap; align-items:center; color: var(--text-muted); font-size:.95rem; margin: 8px 0 14px; }
.post-meta-bar .dot { width:4px; height:4px; background: var(--text-muted); border-radius:50%; display:inline-block; }
.tags { display:flex; gap:8px; flex-wrap:wrap; margin: 8px 0 16px; }
.tag { font-size:.85rem; padding:4px 8px; border-radius: 999px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); color: var(--text-secondary); }
.share { display:flex; gap:10px; align-items:center; margin: 6px 0 18px; }
.share a { color: var(--text-secondary); }
.toc { background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: 12px 16px; margin: 12px 0 16px; }
.toc strong { display:block; margin-bottom:8px; }
.toc a { display:block; color: var(--text-secondary); margin: 4px 0; }
.callout { padding: 12px 14px; border-radius: var(--radius-md); border:1px solid rgba(255,255,255,0.1); margin: 12px 0; }
.callout.info { background: rgba(64,160,255,0.08); border-color: rgba(64,160,255,0.25); }
.callout.warn { background: rgba(255,170,64,0.08); border-color: rgba(255,170,64,0.25); }
.img-caption { font-size:.9rem; color: var(--text-muted); text-align:center; margin-top:6px; }
.gallery { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 14px 0; }
.gallery img { width:100%; height: 200px; object-fit: cover; border-radius: var(--radius-md); }
.checklist { list-style: none; padding-left: 0; }
.checklist li { margin: 6px 0; }
.checklist li i { color: var(--primary-color); margin-right: 8px; }
.author-box { display:flex; gap:12px; align-items:center; background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: 12px 14px; margin-top: 24px; }
.author-box img { width:48px; height:48px; border-radius:50%; object-fit: cover; }
