/* =========================================================
   HAITIAN CORNER COMMUNITY HUBS
========================================================= */

.hc-hub-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 88% 5%,rgba(255,255,255,.18),transparent 30%),
    linear-gradient(145deg,#003f87 0%,#0756a6 58%,#d4181c 160%);
  color:#fff;
  padding:18px 16px 16px;
  box-shadow:0 5px 18px rgba(0,63,135,.18);
}

.hc-hub-hero::after{
  content:"";
  position:absolute;
  width:150px;
  height:150px;
  border-radius:50%;
  right:-75px;
  bottom:-95px;
  background:rgba(255,255,255,.08);
}

.hc-hub-top{
  position:relative;
  z-index:2;
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.hc-hub-icon{
  width:54px;
  height:54px;
  flex:0 0 54px;
  border-radius:17px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.17);
  border:1px solid rgba(255,255,255,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16);
  font-size:28px;
}

.hc-hub-copy{
  min-width:0;
  flex:1;
}

.hc-hub-eyebrow{
  margin-bottom:3px;
  color:rgba(255,255,255,.73);
  font-size:10px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.hc-hub-name{
  font-size:23px;
  line-height:1.15;
  font-weight:850;
  letter-spacing:-.02em;
}

.hc-hub-stats{
  margin-top:5px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  color:rgba(255,255,255,.82);
  font-size:11px;
  font-weight:600;
}

.hc-hub-stat-dot{
  opacity:.55;
}

.hc-hub-switch{
  position:relative;
  z-index:2;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(0,25,58,.24);
  color:#fff;
  padding:8px 11px;
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:750;
  cursor:pointer;
  white-space:nowrap;
}

.hc-hub-description{
  position:relative;
  z-index:2;
  margin-top:12px;
  color:rgba(255,255,255,.87);
  font-size:12px;
  line-height:1.4;
}

.hc-hub-actions{
  position:relative;
  z-index:2;
  margin-top:14px;
  display:flex;
  gap:9px;
}

.hc-hub-post-btn{
  flex:1;
  min-height:42px;
  border:0;
  border-radius:13px;
  background:#fff;
  color:#003f87;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 5px 14px rgba(0,0,0,.12);
}

.hc-hub-browse-btn{
  width:44px;
  min-height:42px;
  border:1px solid rgba(255,255,255,.27);
  border-radius:13px;
  background:rgba(0,25,58,.24);
  color:#fff;
  font-size:16px;
  cursor:pointer;
}

.hc-hub-strip{
  background:#fff;
  border-bottom:.5px solid #e5e5e7;
  display:flex;
  align-items:center;
  gap:8px;
  overflow-x:auto;
  padding:10px 12px;
  scrollbar-width:none;
}

.hc-hub-strip::-webkit-scrollbar{
  display:none;
}

.hc-hub-strip-btn{
  border:1px solid #e1e4e8;
  border-radius:999px;
  background:#fff;
  color:#565a61;
  padding:7px 11px;
  display:flex;
  align-items:center;
  gap:5px;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
}

.hc-hub-strip-btn.active{
  border-color:#003f87;
  background:#eaf2fc;
  color:#003f87;
  box-shadow:0 2px 8px rgba(0,63,135,.1);
}

.hc-hub-sheet-backdrop{
  position:fixed;
  inset:0;
  z-index:10020;
  background:rgba(4,10,20,.52);
  display:flex;
  align-items:flex-end;
  animation:hcHubFade .18s ease;
}

.hc-hub-sheet{
  width:100%;
  max-height:84vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:#f5f6f8;
  border-radius:24px 24px 0 0;
  box-shadow:0 -12px 40px rgba(0,0,0,.2);
  animation:hcHubRise .24s ease;
  padding-bottom:env(safe-area-inset-bottom,0);
}

.hc-hub-sheet-head{
  background:#fff;
  border-bottom:.5px solid #e5e5e7;
  padding:10px 16px 14px;
}

.hc-hub-sheet-handle{
  width:40px;
  height:4px;
  margin:0 auto 12px;
  border-radius:999px;
  background:#d2d4d8;
}

.hc-hub-sheet-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.hc-hub-sheet-title{
  color:#17181a;
  font-size:20px;
  font-weight:850;
}

.hc-hub-sheet-close{
  width:32px;
  height:32px;
  border:0;
  border-radius:50%;
  background:#eef0f3;
  color:#555;
  font-size:16px;
  cursor:pointer;
}

.hc-hub-sheet-sub{
  margin-top:4px;
  color:#777c84;
  font-size:12px;
}

.hc-hub-list{
  padding:12px;
  overflow-y:auto;
}

.hc-hub-section-label{
  margin:7px 4px 8px;
  color:#8a8e95;
  font-size:10px;
  font-weight:850;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.hc-hub-card{
  width:100%;
  margin-bottom:9px;
  padding:12px;
  border:1px solid #e4e6e9;
  border-radius:16px;
  background:#fff;
  display:flex;
  align-items:center;
  gap:11px;
  text-align:left;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.035);
}

.hc-hub-card.active{
  border-color:#1261ad;
  box-shadow:0 0 0 2px rgba(18,97,173,.1);
}

.hc-hub-card-icon{
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:14px;
  background:#eef4fb;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:23px;
}

.hc-hub-card-main{
  flex:1;
  min-width:0;
}

.hc-hub-card-name{
  color:#1b1d20;
  font-size:14px;
  font-weight:800;
}

.hc-hub-card-meta{
  margin-top:3px;
  color:#7b8088;
  font-size:10px;
}

.hc-hub-card-check{
  width:25px;
  height:25px;
  flex:0 0 25px;
  border-radius:50%;
  background:#e8ebef;
  color:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
}

.hc-hub-card.active .hc-hub-card-check{
  background:#003f87;
  color:#fff;
}

.hc-hub-empty{
  margin:16px 12px;
  padding:42px 24px;
  border:1px solid #e8eaed;
  border-radius:20px;
  background:#fff;
  text-align:center;
  box-shadow:0 3px 12px rgba(0,0,0,.035);
}

.hc-hub-empty-icon{
  font-size:46px;
  line-height:1;
}

.hc-hub-empty-title{
  margin-top:13px;
  color:#1a1a1a;
  font-size:18px;
  font-weight:850;
}

.hc-hub-empty-copy{
  max-width:290px;
  margin:7px auto 17px;
  color:#777c84;
  font-size:13px;
  line-height:1.45;
}

.hc-hub-empty button{
  border:0;
  border-radius:999px;
  background:#d4181c;
  color:#fff;
  padding:11px 19px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.hc-composer-hub-chip{
  width:max-content;
  max-width:calc(100% - 32px);
  margin:0 16px 12px;
  border:1px solid #cddff2;
  border-radius:12px;
  background:#edf5fe;
  color:#003f87;
  padding:8px 11px;
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  font-weight:750;
}

@keyframes hcHubFade{
  from{opacity:0}
  to{opacity:1}
}

@keyframes hcHubRise{
  from{transform:translateY(100%)}
  to{transform:translateY(0)}
}


/* =========================================================
   COMPACT HUB SELECTOR
   Replaces the large community banner.
========================================================= */

#hcHubHero{
  padding:10px 12px 4px;
  background:transparent;
}

.hc-hub-compact-selector{
  width:100%;
  min-height:54px;
  margin:0;
  padding:8px 12px;
  border:1px solid #dbe4ef;
  border-radius:16px;
  background:#fff;
  color:#172033;
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  cursor:pointer;
  box-shadow:0 2px 10px rgba(15,35,65,.07);
  -webkit-tap-highlight-color:transparent;
}

.hc-hub-compact-selector:active{
  transform:scale(.992);
  background:#f8faff;
}

.hc-hub-compact-pin{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#edf4ff;
  font-size:21px;
}

.hc-hub-compact-copy{
  min-width:0;
  flex:1;
  display:block;
}

.hc-hub-compact-copy small,
.hc-hub-compact-copy strong{
  display:block;
}

.hc-hub-compact-copy small{
  color:#7b8798;
  font-size:9px;
  font-weight:850;
  letter-spacing:.11em;
  line-height:1.2;
  text-transform:uppercase;
}

.hc-hub-compact-copy strong{
  margin-top:2px;
  color:#073f82;
  font-size:16px;
  font-weight:900;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.hc-hub-compact-selector > i{
  color:#54708f;
  font-size:12px;
}
