/* --- BLOG INDEX (home.php) --- */
.blog-page { padding: 160px 0 80px; background: var(--wolf-1); min-height: 80vh; }
.blog-header { text-align: center; margin-bottom: 64px; }
.blog-header .badge { margin-bottom: 16px; display: inline-block; }
.blog-header h1 { font-size: 42px; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 12px; color: var(--wolf-dark); }
.blog-header p { font-size: 16px; color: var(--wolf-6); max-width: 480px; margin: 0 auto; line-height: 1.7; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.blog-card { background: var(--wolf-card); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border-light); transition: all var(--transition-slow); display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--primary); }

.blog-card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.blog-card:hover .blog-card__thumb img { transform: scale(1.04); }

.blog-card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.blog-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; color: var(--wolf-5); }
.blog-card__cat { background: var(--primary-light); color: var(--primary); padding: 2px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.blog-card__title { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; letter-spacing: -0.01em; }
.blog-card__title a { color: var(--wolf-dark); text-decoration: none; transition: color var(--transition); }
.blog-card__title a:hover { color: var(--primary); }
.blog-card__excerpt { font-size: 14px; color: var(--wolf-6); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.blog-card__link { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; transition: color var(--transition); }
.blog-card__link:hover { color: var(--primary-hover); }

.blog-pagination { margin-top: 56px; text-align: center; }
.blog-pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 8px; }
.blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; background: var(--wolf-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); font-size: 14px; font-weight: 500; color: var(--wolf-6); text-decoration: none; transition: all var(--transition); }
.blog-pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.blog-pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }

.blog-empty { text-align: center; font-size: 16px; color: var(--wolf-5); padding: 60px 0; }


/* --- SINGLE POST (single.php) --- */
.single-post { padding-top: 100px; background: var(--wolf-1); }

.post-header { text-align: center; padding: 60px 0 40px; }
.post-header .badge { margin-bottom: 20px; display: inline-block; }
.post-title { font-size: 44px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; text-transform: uppercase; color: var(--wolf-dark); margin-bottom: 20px; max-width: 720px; margin-left: auto; margin-right: auto; }
.post-meta { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--wolf-5); }
.post-meta__sep { color: var(--wolf-4); }

.post-hero-image { margin-bottom: 48px; }
.post-hero-image .wrap { max-width: 900px; }
.post-featured-img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }

.wrap--narrow { max-width: 720px; margin-left: auto; margin-right: auto; padding: 0 24px; }

/* Post content prose */
.post-content { padding-bottom: 48px; }
.post-content h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; margin: 48px 0 16px; color: var(--wolf-dark); }
.post-content h3 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; color: var(--wolf-dark); }
.post-content p { font-size: 16px; line-height: 1.8; color: var(--wolf-6); margin-bottom: 20px; max-width: none; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-content li { font-size: 16px; line-height: 1.8; color: var(--wolf-6); margin-bottom: 8px; }
.post-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; transition: color var(--transition); }
.post-content a:hover { color: var(--primary-hover); }
.post-content blockquote { border-left: 3px solid var(--primary); padding: 16px 24px; margin: 28px 0; background: var(--primary-light); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.post-content blockquote p { color: var(--wolf-dark); font-style: italic; margin-bottom: 0; }
.post-content code { font-family: var(--font-mono); font-size: 14px; background: rgba(0,0,0,0.06); padding: 2px 6px; border-radius: 4px; }
.post-content pre { background: var(--wolf-darker); color: #e2e8f0; padding: 24px; border-radius: var(--radius-lg); overflow-x: auto; margin-bottom: 24px; }
.post-content pre code { background: none; padding: 0; font-size: 13px; line-height: 1.6; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--radius-lg); margin: 24px 0; box-shadow: var(--shadow-md); }
.post-content strong { color: var(--wolf-dark); font-weight: 600; }

/* Tags */
.post-footer { border-top: 1px solid var(--border-light); padding: 32px 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.post-tag { font-size: 12px; font-weight: 500; color: var(--wolf-6); background: var(--wolf-2); padding: 4px 14px; border-radius: var(--radius-full); text-decoration: none; transition: all var(--transition); }
.post-tag:hover { background: var(--primary-light); color: var(--primary); }

/* Share */
.post-share { display: flex; align-items: center; gap: 16px; }
.post-share__label { font-size: 13px; font-weight: 600; color: var(--wolf-5); text-transform: uppercase; letter-spacing: 0.04em; }
.post-share__links { display: flex; gap: 12px; }
.post-share__links a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--wolf-2); color: var(--wolf-6); transition: all var(--transition); text-decoration: none; }
.post-share__links a:hover { background: var(--primary); color: #fff; }

/* Post navigation */
.post-navigation { padding: 40px 0; border-top: 1px solid var(--border-light); }
.post-nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-nav-link { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--border-light); border-radius: var(--radius-lg); text-decoration: none; transition: all var(--transition); }
.post-nav-link:hover { border-color: var(--primary); background: var(--wolf-card); }
.post-nav-link--next { text-align: right; }
.post-nav-link__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--wolf-5); }
.post-nav-link__title { font-size: 15px; font-weight: 600; color: var(--wolf-dark); line-height: 1.3; }

/* Post CTA */
.post-cta { padding: 64px 0 80px; }
.post-cta__box { background: var(--wolf-darker); border-radius: var(--radius-2xl); padding: 56px; text-align: center; }
.post-cta__box h3 { font-size: 28px; font-weight: 900; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.post-cta__box p { font-size: 16px; color: rgba(255,255,255,0.55); max-width: 480px; margin: 0 auto 28px; line-height: 1.7; }


/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .blog-page { padding: 130px 0 60px; }
  .blog-header h1 { font-size: 30px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card__body { padding: 20px; }

  .post-title { font-size: 30px; }
  .post-header { padding: 40px 0 28px; }
  .post-nav-links { grid-template-columns: 1fr; }
  .post-nav-link--next { text-align: left; }
  .post-cta__box { padding: 36px 24px; }
  .post-cta__box h3 { font-size: 22px; }
}
