/* LAW Community — For You V2. Isolated from the shared V1 shell. */

.community-for-you-v2[hidden],
.community-people[hidden] {
  display: none !important;
}

.community-for-you-v2 {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 12px 14px 0;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 177, 197, .2);
  border-radius: 19px;
  color: #fff7f9;
  background:
    radial-gradient(circle at 94% 16%, rgba(239, 64, 105, .2), transparent 12rem),
    linear-gradient(120deg, rgba(255, 255, 255, .075), rgba(239, 64, 105, .055)),
    rgba(31, 2, 12, .7);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 12px 30px rgba(5, 0, 2, .14);
}

.community-for-you-v2::after {
  position: absolute;
  right: -22px;
  bottom: -40px;
  width: 130px;
  height: 90px;
  border: 1px solid rgba(255, 164, 187, .12);
  border-radius: 50%;
  content: "";
  transform: rotate(-18deg);
}

.community-for-you-v2 > * {
  position: relative;
  z-index: 1;
}

.community-for-you-v2__mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 207, 219, .32);
  border-radius: 16px;
  color: #ffc1d0;
  background: linear-gradient(145deg, rgba(239, 64, 105, .35), rgba(72, 4, 28, .52));
  box-shadow: inset 0 1px rgba(255, 255, 255, .18);
}

.community-for-you-v2__mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.community-for-you-v2__copy {
  min-width: 0;
}

.community-for-you-v2__copy > span,
.community-for-you-v2__copy strong,
.community-for-you-v2__copy p {
  display: block;
}

.community-for-you-v2__copy > span {
  margin-bottom: 2px;
  color: #ff9eb6;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.community-for-you-v2__copy strong {
  overflow: hidden;
  font-family: var(--c-serif, Georgia, serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-for-you-v2__copy p {
  margin: 3px 0 0;
  overflow: hidden;
  color: #c9b5bc;
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-for-you-v2__balance {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 189, 205, .22);
  border-radius: 999px;
  color: #ffd2dc;
  background: rgba(239, 64, 105, .09);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .035em;
  white-space: nowrap;
}

body[data-community-feed-scope="for-you"] .community-feed-head {
  background:
    radial-gradient(circle at 85% 0, rgba(239, 64, 105, .13), transparent 18rem),
    linear-gradient(110deg, rgba(239, 64, 105, .085), transparent 48%),
    rgba(27, 1, 10, .9);
}

body[data-community-feed-scope="for-you"] #communityForYouTab.is-active {
  border: 1px solid rgba(255, 169, 190, .2);
  color: #fff8fa;
  background: linear-gradient(135deg, rgba(239, 64, 105, .25), rgba(255, 255, 255, .09));
  box-shadow: inset 0 1px rgba(255, 255, 255, .13), 0 7px 18px rgba(99, 4, 35, .18);
}

.community-post__recommendation {
  display: inline-flex;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 174, 194, .14);
  border-radius: 999px;
  color: #d8c5cb;
  background: rgba(239, 64, 105, .055);
  font-size: 9px;
  font-weight: 720;
  line-height: 1.25;
}

.community-post__recommendation::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff7999;
  box-shadow: 0 0 0 4px rgba(239, 64, 105, .08);
  content: "";
}

body[data-community-feed-scope="for-you"] .community-post {
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

body[data-community-feed-scope="for-you"] .community-post:hover {
  border-color: rgba(255, 159, 184, .2);
}

@media (max-width: 760px) {
  .community-for-you-v2 {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    margin: 9px 10px 0;
    padding: 10px;
    border-radius: 17px;
  }

  .community-for-you-v2__mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .community-for-you-v2__copy strong {
    font-size: 15px;
  }

  .community-for-you-v2__copy p {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .community-for-you-v2__balance {
    display: none;
  }

  .community-post__recommendation {
    min-height: 27px;
    margin-top: 8px;
    padding-inline: 9px;
    font-size: 8px;
  }

  body[data-community-feed-scope="for-you"] .community-people {
    margin-top: 10px;
  }
}

@media (max-width: 370px) {
  .community-for-you-v2 {
    margin-inline: 7px;
  }

  .community-for-you-v2__copy strong {
    font-size: 14px;
  }

  .community-post__recommendation {
    width: fit-content;
    max-width: calc(100vw - 64px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-community-feed-scope="for-you"] .community-post {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .community-for-you-v2 {
    background: #24030d;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
