/* Technology blog */

.bl-page {
  --bl-brand: #3384fc;
  --bl-ink: #0f172a;
  --bl-muted: #64748b;
  --bl-line: #e2e8f0;
}

.bl-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.bl-hero--article .bl-hero-shell {
  padding-bottom: 2rem;
}

.bl-hero-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 100% 0%, rgba(51, 132, 252, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 45% at 0% 100%, rgba(139, 92, 246, 0.08), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.bl-hero-shell {
  position: relative;
  padding-top: 6.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .bl-hero-shell {
    padding-top: 7.5rem;
    padding-bottom: 3rem;
  }
}

.bl-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.bl-crumb a {
  color: #64748b;
  transition: color 0.15s;
}

.bl-crumb a:hover {
  color: var(--bl-brand);
}

.bl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
}

.bl-eyebrow-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--bl-brand);
  box-shadow: 0 0 10px rgba(51, 132, 252, 0.55);
}

.bl-hero-inner {
  max-width: 44rem;
}

.bl-hero-inner h1,
.bl-detail-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bl-ink);
}

.bl-hero-lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--bl-muted);
}

.bl-highlights {
  display: grid;
  gap: 0.65rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.bl-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: #475569;
}

.bl-highlights svg {
  margin-top: 0.15rem;
  height: 1.1rem;
  width: 1.1rem;
  flex-shrink: 0;
  color: #22c55e;
}

.bl-band {
  padding: 3rem 0;
}

.bl-band--soft {
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.bl-section-head {
  margin-bottom: 1.75rem;
}

.bl-section-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bl-ink);
}

.bl-section-head p {
  margin: 0;
  color: var(--bl-muted);
}

.bl-toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .bl-toolbar {
    grid-template-columns: minmax(0, 22rem) 1fr;
    align-items: start;
  }
}

.bl-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--bl-line);
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.bl-search svg {
  height: 1.1rem;
  width: 1.1rem;
  color: #94a3b8;
}

.bl-search input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 0.9375rem;
  color: var(--bl-ink);
  outline: none;
}

.bl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bl-filter-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bl-line);
  border-radius: 9999px;
  padding: 0.4rem 0.85rem;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-decoration: none;
}

.bl-filter-chip:hover {
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.bl-filter-chip.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.bl-featured {
  margin-bottom: 1.5rem;
}

.bl-featured-link {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--bl-line);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (min-width: 900px) {
  .bl-featured-link {
    grid-template-columns: 1.1fr 1fr;
  }
}

.bl-featured-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

.bl-featured-media,
.bl-card-media {
  position: relative;
  min-height: 12rem;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
}

.bl-featured-media img,
.bl-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
}

.bl-thumb-placeholder {
  min-height: 12rem;
  background:
    linear-gradient(135deg, rgba(51, 132, 252, 0.12), rgba(139, 92, 246, 0.1)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0.35) 8px,
      transparent 8px,
      transparent 16px
    );
}

.bl-featured-body,
.bl-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.bl-featured-body h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.25;
  color: var(--bl-ink);
}

.bl-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .bl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .bl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bl-card {
  border: 1px solid var(--bl-line);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.bl-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bl-card-body h2,
.bl-card-body h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--bl-ink);
}

.bl-card-body p {
  margin: 0;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bl-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-tech-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: #eff6ff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.bl-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.bl-empty,
.bl-no-results {
  padding: 2.5rem;
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
  text-align: center;
  color: var(--bl-muted);
}

.bl-empty h2 {
  margin: 0 0 0.5rem;
  color: var(--bl-ink);
}

.bl-cta {
  display: grid;
  gap: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--bl-line);
  border-radius: 1.25rem;
  background: #fff;
}

@media (min-width: 768px) {
  .bl-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.bl-cta h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--bl-ink);
}

.bl-cta p {
  margin: 0;
  color: var(--bl-muted);
}

.bl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.bl-btn--primary {
  background: var(--bl-brand);
  color: #fff;
}

.bl-btn--primary:hover {
  background: #2563eb;
}

.bl-btn--ghost {
  border: 1px solid var(--bl-line);
  color: #334155;
  background: #fff;
}

.bl-btn--ghost:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.bl-btn--block {
  width: 100%;
  margin-top: 0.65rem;
}

.bl-detail-hero {
  max-width: 48rem;
}

.bl-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: #64748b;
}

.bl-detail-cover {
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.bl-detail-cover-img {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: 1.25rem;
  border: 1px solid var(--bl-line);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

.bl-detail-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .bl-detail-layout {
    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: start;
  }
}

.bl-article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #334155;
}

.bl-article-body > *:first-child {
  margin-top: 0;
}

.bl-article-body > *:last-child {
  margin-bottom: 0;
}

.bl-article-body h1,
.bl-article-body h2,
.bl-article-body h3 {
  margin: 2rem 0 0.75rem;
  color: var(--bl-ink);
  line-height: 1.3;
}

.bl-article-body h2 {
  font-size: 1.5rem;
}

.bl-article-body h3 {
  font-size: 1.2rem;
}

.bl-article-body p,
.bl-article-body ul,
.bl-article-body ol,
.bl-article-body blockquote,
.bl-article-body pre {
  margin: 0 0 1.1rem;
}

.bl-article-body ul,
.bl-article-body ol {
  padding-left: 1.35rem;
}

.bl-article-body blockquote {
  padding: 0.85rem 1rem;
  border-left: 4px solid #93c5fd;
  background: #f8fafc;
  color: #475569;
}

.bl-article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 0.75rem;
  border: 1px solid var(--bl-line);
}

.bl-article-body pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.875rem;
}

.bl-article-body a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bl-detail-sidebar {
  display: grid;
  gap: 1rem;
}

.bl-sidebar-card {
  padding: 1.25rem;
  border: 1px solid var(--bl-line);
  border-radius: 1rem;
  background: #fff;
}

.bl-sidebar-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: var(--bl-ink);
}

.bl-sidebar-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bl-muted);
}

.bl-sidebar-tech {
  font-size: 1.125rem !important;
  font-weight: 700;
  color: var(--bl-ink) !important;
}

.bl-sidebar-muted {
  margin-top: 0.25rem !important;
  font-size: 0.8125rem !important;
}

.bl-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bl-line);
}

.bl-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--bl-line);
  border-radius: 0.65rem;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.bl-page-btn:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
}

.bl-page-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.bl-page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.bl-page-number-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.bl-page-ellipsis {
  padding: 0 0.15rem;
  color: #94a3b8;
}

.bl-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.bl-page-number:hover {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.bl-page-number.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}
