/**
 * Beyond Folks — Blog listing page (premium layout)
 */

.bf-blog-page--premium {
  overflow-x: hidden;
}

.bf-blog-page--premium .preloader {
  display: none;
}

/* Hero */
.bf-bl-hero {
  position: relative;
  padding: calc(var(--bf-header-offset, 8rem) + 1.5rem) 0 4.5rem;
  background-color: var(--bf-black);
  overflow: hidden;
}

.bf-bl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 75% 15%, rgba(229, 97, 39, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 35% at 5% 85%, rgba(245, 148, 40, 0.08), transparent 50%);
  pointer-events: none;
}

.bf-bl-hero__grid {
  position: relative;
  z-index: 1;
}

.bf-bl-hero--compact {
  padding: calc(var(--bf-header-offset, 8rem) + 1rem) 0 2.75rem;
}

.bf-bl-hero--compact .container {
  position: relative;
  z-index: 1;
}

.bf-bl-hero--compact .bf-bl-hero__subtext {
  margin-bottom: 1.25rem;
}

.bf-bl-hero--compact .bf-bl-hero__badges {
  margin-bottom: 1.5rem;
}

.bf-bl-hero__link {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
}

.bf-bl-hero__h1 {
  font-family: var(--bf-font-display);
  font-size: clamp(1.75rem, 3.2vw + 0.5rem, 2.625rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.04em;
  color: var(--bf-white);
  margin: 0 0 1.25rem;
  max-width: 18em;
}

.bf-bl-hero__subtext {
  font-size: clamp(1.0625rem, 1.4vw + 0.5rem, 1.125rem);
  line-height: 1.8;
  color: var(--bf-sand);
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.bf-bl-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.bf-bl-hero__badges li {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bf-sand);
  background: rgba(var(--bf-white-rgb), 0.06);
  border: 1px solid rgba(var(--bf-white-rgb), 0.12);
  border-radius: 999px;
}

.bf-bl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.bf-bl-hero__actions .bf-btn {
  min-height: 52px;
  padding: 0.875rem 1.5rem;
}

.bf-bl-hero__visual {
  position: relative;
  padding: 1rem;
}

.bf-bl-hero__dashboard {
  position: relative;
  padding: 2rem 1.5rem 2.5rem;
  min-height: 300px;
  background:
    linear-gradient(145deg, rgba(var(--bf-orange-rgb), 0.1), transparent 45%),
    var(--bf-panel);
  border: 1px solid rgba(var(--bf-orange-rgb), 0.25);
  border-radius: var(--bf-radius-md);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.bf-bl-hero__dash-card {
  position: absolute;
  padding: 0.875rem 1rem;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(var(--bf-white-rgb), 0.12);
  border-radius: var(--bf-radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  max-width: 13.5rem;
}

.bf-bl-hero__dash-card--1 { top: 1rem; left: 0.5rem; border-left: 2px solid var(--bf-orange); }
.bf-bl-hero__dash-card--2 { top: 3.75rem; right: 0; }
.bf-bl-hero__dash-card--3 { bottom: 4.75rem; left: 1rem; }
.bf-bl-hero__dash-card--4 { bottom: 1rem; right: 0.5rem; max-width: 14.5rem; }

.bf-bl-hero__dash-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bf-muted);
  margin-bottom: 0.25rem;
}

.bf-bl-hero__dash-value {
  display: block;
  font-family: var(--bf-font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bf-white);
  line-height: 1.35;
}

@media (max-width: 991px) {
  .bf-bl-hero__h1 { max-width: none; }
  .bf-bl-hero__dash-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    max-width: none;
    margin-bottom: 0.5rem;
  }
  .bf-bl-hero__dashboard {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 575px) {
  .bf-bl-hero__dashboard { grid-template-columns: 1fr; }
}

/* AEO */
.bf-bl-aeo__inner {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.bf-bl-aeo__title {
  font-family: var(--bf-font-display);
  font-size: clamp(1.375rem, 2.5vw + 0.5rem, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--bf-white);
  margin: 0 auto 1rem;
}

.bf-bl-aeo__text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--bf-sand);
  margin: 0 auto 1.75rem;
  max-width: 44rem;
}

