/* ══════════════════════════════════════════
   BLOG PAGE — Frontend Styles
══════════════════════════════════════════ */

/* Hero */
.bl-hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
  padding: 64px 0 40px;
  text-align: center;
}
.bl-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 18px; border-radius: 999px;
  background: rgba(37,99,235,.1); border: 1px solid rgba(37,99,235,.2);
  color: #1d4ed8; font-size: 13px; font-weight: 600;
  margin-bottom: 18px;
}
.bl-hero h1 { font-size: clamp(26px,4vw,42px); font-weight: 800; color: #0f172a; margin: 0 0 12px; }
.bl-hero h1 span { color: #2563eb; }
.bl-hero-sub { font-size: 16px; color: #64748b; max-width: 520px; margin: 0 auto 28px; }

/* Search */
.bl-search-wrap { max-width: 480px; margin: 0 auto; position: relative; }
.bl-search-wrap input {
  width: 100%; padding: 12px 48px 12px 18px;
  border: 1.5px solid #e2e8f0; border-radius: 999px;
  font-size: 14px; outline: none;
  background: #fff; color: #0f172a;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: border-color .2s;
}
.bl-search-wrap input:focus { border-color: #2563eb; }
.bl-search-wrap button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: #2563eb; border: none; border-radius: 999px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; transition: background .2s;
}
.bl-search-wrap button:hover { background: #1d4ed8; }

/* Category tabs */
.bl-cats {
  background: #fff; border-bottom: 1px solid #f1f5f9;
  padding: 0; position: sticky; top: 0; z-index: 30;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.bl-cats-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 4px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.bl-cats-inner::-webkit-scrollbar { display: none; }
.bl-cat-tab {
  display: inline-block; padding: 14px 18px;
  font-size: 14px; font-weight: 500; color: #64748b;
  text-decoration: none; white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.bl-cat-tab:hover { color: #2563eb; }
.bl-cat-tab.active { color: #2563eb; border-bottom-color: #2563eb; font-weight: 700; }

/* Content area */
.bl-content { max-width: 1280px; margin: 0 auto; padding: 48px 24px; }

/* Featured post */
.bl-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  overflow: hidden; margin-bottom: 56px;
  min-height: 380px;
}
@media (max-width: 768px) { .bl-featured { grid-template-columns: 1fr; } }
.bl-featured-img { position: relative; overflow: hidden; }
.bl-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.bl-featured:hover .bl-featured-img img { transform: scale(1.04); }
.bl-featured-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  color: #fff; padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.bl-featured-body {
  padding: 44px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.bl-featured-cat {
  font-size: 13px; font-weight: 700; color: #2563eb;
  margin-bottom: 12px; text-decoration: none;
}
.bl-featured-cat:hover { text-decoration: underline; }
.bl-featured-title {
  font-size: clamp(20px, 2.2vw, 28px); font-weight: 800;
  color: #0f172a; margin: 0 0 14px; line-height: 1.3;
  text-decoration: none; display: block;
}
.bl-featured-title:hover { color: #2563eb; }
.bl-featured-excerpt { font-size: 14px; color: #64748b; line-height: 1.65; margin-bottom: 20px; }
.bl-featured-meta {
  display: flex; align-items: center; gap: 18px;
  font-size: 13px; color: #94a3b8; margin-bottom: 24px;
}
.bl-featured-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.bl-featured-meta span { display: flex; align-items: center; gap: 5px; }
.bl-read-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #2563eb; color: #fff; border-radius: 10px;
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  text-decoration: none; align-self: flex-start;
  transition: background .2s, transform .2s;
}
.bl-read-btn:hover { background: #1d4ed8; transform: translateY(-1px); color: #fff; }
.bl-read-btn svg { transition: transform .2s; }
.bl-read-btn:hover svg { transform: translateX(3px); }

/* Post grid */
.bl-grid-title { font-size: 18px; font-weight: 700; color: #0f172a; margin-bottom: 24px; }
.bl-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .bl-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .bl-grid { grid-template-columns: 1fr; } }

.bl-card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.bl-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.bl-card-img { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bl-card:hover .bl-card-img img { transform: scale(1.06); }
.bl-card-cat-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  color: #fff; padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.bl-card-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.bl-card-title {
  font-size: 15px; font-weight: 700; color: #0f172a;
  margin: 0 0 8px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bl-card:hover .bl-card-title { color: #2563eb; }
.bl-card-excerpt {
  font-size: 13px; color: #64748b; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 14px; flex: 1;
}
.bl-card-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: #94a3b8; }
.bl-card-meta span { display: flex; align-items: center; gap: 4px; }
.bl-card-meta svg { width: 12px; height: 12px; }

/* Empty state */
.bl-empty { text-align: center; padding: 80px 24px; color: #94a3b8; }
.bl-empty svg { width: 56px; height: 56px; margin-bottom: 16px; opacity: .4; }
.bl-empty h3 { font-size: 18px; font-weight: 600; color: #64748b; margin-bottom: 8px; }

/* Pagination */
.bl-pagination { display: flex; justify-content: center; margin-top: 12px; }
.bl-pagination .pagination .page-link { color: #2563eb; border-radius: 8px; margin: 0 2px; }
.bl-pagination .pagination .page-item.active .page-link { background: #2563eb; border-color: #2563eb; color: #fff; }

/* ══ Blog Detail Page ══ */
.blshow-hero { background: #f8fafc; padding: 0; }
.blshow-hero-img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.blshow-body { max-width: 820px; margin: 0 auto; padding: 48px 24px 72px; }
.blshow-cat { font-size: 13px; font-weight: 700; color: #2563eb; text-decoration: none; margin-bottom: 12px; display: inline-block; }
.blshow-title { font-size: clamp(24px,3.5vw,38px); font-weight: 800; color: #0f172a; line-height: 1.25; margin-bottom: 16px; }
.blshow-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: #94a3b8; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid #f1f5f9; }
.blshow-meta span { display: flex; align-items: center; gap: 5px; }
.blshow-meta svg { width: 14px; height: 14px; }
.blshow-content { font-size: 16px; line-height: 1.8; color: #374151; }
.blshow-content h1,.blshow-content h2,.blshow-content h3 { color: #0f172a; margin: 32px 0 12px; font-weight: 700; }
.blshow-content p { margin-bottom: 18px; }
.blshow-content img { max-width: 100%; border-radius: 12px; margin: 20px 0; }
.blshow-content ul,.blshow-content ol { padding-left: 24px; margin-bottom: 18px; }
.blshow-content li { margin-bottom: 6px; }
.blshow-content blockquote { border-left: 4px solid #2563eb; padding: 12px 20px; background: #eff6ff; border-radius: 0 8px 8px 0; margin: 20px 0; font-style: italic; color: #1e40af; }
.blshow-content a { color: #2563eb; text-decoration: underline; }
.blshow-content code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.blshow-content pre { background: #1e293b; color: #e2e8f0; padding: 20px; border-radius: 10px; overflow-x: auto; margin-bottom: 18px; }

/* Related posts */
.blshow-related { max-width: 1280px; margin: 0 auto; padding: 0 24px 72px; }
.blshow-related-title { font-size: 22px; font-weight: 700; color: #0f172a; margin-bottom: 24px; padding-top: 24px; border-top: 1px solid #f1f5f9; }
