/* ============================================================
   BlockHangs Website CSS
   Primary color: #6C37F4 (purple)
   ============================================================ */

:root {
  --bh-primary:       #6C37F4;
  --bh-primary-dark:  #5528D4;
  --bh-primary-light: #EEE8FE;
  --bh-dark:          #1A1A2E;
  --bh-text:          #2D2D3A;
  --bh-muted:         #6B7280;
  --bh-border:        #E5E7EB;
  --bh-bg:            #F8F9FC;
  --bh-white:         #FFFFFF;
  --bh-radius:        12px;
  --bh-radius-sm:     8px;
  --bh-shadow:        0 2px 12px rgba(0,0,0,.07);
  --bh-shadow-md:     0 4px 24px rgba(0,0,0,.10);
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--bh-text);
  background: var(--bh-bg);
}

/* ── Logo ───────────────────────────────────────────────── */
.bh-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #1A6BFF;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(26,107,255,.35);
  text-decoration: none;
  flex-shrink: 0;
}
.bh-logo-badge-lg {
  width: 56px;
  height: 56px;
  font-size: 22px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(26,107,255,.4);
}
.bh-logo-badge-hero {
  width: 100px;
  height: 100px;
  font-size: 38px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(26,107,255,.5);
}

/* ── Navbar ─────────────────────────────────────────────── */
.bh-navbar {
  background: var(--bh-white);
  border-bottom: 1px solid var(--bh-border);
  padding: 12px 0;
  z-index: 1000;
}
.bh-navbar .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--bh-text);
  padding: 6px 14px;
  border-radius: var(--bh-radius-sm);
  transition: background .15s, color .15s;
}
.bh-navbar .nav-link:hover,
.bh-navbar .nav-link.active {
  background: var(--bh-primary-light);
  color: var(--bh-primary);
}

/* ── Buttons ─────────────────────────────────────────────── */
.bh-btn-primary {
  background: var(--bh-primary);
  color: #fff;
  border: none;
  border-radius: var(--bh-radius-sm);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  transition: background .15s, transform .1s;
}
.bh-btn-primary:hover {
  background: var(--bh-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}
.bh-btn-outline {
  background: transparent;
  color: var(--bh-primary);
  border: 1.5px solid var(--bh-primary);
  border-radius: var(--bh-radius-sm);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  transition: all .15s;
}
.bh-btn-outline:hover {
  background: var(--bh-primary-light);
  color: var(--bh-primary);
}
.bh-btn-ghost {
  background: transparent;
  border: none;
  color: var(--bh-text);
  font-weight: 500;
}
.bh-btn-outline-sm {
  background: transparent;
  color: var(--bh-primary);
  border: 1.5px solid var(--bh-primary);
  border-radius: var(--bh-radius-sm);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 16px;
  text-decoration: none;
  display: inline-block;
  transition: all .15s;
}
.bh-btn-outline-sm:hover {
  background: var(--bh-primary-light);
  color: var(--bh-primary);
}

/* ── Cards ─────────────────────────────────────────────── */
.bh-card {
  background: var(--bh-white);
  border-radius: var(--bh-radius);
  box-shadow: var(--bh-shadow);
  padding: 24px;
}
.bh-card-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--bh-muted);
  margin-bottom: 12px;
}

/* ── Hero ─────────────────────────────────────────────── */
.bh-hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #3B1FA0 60%, #6C37F4 100%);
  padding: 90px 0 80px;
  color: #fff;
}
.bh-hero-sm {
  padding: 60px 0;
}
.bh-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.bh-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  margin-top: 16px;
  max-width: 520px;
}
.bh-hero-img { max-width: 380px; filter: drop-shadow(0 16px 48px rgba(0,0,0,.4)); }

/* Badge / pill */
.bh-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: .04em;
}