.bf-bl-aeo__card {
  height: 100%;
  padding: 1.25rem;
  background: var(--bf-black);
  border: 1px solid rgba(var(--bf-white-rgb), 0.1);
  border-radius: var(--bf-radius-md);
  border-top: 2px solid rgba(var(--bf-orange-rgb), 0.45);
  text-align: left;
}

.bf-bl-aeo__card-title {
  font-family: var(--bf-font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bf-white);
  margin: 0 0 0.45rem;
}

.bf-bl-aeo__card-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--bf-muted);
  margin: 0;
}

/* Featured insight card */
.bf-bl-featured__card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(var(--bf-white-rgb), 0.1);
  background: #101010;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.bf-bl-featured__card:hover {
  border-color: rgba(var(--bf-orange-rgb), 0.4);
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.36);
}

.bf-bl-featured__media {
  position: relative;
  min-height: 100%;
  background: #161616;
}

.bf-bl-featured__thumb {
  display: block;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.bf-bl-featured__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bf-bl-featured__card:hover .bf-bl-featured__thumb img {
  transform: scale(1.04);
}

.bf-bl-featured__thumb--visual,
.bf-bl-featured__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  height: 100%;
  background:
    radial-gradient(ellipse 70% 60% at 70% 20%, rgba(var(--bf-orange-rgb), 0.28), transparent 60%),
    linear-gradient(145deg, #1a1410 0%, #121212 55%, #24160f 100%);
}

.bf-bl-featured__visual-icon {
  width: 4rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(var(--bf-white-rgb), 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: var(--bf-amber);
  font-size: 1.35rem;
}

.bf-bl-featured__ribbon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.78);
  border: 1px solid rgba(var(--bf-orange-rgb), 0.35);
  color: var(--bf-amber);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bf-bl-featured__body {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.75rem 1.6rem;
  border-left: 1px solid rgba(var(--bf-white-rgb), 0.06);
}

.bf-bl-featured__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
}

.bf-bl-featured__category {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bf-bl-featured__category a,
.bf-bl-featured__category span {
  color: var(--bf-orange);
  text-decoration: none;
}

.bf-bl-featured__category a:hover {
  color: var(--bf-amber);
}

.bf-bl-featured__status,
.bf-bl-featured__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bf-muted);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--bf-white-rgb), 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.bf-bl-featured__title {
  font-family: var(--bf-font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
}

.bf-bl-featured__title a {
  color: var(--bf-white);
  text-decoration: none;
}

.bf-bl-featured__title a:hover {
  color: var(--bf-amber);
}

.bf-bl-featured__excerpt {
  margin: 0 0 1.15rem;
  color: var(--bf-sand);
  font-size: 1rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bf-bl-featured__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 0 0 1.35rem;
  padding: 0;
}

.bf-bl-featured__meta li {
  position: relative;
  font-size: 0.8125rem;
  color: rgba(var(--bf-white-rgb), 0.58);
  line-height: 1.4;
}

.bf-bl-featured__meta li:not(:last-child)::after {
  content: "·";
  margin-left: 0.65rem;
  color: rgba(var(--bf-white-rgb), 0.28);
}

.bf-bl-featured__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--bf-white-rgb), 0.08);
}

.bf-bl-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bf-orange);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.bf-bl-featured__cta:hover {
  color: var(--bf-amber);
  gap: 0.65rem;
}

.bf-bl-featured__soon {
  font-size: 0.875rem;
  color: var(--bf-muted);
}

@media (max-width: 991px) {
  .bf-bl-featured__card {
    grid-template-columns: 1fr;
  }

  .bf-bl-featured__thumb,
  .bf-bl-featured__thumb--visual,
  .bf-bl-featured__thumb--placeholder {
    min-height: 220px;
  }

  .bf-bl-featured__body {
    border-left: none;
    border-top: 1px solid rgba(var(--bf-white-rgb), 0.06);
    padding: 1.4rem 1.25rem 1.35rem;
  }
}

