/* Discord join / online shortcodes — dark card UI matching Discord landing */

.dp-widget-join {
  display: flex;
  justify-content: center;
  margin: 1.75rem 0;
}

.dp-widget-join__card {
  width: 100%;
  max-width: 28rem;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  color: #f2f3f5;
  background: linear-gradient(165deg, #2b2d31 0%, #1e1f22 55%, #111214 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.dp-widget-join__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: #fff;
}

.dp-widget-join__logo {
  width: 1.75rem;
  height: 1.35rem;
}

.dp-widget-join__brand-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dp-widget-join__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #dbdee1;
  background: rgba(35, 165, 90, 0.15);
  border: 1px solid rgba(35, 165, 90, 0.35);
  border-radius: 999px;
}

.dp-widget-join__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #23a55a;
  box-shadow: 0 0 0 3px rgba(35, 165, 90, 0.25);
}

.dp-widget-join__text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #b5bac1;
}

.dp-widget-join__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.7rem 1.35rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  background: #5865f2;
  border: none;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(88, 101, 242, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.dp-widget-join__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.dp-widget-join__btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.dp-widget-join__error {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: #f23f43;
}

.dp-widget-online {
  margin: 1.75rem 0;
  padding: 1.25rem 1.15rem 1rem;
  color: #f2f3f5;
  background: linear-gradient(165deg, #2b2d31 0%, #1e1f22 60%, #111214 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.dp-widget-online__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.dp-widget-online__title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b5bac1;
}

.dp-widget-online__count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #dbdee1;
}

.dp-widget-online__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dp-widget-online__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.dp-widget-online__avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
}

.dp-widget-online__avatar {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  background: #313338;
}

.dp-widget-online__status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 2px solid #1e1f22;
  background: #23a55a;
}

.dp-widget-online__status--idle {
  background: #f0b232;
}

.dp-widget-online__status--dnd {
  background: #f23f43;
}

.dp-widget-online__status--offline {
  background: #80848e;
}

.dp-widget-online__name {
  overflow: hidden;
  max-width: 10rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f2f3f5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dp-widget-online__empty {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: #b5bac1;
}

.dp-widget-online__note {
  margin: 1rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #80848e;
}

@media (max-width: 520px) {
  .dp-widget-join__card {
    padding: 1.35rem 1.1rem 1.2rem;
  }

  .dp-widget-join__btn {
    width: 100%;
    min-width: 0;
  }

  .dp-widget-online__name {
    max-width: 7.5rem;
  }
}
