/* =========================================================
   Blogger Catalog Page — extends Inmade / Blogger design system
   ========================================================= */

/* ---------- Catalog hero ---------- */
.catalog-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark, #0a0a0c);
  color: var(--text-light, #f5f5f2);
  padding-top: 9rem;
  padding-bottom: 3rem;
}
.catalog-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(119,68,131,0.35) 0%, rgba(10,10,12,0) 55%),
              radial-gradient(circle at 5% 95%, rgba(119,68,131,0.2) 0%, rgba(10,10,12,0) 50%);
  pointer-events: none;
}
.catalog-hero .container { position: relative; z-index: 2; }
.catalog-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}
.catalog-sub {
  color: var(--text-muted, #9a9a9f);
  font-size: 1.02rem;
  max-width: 620px;
}

/* ---------- Filters bar ---------- */
.catalog-filters {
  border-top: 1px solid rgba(20,20,22,0.08);
  border-bottom: 1px solid rgba(20,20,22,0.08);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 500;
  padding: 1.1rem 0;
}
.filter-search {
  position: relative;
  flex: 1 1 0px;
  max-width: 360px;
}
.filter-search i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: #9a9a9f;
}
.filter-search input {
  width: 100%;
  border: 1px solid rgba(20,20,22,0.12);
  border-radius: 100px;
  padding: 0.68rem 1.1rem 0.68rem 2.6rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: #f6f5f9;
  color: #2b2b2b;
}
.filter-search input:focus { outline: none; border-color: var(--accent); background: #fff; }

.filter-chip {
  border: 1px solid rgba(20,20,22,0.14);
  background: #fff;
  color: #2b2b2b;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem 1.15rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters-scroll { overflow-x: auto; padding-bottom: 2px; }
.filters-scroll::-webkit-scrollbar { height: 4px; }
.filter-count { color: #9a9a9f; font-size: 0.85rem; white-space: nowrap; }

/* ---------- Catalog grid ---------- */
.catalog-grid-section { background: #f6f5f9; padding-top: 3rem; padding-bottom: 6rem; }

/* ---------- Blogger card (small) ---------- */
.blogger-card {
  background: #fff;
  border: 1px solid rgba(20,20,22,0.08);
  border-radius: 18px;
  padding: 1.2rem 1rem 1.1rem;
  text-align: center;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  cursor: pointer;
}
.blogger-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(20,20,22,0.09);
  border-color: rgba(119,68,131,0.3);
}

.bc-avatar-wrap {
  position: relative;
  width: 78px; height: 78px;
  margin: 0 auto 0.7rem;
}
.bc-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  background: #eee;
}
.bc-avatar img, .bc-avatar video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-play {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  border: 2px solid #fff;
}

.bc-nickname {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: #2b2b2b;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-category {
  font-size: 0.72rem;
  color: #9a9a9f;
  margin-bottom: 0.65rem;
}

.bc-socials {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}
.bc-social-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: #fff;
}
.bc-social-icon.tg { background: #229ed9; }
.bc-social-icon.inst { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.bc-social-icon.max {
  background: transparent;
  overflow: hidden;
  padding: 0;
}
.bc-social-icon.max .bc-max-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.bc-followers {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f6f5f9;
  border-radius: 100px;
  padding: 0.32rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2b2b2b;
}
.bc-followers i { color: var(--accent); font-size: 0.8rem; }

/* Wrapper holding nickname/category/socials/followers.
   Plain block on tablet/desktop (keeps existing centered card look),
   becomes a flex column on mobile so it can sit next to the avatar. */
.bc-info { display: block; }

/* ---------- Load more ---------- */
.load-more-wrap { text-align: center; margin-top: 2.6rem; }

/* ---------- Empty state ---------- */
.catalog-empty {
  display: none;
  text-align: center;
  padding: 4rem 1rem;
  color: #9a9a9f;
}
.catalog-empty i { font-size: 2.4rem; color: var(--accent); margin-bottom: 1rem; display: block; }

/* ---------- Responsive ---------- */

/* Desktop / large screens — make cards a bit bigger, roomier and more readable
   (fewer per row: see updated col-lg-3 / col-md-4 grid classes in the markup) */
@media (min-width: 992px) {
  .blogger-card { padding: 1.7rem 1.4rem 1.5rem; border-radius: 20px; }
  .bc-avatar-wrap { width: 100px; height: 100px; margin-bottom: 1rem; }
  .bc-play { width: 26px; height: 26px; font-size: 0.7rem; }
  .bc-nickname { font-size: 1.05rem; }
  .bc-category { font-size: 0.82rem; margin-bottom: 0.9rem; }
  .bc-socials { gap: 0.55rem; margin-bottom: 0.9rem; }
  .bc-social-icon { width: 32px; height: 32px; font-size: 0.9rem; }
  .bc-followers { font-size: 0.86rem; padding: 0.4rem 1rem; }
  .bc-followers i { font-size: 0.9rem; }
}

/* Mobile — catalog switches to a one-card-per-row LIST:
   each card becomes a horizontal row (avatar left, info right)
   instead of the tall centered block used on wider screens. */
@media (max-width: 767px) {
  .catalog-hero { min-height: 34vh; padding-top: 7.5rem; }
}

@media (max-width: 575.98px) {
  .blogger-card {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
  }
  .bc-avatar-wrap { width: 64px; height: 64px; margin: 0; flex-shrink: 0; }
  .bc-play { width: 20px; height: 20px; font-size: 0.55rem; }

  .bc-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .bc-nickname { white-space: normal; }
  .bc-category { margin-bottom: 0.4rem; }
  .bc-socials { justify-content: flex-start; margin-bottom: 0.5rem; }
  .bc-followers { align-self: flex-start; }
}