@media (max-width: 575px) {
  .bf-bl-featured__card:hover {
    transform: none;
  }

  .bf-bl-featured__excerpt {
    -webkit-line-clamp: 4;
  }
}

/* Topics */
.bf-bl-topics__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  max-width: 56rem;
  margin: 0 auto;
}

.bf-bl-topics__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  color: var(--bf-sand);
  background: var(--bf-panel);
  border: 1px solid rgba(var(--bf-white-rgb), 0.12);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.bf-bl-topics__chip i {
  font-size: 0.75rem;
  color: var(--bf-amber);
}

.bf-bl-topics__chip:hover,
.bf-bl-topics__chip.is-active {
  color: var(--bf-white);
  border-color: rgba(var(--bf-orange-rgb), 0.45);
  background: rgba(var(--bf-orange-rgb), 0.1);
}

/* Toolbar */
.bf-bl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bf-bl-toolbar__search {
  margin-bottom: 0;
  flex: 1;
  min-width: 240px;
  max-width: 28rem;
}

.bf-bl-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bf-bl-toolbar__sort-label {
  font-size: 0.8125rem;
  color: var(--bf-muted);
  margin: 0;
  white-space: nowrap;
}

.bf-bl-toolbar__sort-select {
  min-width: 10rem;
  background-color: rgba(var(--bf-white-rgb), 0.05);
  border-color: rgba(var(--bf-white-rgb), 0.12);
  color: var(--bf-white);
  background-image: none !important;
}

.bf-bl-toolbar__sort .bf-select-wrap {
  min-width: 10rem;
}

/* Pillars */
.bf-bl-pillar-card {
  height: 100%;
  padding: 1.5rem;
  background: var(--bf-black);
  border: 1px solid rgba(var(--bf-white-rgb), 0.1);
  border-radius: var(--bf-radius-md);
  position: relative;
  overflow: hidden;
}

.bf-bl-pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bf-amber), var(--bf-orange));
  opacity: 0.65;
}

.bf-bl-pillar-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--bf-amber);
  background: rgba(var(--bf-orange-rgb), 0.12);
  border-radius: var(--bf-radius-sm);
  margin-bottom: 1rem;
}

.bf-bl-pillar-card__title {
  font-family: var(--bf-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bf-white);
  margin: 0 0 0.5rem;
}

.bf-bl-pillar-card__text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--bf-muted);
  margin: 0;
}

/* Guides */
.bf-bl-guide-card {
  height: 100%;
  padding: 1.35rem;
  background: var(--bf-panel);
  border: 1px solid rgba(var(--bf-white-rgb), 0.1);
  border-radius: var(--bf-radius-md);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.bf-bl-guide-card:hover {
  border-color: rgba(var(--bf-orange-rgb), 0.35);
  transform: translateY(-2px);
}

.bf-bl-guide-card__title {
  font-family: var(--bf-font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.bf-bl-guide-card__title a {
  color: var(--bf-white);
  text-decoration: none;
}

.bf-bl-guide-card__title a:hover {
  color: var(--bf-amber);
}

.bf-bl-guide-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bf-amber);
  text-decoration: none;
}

.bf-bl-guide-card__soon {
  font-size: 0.8125rem;
  color: var(--bf-muted);
  font-style: italic;
}

/* Card enhancements */
.bf-blog-card--placeholder {
  border-style: dashed;
  border-color: rgba(var(--bf-white-rgb), 0.14);
}

.bf-blog-card__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bf-amber);
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.5rem;
  background: rgba(var(--bf-orange-rgb), 0.1);
  border-radius: 999px;
}

.bf-blog-card__thumb--locked {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  opacity: 0.85;
}

.bf-blog-card__thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  background: linear-gradient(135deg, rgba(var(--bf-orange-rgb), 0.1), var(--bf-panel));
  color: var(--bf-amber);
  font-size: 1.75rem;
}

.bf-blog-card__soon {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--bf-muted);
  font-style: italic;
}

.bf-blog-page--premium .row.g-4 > [class*="col-"] {
  display: flex;
}

.bf-blog-page--premium .bf-blog-card {
  width: 100%;
}
