/* ========================================
   Single Blog Post Page
   ======================================== */

.post-page { padding-top: 120px; padding-bottom: 80px; }

/* Post header */
.post-header { max-width: 800px; margin: 0 auto 40px; text-align: center; }
.post-cat { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 6px 18px; border-radius: 8px; background: var(--primary); color: #fff; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(255,107,43,0.3); }
.post-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; line-height: 1.5; margin-bottom: 20px; }
.post-meta { display: flex; justify-content: center; gap: 24px; font-size: 0.82rem; color: var(--text-muted); flex-wrap: wrap; }
.post-meta span { display: flex; align-items: center; gap: 6px; }

/* Featured image */
.post-image { max-width: 900px; margin: 0 auto 48px; border-radius: 20px; overflow: hidden; height: 400px; position: relative; }
.post-image div { width: 100%; height: 100%; }
.post-image::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 30%; background: linear-gradient(to top, var(--bg), transparent); }

/* Post content */
.post-content { max-width: 760px; margin: 0 auto; }
.post-content h2 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-top: 40px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.post-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-top: 28px; margin-bottom: 12px; }
.post-content p { color: var(--text-secondary); font-size: 0.95rem; line-height: 2; margin-bottom: 20px; }
.post-content ul, .post-content ol { padding-right: 24px; margin-bottom: 20px; }
.post-content li { color: var(--text-secondary); font-size: 0.95rem; line-height: 2; margin-bottom: 8px; }
.post-content li::marker { color: var(--primary); }
.post-content img { width: 100%; border-radius: 16px; margin: 24px 0; }
.post-content blockquote { border-right: 4px solid var(--primary); padding: 20px 24px; margin: 24px 0; background: rgba(255,107,43,0.05); border-radius: 0 12px 12px 0; }
.post-content blockquote p { color: var(--text); font-weight: 600; margin-bottom: 0; }
.post-content a { color: var(--primary); font-weight: 600; }

/* Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-tag { font-size: 0.78rem; font-weight: 600; padding: 6px 16px; border-radius: 50px; background: rgba(255,107,43,0.08); color: var(--primary); border: 1px solid rgba(255,107,43,0.15); }

/* Share buttons */
.post-share { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-share-label { font-size: 0.85rem; font-weight: 700; color: var(--text-secondary); }
.post-share a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; font-size: 1rem; }
.post-share a:hover { border-color: var(--primary); background: rgba(255,107,43,0.08); }

/* Related posts */
.post-related { max-width: 900px; margin: 60px auto 0; }
.post-related h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 28px; }
.post-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-related-card { background: #111111; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.07); transition: transform 0.3s ease; }
.post-related-card:hover { transform: translateY(-4px); }
.post-related-card a { display: block; text-decoration: none; color: inherit; }
.post-related-card-img { height: 150px; overflow: hidden; }
.post-related-card-img div { width: 100%; height: 100%; transition: transform 0.4s ease; }
.post-related-card a:hover .post-related-card-img div { transform: scale(1.05); }
.post-related-card-body { padding: 16px 20px; }
.post-related-card-title { font-size: 0.88rem; font-weight: 700; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Video embed */
.post-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 24px 0; border-radius: 16px; }
.post-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Responsive */
@media (max-width: 768px) {
  .post-image { height: 250px; border-radius: 12px; }
  .post-content { padding: 0 8px; }
  .post-related-grid { grid-template-columns: 1fr; }
  .post-meta { gap: 12px; }
}
