/* WriterGPT Blog Listing Grid */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;500;600;700;800&display=swap');

.wfcp-blog-listing {
  font-family: 'Assistant', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 1200px; margin: 0 auto; padding: 60px 24px 80px;
  -webkit-font-smoothing: antialiased;
}

.wfcp-blog-header { text-align: center; margin-bottom: 48px; }
.wfcp-blog-badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--wfcp-accent, #000); margin-bottom: 16px;
  background: rgba(0,0,0,0.04); padding: 6px 16px; border-radius: 999px;
}
.wfcp-blog-heading {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
  letter-spacing: -0.02em; color: #1d1d1f; margin: 0 0 12px;
}
.wfcp-blog-description {
  font-size: 1.125rem; color: #86868b; margin: 0 0 32px; font-weight: 400;
}
.wfcp-blog-search-wrap { max-width: 400px; margin: 0 auto; }
.wfcp-blog-search {
  width: 100%; padding: 12px 20px; border: 1px solid #d2d2d7; border-radius: 12px;
  font-size: 1rem; font-family: inherit; box-sizing: border-box;
  background: #fff; transition: border-color 0.2s;
}
.wfcp-blog-search:focus { outline: none; border-color: var(--wfcp-accent, #000); box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }

/* Category Filters */
.wfcp-blog-filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-bottom: 36px;
}
.wfcp-filter-btn {
  display: inline-block; padding: 8px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  color: #1d1d1f; background: #f5f5f7; border: 1px solid #e5e5ea;
  transition: all 0.2s; cursor: pointer; font-family: inherit;
}
.wfcp-filter-btn:hover {
  background: #e8e8ed; border-color: #d2d2d7;
}
.wfcp-filter-btn.active {
  background: var(--wfcp-accent, #000); color: #fff;
  border-color: var(--wfcp-accent, #000);
}

/* Grid */
.wfcp-blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

/* Card */
.wfcp-blog-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid #e5e5ea; border-radius: 16px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, box-shadow 0.3s, transform 0.3s;
}
.wfcp-blog-card:hover {
  border-color: var(--wfcp-accent, #000);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.wfcp-card-image { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.wfcp-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.wfcp-blog-card:hover .wfcp-card-image img { transform: scale(1.05); }
.wfcp-card-placeholder {
  width: 100%; height: 100%; background: linear-gradient(135deg, #1d1d1f, #333);
  display: flex; align-items: center; justify-content: center;
}
.wfcp-card-placeholder span { font-size: 32px; font-weight: 800; color: rgba(255,255,255,0.2); }

.wfcp-card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.wfcp-card-meta {
  display: flex; justify-content: space-between; font-size: 13px;
  color: #86868b; margin-bottom: 10px; font-weight: 500;
}
.wfcp-card-title {
  font-size: 1.1rem; font-weight: 700; color: #1d1d1f;
  line-height: 1.35; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wfcp-card-excerpt {
  font-size: 0.9rem; color: #86868b; line-height: 1.5;
  margin: 0 0 14px; flex-grow: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wfcp-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wfcp-card-tag {
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.wfcp-tag-green  { background: #e8f5e9; color: #2e7d32; }
.wfcp-tag-purple { background: #f3e5f5; color: #7b1fa2; }
.wfcp-tag-blue   { background: #e3f2fd; color: #1565c0; }
.wfcp-tag-orange { background: #fff3e0; color: #e65100; }
.wfcp-tag-pink   { background: #fce4ec; color: #c62828; }
.wfcp-tag-cyan   { background: #e0f7fa; color: #00838f; }

/* Pagination */
.wfcp-blog-pagination {
  text-align: center; margin-top: 48px;
}
.wfcp-blog-pagination .page-numbers {
  display: inline-block; padding: 10px 16px; margin: 0 4px;
  border: 1px solid #d2d2d7; border-radius: 8px; text-decoration: none;
  color: #1d1d1f; font-weight: 600; font-size: 14px; transition: all 0.2s;
}
.wfcp-blog-pagination .page-numbers.current,
.wfcp-blog-pagination .page-numbers:hover {
  background: var(--wfcp-accent, #000); color: #fff; border-color: var(--wfcp-accent, #000);
}

/* Responsive */
@media (max-width: 1024px) { .wfcp-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .wfcp-blog-grid { grid-template-columns: 1fr; }
  .wfcp-blog-listing { padding: 40px 16px 60px; }
  .wfcp-blog-heading { font-size: 2rem; }
}
