/**
 * Nexora — community page section styles (feed, products, rooms, members, form).
 */

.nex-cp-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nex-cp-feed__item {
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.85rem 0.95rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

a.nex-cp-feed__item:hover {
  border-color: color-mix(in srgb, var(--cp-accent) 45%, transparent);
  background: rgba(0, 0, 0, 0.32);
}

.nex-cp-feed__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  color: var(--cp-text);
  line-height: 1.3;
}

.nex-cp-feed__meta {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: var(--cp-muted);
}

.nex-cp-feed__excerpt {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: var(--cp-soft);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nex-cp-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.nex-cp-prod {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(0, 0, 0, 0.22);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.nex-cp-prod h3 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--cp-text);
  font-weight: 750;
}

.nex-cp-prod__price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--cp-accent) 50%, #e2e8f0);
}

.nex-cp-prod__desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--cp-muted);
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nex-cp-rooms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.nex-cp-room {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.85rem 0.95rem;
}

.nex-cp-room h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cp-text);
  font-weight: 750;
}

.nex-cp-room p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--cp-muted);
}

.nex-cp-room__badge {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cp-accent) 18%, transparent);
  color: #e9d5ff;
  border: 1px solid color-mix(in srgb, var(--cp-accent) 35%, transparent);
}

.nex-cp-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 0.55rem;
}

.nex-cp-member {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.55rem 0.6rem;
}

.nex-cp-member__av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--cp-accent) 35%, #1e293b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
}

.nex-cp-member__name {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--cp-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nex-cp-form {
  display: grid;
  gap: 0.65rem;
  max-width: 28rem;
  margin-top: 0.85rem;
}

.nex-cp-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--cp-muted);
}

.nex-cp-form input {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: var(--cp-text);
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
}

.nex-cp-form input:focus {
  outline: 2px solid color-mix(in srgb, var(--cp-accent) 60%, transparent);
  outline-offset: 1px;
}

.nex-cp-form button {
  min-height: 44px;
  font-weight: 750;
}

.nex-cp-room__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}

.nex-cp-room__copy {
  min-width: 0;
  flex: 1 1 10rem;
}

.nex-cp-room__form {
  margin: 0;
  display: inline-flex;
}

.nex-cp-room__btn {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .nex-cp-room__actions {
    width: 100%;
    justify-content: stretch;
  }

  .nex-cp-room__btn,
  .nex-cp-room__form {
    flex: 1 1 auto;
  }

  .nex-cp-room__btn {
    width: 100%;
  }
}

.nex-cp-locknote {
  margin: 0.85rem 0 0;
  font-size: 0.84rem;
  color: var(--cp-muted);
  line-height: 1.45;
}
