/* Hercules BuddyPress community integration */
:root{
  --hercules-community-accent: var(--hercules-accent, #2563eb);
  --hercules-community-ink: #172033;
  --hercules-community-muted: #667085;
  --hercules-community-border: #e3e8ef;
  --hercules-community-bg: #ffffff;
  --hercules-community-soft: #f8fafc;
}

.hercules-community-hub{
  width:min(1180px,calc(100% - 36px));
  margin:48px auto 72px;
}
.hercules-community-hub__intro{
  max-width:760px;
  margin-bottom:28px;
}
.hercules-community-hub__eyebrow{
  display:inline-block;
  margin-bottom:10px;
  color:var(--hercules-community-accent);
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.hercules-community-hub__intro h2{
  margin:0 0 12px;
  color:var(--hercules-community-ink);
  font-size:clamp(32px,5vw,54px);
  line-height:1.02;
}
.hercules-community-hub__intro p{
  margin:0;
  color:var(--hercules-community-muted);
  font-size:16px;
  line-height:1.7;
}
.hercules-community-hub__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.hercules-community-card{
  padding:24px;
  border:1px solid var(--hercules-community-border);
  border-radius:18px;
  background:var(--hercules-community-bg);
  box-shadow:0 10px 28px rgba(15,23,42,.05);
}
.hercules-community-card h3{
  margin:0 0 8px;
  color:var(--hercules-community-ink);
  font-size:21px;
}
.hercules-community-card p{
  margin:0 0 16px;
  color:var(--hercules-community-muted);
  line-height:1.65;
}
.hercules-community-card a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--hercules-community-accent);
  font-weight:800;
  text-decoration:none;
}
.hercules-community-card a:hover{
  text-decoration:underline;
}

/* BuddyPress Nouveau */
.hercules-buddypress-page #buddypress,
.hercules-buddypress-page .buddypress-wrap,
body.buddypress .buddypress-wrap{
  width:min(1180px,calc(100% - 36px));
  max-width:1180px;
  margin:32px auto 72px;
  color:var(--hercules-community-ink);
}
.buddypress-wrap .bp-navs,
.buddypress-wrap .item-list-tabs{
  margin:0 0 22px;
  border:1px solid var(--hercules-community-border);
  border-radius:14px;
  background:var(--hercules-community-soft);
  overflow:hidden;
}
.buddypress-wrap .bp-navs ul,
.buddypress-wrap .item-list-tabs ul{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin:0;
  padding:8px;
  list-style:none;
}
.buddypress-wrap .bp-navs li a,
.buddypress-wrap .item-list-tabs li a{
  display:block;
  padding:9px 12px;
  border-radius:9px;
  color:var(--hercules-community-ink);
  text-decoration:none;
  font-weight:700;
}
.buddypress-wrap .bp-navs li.current a,
.buddypress-wrap .bp-navs li.selected a,
.buddypress-wrap .item-list-tabs li.current a,
.buddypress-wrap .item-list-tabs li.selected a{
  background:var(--hercules-community-accent);
  color:#fff;
}
.buddypress-wrap .item-list,
.buddypress-wrap ul.item-list{
  margin:0;
  padding:0;
  list-style:none;
}
.buddypress-wrap ul.item-list > li,
.buddypress-wrap .members-list > li,
.buddypress-wrap .groups-list > li,
.buddypress-wrap .activity-list > li{
  margin:0 0 14px;
  padding:18px;
  border:1px solid var(--hercules-community-border);
  border-radius:14px;
  background:#fff;
}
.buddypress-wrap .item-avatar img.avatar{
  border-radius:50%;
}
.buddypress-wrap button,
.buddypress-wrap input[type="submit"],
.buddypress-wrap .generic-button a,
.buddypress-wrap .button{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 15px;
  border:0;
  border-radius:9px;
  background:var(--hercules-community-accent);
  color:#fff!important;
  font-weight:800;
  text-decoration:none!important;
  cursor:pointer;
}
.buddypress-wrap input[type="text"],
.buddypress-wrap input[type="email"],
.buddypress-wrap input[type="password"],
.buddypress-wrap input[type="search"],
.buddypress-wrap select,
.buddypress-wrap textarea{
  width:100%;
  max-width:100%;
  padding:10px 12px;
  border:1px solid var(--hercules-community-border);
  border-radius:9px;
  background:#fff;
  color:var(--hercules-community-ink);
  box-sizing:border-box;
}
.buddypress-wrap input:focus,
.buddypress-wrap select:focus,
.buddypress-wrap textarea:focus{
  border-color:var(--hercules-community-accent);
  outline:0;
  box-shadow:0 0 0 3px rgba(37,99,235,.10);
}
.buddypress-wrap .bp-feedback,
.buddypress-wrap .bp-messages{
  padding:12px 14px;
  border:1px solid var(--hercules-community-border);
  border-radius:10px;
  background:var(--hercules-community-soft);
}
.buddypress-wrap .activity-update-form,
.buddypress-wrap #whats-new-form{
  margin-bottom:22px;
  padding:18px;
  border:1px solid var(--hercules-community-border);
  border-radius:14px;
  background:#fff;
}

@media(max-width:760px){
  .hercules-community-hub__grid{
    grid-template-columns:1fr;
  }
  .hercules-buddypress-page #buddypress,
  .hercules-buddypress-page .buddypress-wrap,
  body.buddypress .buddypress-wrap{
    width:calc(100% - 24px);
  }
}
