/* Blog Page CSS */
@import url('../t2i/t2i.css');

.blog-hero {
  text-align: center;
  padding: 48px 0 32px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg-page) 100%);
}

.blog-hero h2 { font-size: 36px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.blog-hero p  { font-size: 16px; color: var(--text-secondary); }

/* Category filter */
.category-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cat-btn {
  padding: 6px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-btn:hover, .cat-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Article grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 900px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }

/* Article card */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.article-card-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-input);
  display: block;
}
.article-card-cover-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--bg-input), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.article-card-body { padding: 18px; }
.article-card-cat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.article-featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  grid-column: 1/-1;
}
.blog-empty .icon { font-size: 48px; margin-bottom: 16px; }
