/* ============================================================
   Blog — listing + post pages
   ============================================================ */

/* ---- Blog listing hero ---- */
.blog-hero {
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--border);
}

.blog-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

.blog-hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 500px;
}

/* ---- Filter tabs ---- */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* ---- Featured post ---- */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 64px;
}

.featured-post-image {
  height: 360px;
  overflow: hidden;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-post:hover .featured-post-image img {
  transform: scale(1.04);
}

.featured-post-body {
  padding: 40px 40px 40px 0;
}

.post-category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 208, 132, 0.12);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.featured-post-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.featured-post-body h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.featured-post-body h2 a:hover {
  color: var(--accent);
}

.featured-post-body p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.post-meta-line {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.post-meta-line span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

/* ---- Blog grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
  background: var(--border);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 8px 0 10px;
}

.blog-card-body h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-body h3 a:hover {
  color: var(--accent);
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.read-more:hover {
  gap: 8px;
}

/* ---- Blog post page ---- */
.post-page {
  padding-top: 80px;
}

.post-header {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}

.post-header-inner {
  max-width: 760px;
  margin: 0 auto;
}

.post-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 16px 0 20px;
}

.post-header .post-meta-line {
  margin-top: 24px;
}

.post-cover {
  max-width: 900px;
  margin: 0 auto 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-cover img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ---- Post content (prose) ---- */
.post-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 48px 0 16px;
  line-height: 1.3;
}

.post-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
  line-height: 1.4;
}

.post-content p {
  margin-bottom: 24px;
}

.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.post-content strong {
  font-weight: 700;
  color: var(--text);
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 32px 0;
  background: rgba(0, 208, 132, 0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* ---- Post CTA ---- */
.post-cta-box {
  max-width: 760px;
  margin: 64px auto 80px;
  padding: 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 16px;
  text-align: center;
}

.post-cta-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 12px;
}

.post-cta-box p {
  color: rgba(0,0,0,0.7);
  margin-bottom: 28px;
  font-size: 1rem;
}

.btn-dark {
  background: #000;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}

.btn-dark:hover {
  opacity: 0.85;
}

/* ---- Empty state ---- */
.blog-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .featured-post {
    grid-template-columns: 1fr;
  }
  .featured-post-image {
    height: 260px;
  }
  .featured-post-body {
    padding: 32px;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-hero {
    padding: 80px 0 40px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .post-cover img {
    height: 240px;
  }
  .post-cta-box {
    padding: 32px 24px;
  }
}
