@import "./profile.css";

.profile--group .profile__header--banner {
  background-color: var(--ssr-text-primary);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: none;
  box-shadow: none;
}

.profile--group .profile__header--banner::before,
.profile--group .profile__header--banner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.profile--group .profile__header--banner::before {
  background: rgba(0, 0, 0, 0.2);
}

.profile--group .profile__header--banner::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%);
}

.profile--group .profile__header-top {
  position: relative;
  z-index: 1;
}

.profile--group .profile__hero {
  z-index: 1;
  height: calc(var(--profile-hero-status-top) + var(--profile-hero-status-group-height));
}

.profile--group .profile__name--on-banner {
  color: var(--ssr-text-on-orange);
  text-shadow: 0 2px 4px var(--ssr-shadow-soft);
  left: calc(var(--group-comb-width) + var(--profile-hero-name-gap));
}

.profile--group .profile__avatar-wrap--comb {
  width: var(--group-comb-width);
  height: var(--group-comb-height);
  filter: drop-shadow(0 2px 4px var(--ssr-shadow-soft));
}

.profile--group .profile__status--meta {
  left: calc(var(--group-comb-width) + var(--profile-hero-status-gap));
  height: var(--profile-hero-status-group-height);
}

.profile--group .group-comb {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.profile--group .group-comb__image {
  pointer-events: none;
}

.profile--group .profile__status--meta .profile__status-shape-stroke {
  stroke: var(--ssr-text-on-orange);
}

.profile--group .profile__status--meta .profile__status-content {
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 1rem 0.55rem 0.85rem;
}

.group-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.group-meta__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.group-meta__badge--verified {
  color: var(--ssr-text-secondary);
}

.group-meta__badge--public {
  color: var(--ssr-orange-mid);
}

.group-meta__badge--members {
  color: var(--ssr-text-tertiary);
}

.group-meta__icon {
  display: block;
  flex-shrink: 0;
}

.group-info__owner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--ssr-text-tertiary);
}

.group-info__owner-handle {
  font-weight: 700;
}

.group-info__verified {
  display: inline-flex;
  color: var(--ssr-orange-mid);
}

.group-info__verified-icon {
  display: block;
}

.group-post {
  gap: 0.75rem;
  min-width: 0;
  overflow: hidden;
}

.group-post__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.group-post__avatar {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
  background: var(--ssr-page-bg);
}

.group-post__author {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ssr-text-primary);
}

.group-post__time {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a6bccb;
}

.group-post__text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ssr-text-primary);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.group-post__image-wrap {
  padding-top: 0.25rem;
}

.group-post__image {
  display: block;
  width: 100%;
  height: 12.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.profile__main .group-post + .group-post,
.profile__mobile-feed .group-post + .group-post {
  margin-top: 0;
}

.profile--group .profile__main {
  display: flex;
  flex-direction: column;
  gap: var(--profile-content-gap);
}

.profile--group .profile__main > .group-post:first-of-type {
  margin-top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