/* Stats in hero */
.bh-stat-number { font-size: 1.5rem; font-weight: 700; color: #fff; }
.bh-stat-label  { font-size: 12px; color: rgba(255,255,255,.65); }
.bh-stat-divider { width: 1px; background: rgba(255,255,255,.25); }

/* ── Sections ─────────────────────────────────────────── */
.bh-section     { padding: 72px 0; }
.bh-section-alt { background: var(--bh-white); }
.bh-section-dark { background: linear-gradient(135deg, #1A1A2E, #3B1FA0); }
.bh-section-title   { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.bh-section-subtitle { color: var(--bh-muted); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ── Feature Cards ──────────────────────────────────── */
.bh-feature-card {
  background: var(--bh-white);
  border-radius: var(--bh-radius);
  padding: 28px 24px;
  box-shadow: var(--bh-shadow);
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.bh-feature-card:hover { transform: translateY(-4px); box-shadow: var(--bh-shadow-md); }
.bh-feature-icon {
  width: 52px; height: 52px;
  background: var(--bh-primary-light);
  color: var(--bh-primary);
  border-radius: var(--bh-radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.bh-feature-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.bh-feature-text  { font-size: 14px; color: var(--bh-muted); margin-bottom: 14px; }

/* ── Steps ──────────────────────────────────────────── */
.bh-step-number {
  width: 56px; height: 56px;
  background: var(--bh-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  margin: 0 auto 16px;
}
.bh-step-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.bh-step-text  { font-size: 14px; color: var(--bh-muted); }

/* How it works steps */
.bh-hiw-step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}
.bh-hiw-step .bh-step-number {
  flex-shrink: 0;
  width: 44px; height: 44px;
  font-size: 18px;
  margin: 0;
}

/* ── Stat Cards ──────────────────────────────────────── */
.bh-stat-card {
  background: var(--bh-primary-light);
  border-radius: var(--bh-radius);
  padding: 28px 20px;
  text-align: center;
}
.bh-stat-card .bh-stat-number { color: var(--bh-primary); font-size: 1.5rem; }
.bh-stat-card .bh-stat-label  { color: var(--bh-muted); font-size: 13px; }

/* ── Auth Pages ──────────────────────────────────────── */
.bh-auth-body {
  background: linear-gradient(135deg, #1A1A2E, #3B1FA0);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px 16px;
}
.bh-auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 16px;
}
.bh-auth-card {
  background: var(--bh-white);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.bh-auth-title    { font-size: 1.5rem; font-weight: 700; color: var(--bh-dark); }
.bh-auth-subtitle { font-size: 14px; color: var(--bh-muted); margin-top: 4px; }
.bh-auth-footer   { font-size: 14px; color: var(--bh-muted); }
.bh-terms-text    { font-size: 12px; color: var(--bh-muted); margin-bottom: 16px; }

/* ── Form inputs ──────────────────────────────────────── */
.bh-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--bh-text);
  margin-bottom: 6px;
  display: block;
}
.bh-input {
  border: 1.5px solid var(--bh-border);
  border-radius: var(--bh-radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  color: var(--bh-text);
  background: #fff;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.bh-input:focus {
  outline: none;
  border-color: var(--bh-primary);
  box-shadow: 0 0 0 3px rgba(108,55,244,.12);
}
.bh-input-prefix {
  background: var(--bh-bg);
  border: 1.5px solid var(--bh-border);
  border-right: none;
  color: var(--bh-muted);
  font-size: 14px;
}
.bh-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--bh-muted);
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}
.bh-link      { color: var(--bh-primary); text-decoration: none; font-weight: 500; }
.bh-link:hover { text-decoration: underline; }
.bh-link-sm   { font-size: 12px; color: var(--bh-primary); text-decoration: none; }
.bh-link-dark { color: var(--bh-dark); text-decoration: none; font-weight: 600; }
.bh-link-dark:hover { color: var(--bh-primary); }

/* ── Page Wrapper ──────────────────────────────────────── */
.bh-page-wrapper { background: var(--bh-bg); min-height: 70vh; }
.bh-page-title   { font-size: 2rem; font-weight: 700; }

/* ── Search Box ──────────────────────────────────────────── */
.bh-search-box {
  display: flex;
  align-items: center;
  background: var(--bh-white);
  border: 1.5px solid var(--bh-border);
  border-radius: var(--bh-radius-sm);
  padding: 8px 16px;
  min-width: 260px;
}
.bh-search-inline {
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  width: 100%;
  background: transparent;
}
.bh-search-input {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

/* ── Filter buttons (sidebar) ──────────────────────────── */
.bh-filter-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: var(--bh-radius-sm);
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  color: var(--bh-text);
  cursor: pointer;
  transition: background .15s;
  margin-bottom: 2px;
}
.bh-filter-btn:hover  { background: var(--bh-bg); }
.bh-filter-btn.active { background: var(--bh-primary-light); color: var(--bh-primary); font-weight: 600; }

/* ── Avatars ──────────────────────────────────────────── */
.bh-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bh-primary-light);
}
.bh-avatar-sm {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.bh-avatar-xs {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bh-primary-light);
  color: var(--bh-primary);
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bh-avatar-sm { /* for text avatars */
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bh-primary-light);
  color: var(--bh-primary);
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bh-avatar-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bh-primary-light);
  color: var(--bh-primary);
  font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}

/* ── Profile sidebar card ────────────────────────────── */
.bh-profile-card .bh-tagline { font-size: 13px; color: var(--bh-muted); }

/* ── Post Cards ──────────────────────────────────────── */
.bh-post-card { transition: box-shadow .2s; }
.bh-post-card:hover { box-shadow: var(--bh-shadow-md); }
.bh-post-image {
  width: 100%; height: 180px;
  object-fit: cover;
  border-radius: var(--bh-radius-sm);
}
.bh-post-body { font-size: 14px; line-height: 1.6; }

/* Type badges */
.bh-type-badge {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: capitalize;
}
.bh-type-post        { background: #EFF6FF; color: #1D4ED8; }
.bh-type-opportunity { background: #F0FDF4; color: #15803D; }
.bh-type-event       { background: #FFF7ED; color: #C2410C; }
.bh-type-community   { background: var(--bh-primary-light); color: var(--bh-primary); }

/* ── Community Cards ─────────────────────────────────── */
.bh-community-card {
  background: var(--bh-white);
  border-radius: var(--bh-radius);
  box-shadow: var(--bh-shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.bh-community-card:hover { transform: translateY(-4px); box-shadow: var(--bh-shadow-md); }
.bh-community-cover {
  width: 100%; height: 140px; object-fit: cover;
}
.bh-community-cover-placeholder {
  width: 100%; height: 140px;
  background: linear-gradient(135deg, var(--bh-primary-light), var(--bh-primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: #fff;
}
.bh-community-body { padding: 16px; }
.bh-member-count   { font-size: 13px; color: var(--bh-muted); }
.bh-join-btn       { font-size: 13px; font-weight: 600; color: var(--bh-primary); }

/* ── Job/Event Cards ─────────────────────────────────── */
.bh-job-card {
  background: var(--bh-white);
  border-radius: var(--bh-radius);
  box-shadow: var(--bh-shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.bh-job-card:hover { transform: translateY(-4px); box-shadow: var(--bh-shadow-md); }
.bh-job-cover {
  width: 100%; height: 130px; object-fit: cover;
}
.bh-event-cover-placeholder {
  width: 100%; height: 130px;
  background: linear-gradient(135deg, #FFF7ED, #FDBA74);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #C2410C;
}
.bh-job-body { padding: 16px; }

/* ── People Cards ────────────────────────────────────── */
.bh-person-card {
  background: var(--bh-white);
  border-radius: var(--bh-radius);
  box-shadow: var(--bh-shadow);
  padding: 24px 20px;
  transition: transform .2s, box-shadow .2s;
}
.bh-person-card:hover { transform: translateY(-4px); box-shadow: var(--bh-shadow-md); }
.bh-person-avatar {
  width: 72px; height: 72px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bh-primary-light);
  margin: 0 auto;
  display: block;
}
.bh-person-avatar-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bh-primary-light);
  color: var(--bh-primary);
  font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.bh-person-tagline { font-size: 13px; color: var(--bh-muted); }
.bh-tag    { background: var(--bh-primary-light); color: var(--bh-primary); font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 20px; }
.bh-tag-xs { background: var(--bh-bg); color: var(--bh-muted); font-size: 11px; padding: 2px 8px; border-radius: 20px; }

/* ── Profile Pages ───────────────────────────────────── */
.bh-profile-banner { height: 180px; background: linear-gradient(135deg, #1A1A2E, #6C37F4); overflow: hidden; }
.bh-banner-img     { width: 100%; height: 100%; object-fit: cover; }
.bh-banner-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1A1A2E, #6C37F4); }
.bh-profile-header {
  padding: 0 0 24px;
  margin-top: -36px;
  position: relative;
}
.bh-profile-avatar-wrap { flex-shrink: 0; }
.bh-profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%; object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--bh-shadow);
}
.bh-profile-avatar-placeholder {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--bh-primary-light);
  color: var(--bh-primary);
  font-size: 36px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 4px solid #fff;
  box-shadow: var(--bh-shadow);
}
.bh-timeline-item { padding: 12px 0; border-bottom: 1px solid var(--bh-border); }
.bh-timeline-item:last-child { border-bottom: none; }
.bh-social-row { text-decoration: none; color: var(--bh-text); font-size: 14px; }
.bh-social-row:hover { color: var(--bh-primary); }

/* ── Detail Pages ────────────────────────────────────── */
.bh-detail-title  { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.bh-content-body  { font-size: 15px; line-height: 1.8; color: var(--bh-text); }

/* ── Legal Pages ─────────────────────────────────────── */
.bh-legal-card h5 { font-size: 16px; font-weight: 600; margin-top: 28px; margin-bottom: 8px; color: var(--bh-dark); }
.bh-legal-card h5:first-child { margin-top: 0; }
.bh-legal-card p  { font-size: 14px; color: var(--bh-muted); line-height: 1.7; }

/* ── Empty State ─────────────────────────────────────── */
.bh-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--bh-muted);
}

/* ── Footer ──────────────────────────────────────────── */
.bh-footer {
  background: var(--bh-dark);
  color: rgba(255,255,255,.75);
}
.bh-footer-heading  { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.bh-footer-text     { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.7; }
.bh-footer-links    { margin: 0; }
.bh-footer-links li { margin-bottom: 10px; }
.bh-footer-links a  { font-size: 13px; color: rgba(255,255,255,.6); text-decoration: none; transition: color .15s; }
.bh-footer-links a:hover { color: #fff; }
.bh-footer-divider  { border-color: rgba(255,255,255,.1); margin: 0; }
.bh-footer-copy     { font-size: 12px; color: rgba(255,255,255,.4); }
.bh-social-icon     { color: rgba(255,255,255,.5); font-size: 18px; text-decoration: none; transition: color .15s; }
.bh-social-icon:hover { color: #fff; }

/* ── Navbar Avatar ───────────────────────────────────── */
.bh-avatar-sm.rounded-circle { object-fit: cover; }

/* ── Pagination override ─────────────────────────────── */
.pagination .page-link {
  border-radius: var(--bh-radius-sm) !important;
  margin: 0 2px;
  color: var(--bh-primary);
  border-color: var(--bh-border);
  font-size: 13px;
}
.pagination .page-item.active .page-link {
  background: var(--bh-primary);
  border-color: var(--bh-primary);
  color: #fff;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 767px) {
  .bh-hero        { padding: 60px 0 50px; }
  .bh-section     { padding: 48px 0; }
  .bh-section-title { font-size: 1.6rem; }
  .bh-auth-card   { padding: 28px 20px; }
  .bh-profile-header { flex-direction: column; align-items: flex-start; }
}
