.posts-page-shell {
  width: min(1040px, calc(100% - 28px));
  margin: 22px auto 50px;
}

.posts-main-card {
  overflow: hidden;
  border: 1px solid #c9d8e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(55, 78, 98, .08);
}

.posts-page-header {
  padding: 19px 22px 17px;
  border-bottom: 1px solid #d7e2ec;
  background:
    linear-gradient(
      180deg,
      #f8fbfe 0%,
      #edf4fa 100%
    );
}

.posts-page-header h1 {
  margin: 0;
  color: #4a6579;
  font-size: 26px;
  line-height: 1.2;
}

.posts-page-header p {
  margin: 5px 0 0;
  color: #7a8c99;
  font-size: 15px;
}

.posts-list {
  display: block;
}

.community-post-card {
  padding: 0;
  border-bottom: 1px solid #dbe5ed;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition:
    background .15s ease,
    box-shadow .15s ease;
}

.community-post-card:hover,
.community-post-card:focus {
  background: #fbfdff;
  box-shadow:
    inset 4px 0 0 #7b4db5;
}

.community-post-card:last-child {
  border-bottom: 0;
}

.community-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 48px;
  padding: 8px 18px;
  border-bottom: 1px solid #edf2f6;
  background: #f7fafc;
}

.post-community-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #4e7288;
  text-decoration: none;
}

.post-community-link:hover strong {
  text-decoration: underline;
}

.post-community-link small,
.post-author small {
  display: block;
  margin-bottom: 1px;
  color: #8796a1;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: lowercase;
}

.post-community-link strong {
  display: block;
  overflow: hidden;
  max-width: 560px;
  color: #496d84;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-community-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfdae4;
  border-radius: 6px;
  background: #fff;
  font-size: 17px;
}

.post-date {
  flex: 0 0 auto;
  color: #8a98a3;
  font-size: 13px;
  white-space: nowrap;
}

.community-post-content {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 18px 19px;
}

.post-author {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  align-self: start;
  color: #55788e;
  text-decoration: none;
}

.post-author img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #c9d6e1;
  border-radius: 4px;
  object-fit: cover;
  background: #edf3f8;
}

.post-author strong {
  display: block;
  overflow-wrap: anywhere;
  color: #55788e;
  font-size: 14px;
  line-height: 1.3;
}

.post-author:hover strong {
  text-decoration: underline;
}

.post-topic-area {
  min-width: 0;
}

.post-topic-label {
  display: block;
  margin-bottom: 3px;
  color: #8998a3;
  font-size: 12px;
  text-transform: lowercase;
}

.post-topic-area h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.post-topic-area h2 a {
  color: #456f8b;
  text-decoration: none;
}

.post-topic-area h2 a:hover {
  text-decoration: underline;
}

.post-topic-area p {
  margin: 8px 0 0;
  color: #5f6f7a;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.post-topic-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px dotted #d6e0e8;
  color: #87949e;
  font-size: 13px;
}

.open-topic-link {
  color: #6d4fa3;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.open-topic-link:hover {
  text-decoration: underline;
}

.posts-status {
  padding: 36px 22px;
  color: #788995;
  font-size: 15px;
  text-align: center;
}


.posts-loading-spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.posts-loading-spinner-wrap[hidden] {
  display: none !important;
}

.posts-loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(228, 76, 154, 0.20);
  border-top-color: #e44c9a;
  border-radius: 50%;
  animation: orkutis-posts-loading-spin .7s linear infinite;
}

@keyframes orkutis-posts-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .posts-loading-spinner {
    animation-duration: 1.4s;
  }
}

.posts-error {
  color: #ae4848;
}

.posts-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 17px 12px;
  border-top: 1px solid #d9e3eb;
  background: #f8fbfd;
}

.posts-pagination button {
  min-width: 31px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #c6d5e1;
  border-radius: 4px;
  background: #fff;
  color: #53758b;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.posts-pagination button:hover:not(:disabled) {
  border-color: #8f75b4;
  background: #f4effb;
  color: #684692;
}

.posts-pagination button.active {
  border-color: #7451a5;
  background: #7b4db5;
  color: #fff;
  font-weight: 700;
}

.posts-pagination button:disabled {
  opacity: .45;
  cursor: default;
}

.pagination-dots {
  padding: 0 3px;
  color: #81909b;
}

@media (max-width: 720px) {
  .posts-page-shell {
    width: calc(100% - 16px);
    margin-top: 12px;
  }

  .posts-page-header {
    padding: 15px 14px;
  }

  .posts-page-header h1 {
    font-size: 23px;
  }

  .community-post-meta {
    align-items: flex-start;
    padding: 9px 12px;
  }

  .post-community-link strong {
    max-width: 58vw;
  }

  .post-date {
    padding-top: 3px;
  }

  .community-post-content {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 12px 16px;
  }

  .post-author img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .post-topic-area h2 {
    font-size: 18px;
  }

  .post-topic-footer {
    align-items: flex-start;
  }
}


/* ===== Comunidade com foto no mesmo tamanho do autor ===== */
.post-community-link {
  gap: 9px;
}

.post-community-image {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #c9d6e1;
  border-radius: 4px;
  object-fit: cover;
  background: #edf3f8;
}

.post-community-link > strong {
  display: block;
  overflow: hidden;
  max-width: 560px;
  color: #496d84;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Tópico aberto dentro de posts.php ===== */
.open-topic-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.posts-inline-thread {
  border-top: 1px solid #ccdbe6;
  background: #f7fafc;
}

.posts-thread-inner {
  padding: 14px 18px 18px;
}

.posts-thread-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #536f82;
  font-size: 15px;
}

.posts-thread-close {
  width: 28px;
  height: 28px;
  border: 1px solid #ccd8e1;
  border-radius: 4px;
  background: #fff;
  color: #71828d;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.posts-thread-loading,
.posts-thread-empty,
.posts-thread-members-only {
  padding: 16px;
  border: 1px solid #d9e4ec;
  border-radius: 5px;
  background: #fff;
  color: #7b8b96;
  font-size: 14px;
  text-align: center;
}

.posts-thread-replies {
  display: block;
}

.posts-thread-reply {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 15px;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid #d8e3eb;
  border-radius: 5px;
  background: #fff;
}

.posts-thread-reply-nested {
  margin-left: 34px;
  border-left: 3px solid #b8a3d2;
}

.posts-thread-author a {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #54778d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.posts-thread-author img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #c9d6e1;
  border-radius: 4px;
  object-fit: cover;
}

.posts-thread-body {
  min-width: 0;
}

.posts-thread-date {
  margin-bottom: 5px;
  color: #8a98a3;
  font-size: 12px;
}

.posts-thread-body p {
  margin: 0;
  color: #52636f;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.posts-thread-context {
  margin-bottom: 5px;
  color: #7b688e;
  font-size: 13px;
}

.posts-thread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.posts-thread-action {
  border: 1px solid #c9d6e0;
  border-radius: 4px;
  padding: 4px 8px;
  background: #f8fbfd;
  color: #58798e;
  font-size: 13px;
  cursor: pointer;
}

.posts-thread-action.danger {
  color: #a84a4a;
}

.posts-inline-reply-section {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d6e1e9;
  border-radius: 5px;
  background: #fff;
}

.posts-inline-reply-section textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  resize: vertical;
  box-sizing: border-box;
  border: 1px solid #c9d7e2;
  border-radius: 5px;
  padding: 9px 10px;
  background: #fff;
  color: #435762;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
}

.posts-inline-reply-section textarea:focus {
  border-color: #8b70ad;
  box-shadow: 0 0 0 2px rgba(123, 77, 181, .10);
}

.posts-inline-reply-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  color: #84939e;
  font-size: 12px;
}

.posts-inline-submit {
  border: 1px solid #6b469d;
  border-radius: 4px;
  padding: 6px 12px;
  background: #7b4db5;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.posts-inline-submit:disabled {
  opacity: .55;
  cursor: default;
}

.posts-inline-reply-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 7px 9px;
  border: 1px solid #dccfed;
  border-radius: 4px;
  background: #f7f2fc;
  color: #6f568b;
  font-size: 13px;
}

.posts-inline-reply-notice[hidden] {
  display: none;
}

.posts-inline-reply-notice button {
  border: 0;
  background: transparent;
  color: #6f568b;
  font-size: 20px;
  cursor: pointer;
}

.posts-inline-message {
  min-height: 15px;
  margin-top: 6px;
  font-size: 13px;
}

.posts-inline-message.error {
  color: #b44848;
}

@media (max-width: 720px) {
  .post-community-image {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .posts-thread-inner {
    padding: 11px 10px 14px;
  }

  .posts-thread-reply {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .posts-thread-reply-nested {
    margin-left: 18px;
  }

  .posts-thread-author img {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}


/* ===== Paginação das respostas dentro do dropdown ===== */
.posts-inline-replies-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid #e1e8ee;
}

.posts-inline-replies-pagination[hidden] {
  display: none;
}

.posts-inline-replies-pagination button {
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #c7d5df;
  border-radius: 4px;
  background: #fff;
  color: #55778c;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.posts-inline-replies-pagination button:hover:not(:disabled) {
  border-color: #8d73ad;
  background: #f5f0fa;
  color: #6c4c91;
}

.posts-inline-replies-pagination button.active {
  border-color: #7451a5;
  background: #7b4db5;
  color: #fff;
  font-weight: 700;
}

.posts-inline-replies-pagination button:disabled {
  opacity: .45;
  cursor: default;
}

.posts-inline-pagination-dots {
  padding: 0 3px;
  color: #87949e;
  font-size: 14px;
}


/* ===== Imagem publicada no tópico ===== */
.post-topic-image-button {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 12px 0 2px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.post-topic-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 420px;
  border: 1px solid #d4dee7;
  border-radius: 6px;
  object-fit: contain;
  background: #f4f7f9;
}

.post-topic-image-button:hover .post-topic-image {
  box-shadow: 0 2px 10px rgba(54, 72, 87, .13);
}

@media (max-width: 720px) {
  .post-topic-image-button {
    max-width: 100%;
  }

  .post-topic-image {
    width: 100%;
    max-height: 360px;
  }
}


/* ===== Ajuste de fontes no mobile ===== */
@media (max-width: 720px) {
  .post-author strong {
    font-size: 16px;
    line-height: 1.35;
  }

  .post-topic-area h2 {
    font-size: 20px;
    line-height: 1.35;
  }

  .post-topic-area p {
    font-size: 17px;
    line-height: 1.55;
  }

  .post-topic-footer {
    font-size: 15px;
  }

  .open-topic-link {
    font-size: 16px;
    font-weight: 700;
  }
}


/* ===== Nova conexão de amigo no feed ===== */
.friend-connection-feed-card {
  overflow: hidden;
}

.friend-connection-feed-label {
  color: #7a8796;
  font-size: 14px;
  font-weight: 700;
  text-transform: lowercase;
}

.friend-connection-feed-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.friend-connection-avatars {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.friend-connection-profile {
  display: block;
  text-decoration: none;
}

.friend-connection-profile img {
  display: block;
  width: 58px;
  height: 58px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #eef3f8;
  box-shadow: 0 0 0 1px #cfd9e5;
}

.friend-connection-link-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 -4px;
  z-index: 2;
  border-radius: 50%;
  background: #f3e9fb;
  color: #7b4db5;
  font-size: 23px;
  font-weight: 700;
  box-shadow: 0 0 0 2px #fff;
}

.friend-connection-feed-text {
  min-width: 0;
  flex: 1;
}

.friend-connection-headline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: baseline;
  color: #526273;
  font-size: 17px;
  line-height: 1.45;
}

.friend-connection-name {
  color: #3d5f98;
  font-weight: 700;
  text-decoration: none;
}

.friend-connection-name:hover,
.friend-connection-profile-name:hover {
  text-decoration: underline;
}

.friend-connection-profiles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  color: #8a97a5;
  font-size: 14px;
}

.friend-connection-profile-name {
  color: #6c7f93;
  text-decoration: none;
}

@media (max-width: 720px) {
  .friend-connection-feed-content {
    gap: 12px;
    padding: 13px 10px;
  }

  .friend-connection-profile img {
    width: 50px;
    height: 50px;
  }

  .friend-connection-link-symbol {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .friend-connection-headline {
    font-size: 17px;
  }
}


/* ===== Recados e depoimentos aceitos pelos amigos ===== */
.accepted-profile-activity-card {
  overflow: hidden;
}

.accepted-profile-activity-label {
  color: #7a8796;
  font-size: 14px;
  font-weight: 700;
  text-transform: lowercase;
}

.accepted-profile-activity-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.accepted-profile-activity-avatars {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.accepted-profile-activity-profile {
  display: block;
  text-decoration: none;
}

.accepted-profile-activity-profile img {
  display: block;
  width: 58px;
  height: 58px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #eef3f8;
  box-shadow: 0 0 0 1px #cfd9e5;
}

.accepted-profile-activity-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  margin: 0 -2px;
  color: #7b4db5;
  font-size: 22px;
  font-weight: 700;
}

.accepted-profile-activity-text {
  min-width: 0;
  flex: 1;
}

.accepted-profile-activity-headline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: baseline;
  color: #526273;
  font-size: 17px;
  line-height: 1.45;
}

.accepted-profile-activity-name {
  color: #3d5f98;
  font-weight: 700;
  text-decoration: none;
}

.accepted-profile-activity-name:hover {
  text-decoration: underline;
}

.accepted-profile-activity-message {
  margin-top: 7px;
  padding: 8px 10px;
  border-left: 3px solid #d9c5ef;
  background: #f8f5fb;
  color: #566577;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .accepted-profile-activity-content {
    gap: 12px;
    padding: 13px 10px;
  }

  .accepted-profile-activity-profile img {
    width: 50px;
    height: 50px;
  }

  .accepted-profile-activity-headline {
    font-size: 17px;
  }

  .accepted-profile-activity-message {
    font-size: 16px;
  }
}


/* ===== Imagens de álbuns responsivas no feed ===== */
.friend-photo-feed-card,
.friend-photo-feed-card .community-post-content,
.friend-photo-feed-card .friend-photo-feed-area {
  min-width: 0;
  max-width: 100%;
}

.friend-photo-feed-image-link {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 10px 0 6px;
}

.friend-photo-feed-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .friend-photo-feed-card .community-post-content {
    width: 100%;
  }

  .friend-photo-feed-image-link {
    width: 100%;
    max-width: 100%;
  }

  .friend-photo-feed-image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}


/* ===== Comentários de fotos diretamente no feed ===== */
.friend-photo-feed-footer {
  align-items: center;
}

.friend-photo-feed-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-photo-comment-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.feed-photo-comments-panel {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e1e7ee;
}

.feed-photo-comments-heading {
  margin-bottom: 8px;
  color: #526273;
  font-size: 15px;
}

.feed-photo-comments-loading,
.feed-photo-comments-empty {
  padding: 8px 0;
  color: #7b8795;
  font-size: 15px;
}

.feed-photo-comments-list {
  display: grid;
  gap: 8px;
}

.feed-photo-comment-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #edf1f5;
}

.feed-photo-comment-avatar-link {
  flex: 0 0 auto;
}

.feed-photo-comment-avatar {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef3f8;
}

.feed-photo-comment-body {
  min-width: 0;
  flex: 1;
}

.feed-photo-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  color: #8a97a5;
  font-size: 13px;
}

.feed-photo-comment-author {
  color: #3d5f98;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.feed-photo-comment-author:hover {
  text-decoration: underline;
}

.feed-photo-comment-body p {
  margin: 3px 0 0;
  color: #4f5f70;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.feed-photo-comment-form {
  margin-top: 10px;
}

.feed-photo-comment-form textarea {
  display: block;
  width: 100%;
  min-height: 68px;
  resize: vertical;
  box-sizing: border-box;
  padding: 8px 9px;
  border: 1px solid #cfd9e5;
  border-radius: 5px;
  outline: none;
  font: inherit;
  font-size: 15px;
}

.feed-photo-comment-form textarea:focus {
  border-color: #8b61be;
}

.feed-photo-comment-form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.feed-photo-comment-form-bottom span {
  color: #8a97a5;
  font-size: 13px;
}

.feed-photo-comment-message {
  margin-top: 6px;
}

@media (max-width: 720px) {
  .friend-photo-feed-actions {
    gap: 8px;
  }

  .feed-photo-comment-avatar {
    width: 36px;
    height: 36px;
  }

  .feed-photo-comment-author,
  .feed-photo-comment-body p,
  .feed-photo-comment-form textarea {
    font-size: 16px;
  }
}


/* =========================================================
   Feed - vídeos publicados por amigos
   ========================================================= */

.friend-video-feed-area {
  min-width: 0;
}

.friend-video-feed-frame {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid #d6e0e8;
  border-radius: 6px;
  background: #111;
}

.friend-video-feed-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.friend-video-feed-footer {
  gap: 12px;
}

.friend-video-feed-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .friend-video-feed-frame {
    max-width: 100%;
  }

  .friend-video-feed-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================================
   Feed - @username abaixo do nome do usuário
   ========================================================= */

.post-author-username {
  display: block;
  margin-top: 2px;
  color: #8a97a1;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
  overflow-wrap: anywhere;
}

.post-author:hover .post-author-username {
  text-decoration: none;
}

.feed-inline-username {
  display: block;
  margin-top: 1px;
  color: #8a97a1;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}


/* =========================================================
   POSTS - ABAS AMIGOS / TODOS
   Os cards do feed "todos" reutilizam a estética do feed Amigos.
   ========================================================= */

.posts-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.posts-feed-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.posts-feed-tab {
  min-width: 78px;
  padding: 7px 14px;
  border: 1px solid #b9cbd9;
  border-radius: 5px;
  background: #f7f9fc;
  color: #4d6f89;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-transform: lowercase;
  cursor: pointer;
}

.posts-feed-tab:hover {
  background: #eef4f8;
}

.posts-feed-tab.active {
  border-color: #7451a5;
  background: #7b4db5;
  color: #fff;
}

@media (max-width: 720px) {
  .posts-page-header {
    flex-direction: column;
  }

  .posts-feed-tabs {
    width: 100%;
  }

  .posts-feed-tab {
    flex: 1 1 0;
  }
}


/* =========================================================
   POSTS - CARROSSEL DE VISITAS RECENTES
   ========================================================= */

.profile-visits-carousel-section {
  padding: 13px 16px 14px;
  border-bottom: 1px solid #dbe5ed;
  background: #f8fbfd;
}

.profile-visits-carousel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.profile-visits-carousel-heading strong {
  color: #526f83;
  font-size: 15px;
  text-transform: lowercase;
}

.profile-visits-carousel-controls {
  display: flex;
  gap: 5px;
}

.profile-visits-carousel-controls button {
  width: 27px;
  height: 25px;
  padding: 0;
  border: 1px solid #c6d5e1;
  border-radius: 4px;
  background: #fff;
  color: #58798e;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.profile-visits-carousel-controls button:hover {
  border-color: #8f75b4;
  background: #f4effb;
  color: #684692;
}

.profile-visits-carousel {
  display: flex;
  gap: 9px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 1px 0 3px;
}

.profile-visits-carousel::-webkit-scrollbar {
  display: none;
}

.profile-visits-carousel[hidden] {
  display: none !important;
}

.profile-visit-carousel-item {
  display: flex;
  flex: 0 0 260px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d6e1e9;
  border-radius: 6px;
  background: #fff;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.profile-visit-carousel-avatars {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.profile-visit-carousel-person {
  display: block;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid #cad7e2;
  border-radius: 50%;
  background: #eef3f8;
}

.profile-visit-carousel-person img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-visit-carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  color: #7b4db5;
  font-size: 18px;
  font-weight: 700;
}

.profile-visit-carousel-text {
  min-width: 0;
  flex: 1;
  color: #667581;
  font-size: 13px;
  line-height: 1.35;
}

.profile-visit-carousel-name {
  display: block;
  overflow: hidden;
  color: #4e7288;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-visit-carousel-name:hover {
  text-decoration: underline;
}

.profile-visit-carousel-username {
  display: block;
  overflow: hidden;
  color: #8997a1;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-visit-carousel-action {
  display: block;
  margin: 2px 0;
}

.profile-visit-carousel-date {
  display: block;
  margin-top: 3px;
  color: #9aa5ad;
  font-size: 12px;
}

.profile-visits-carousel-loading,
.profile-visits-carousel-empty {
  padding: 10px 2px;
  color: #7d8d99;
  font-size: 14px;
}

@media (max-width: 720px) {
  .profile-visits-carousel-section {
    padding: 11px 10px 12px;
  }

  .profile-visit-carousel-item {
    flex-basis: 235px;
  }

  .profile-visit-carousel-person {
    width: 34px;
    height: 34px;
  }
}

/* ===== Entrada de usuário em comunidade no feed ===== */
.community-join-feed-card {
  overflow: hidden;
}

.community-join-feed-label {
  color: #7a8796;
  font-size: 14px;
  font-weight: 700;
  text-transform: lowercase;
}

.community-join-feed-content {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px 18px;
}

.community-join-person {
  display: block;
  width: 58px;
  height: 58px;
  text-decoration: none;
}

.community-join-person img {
  display: block;
  width: 58px;
  height: 58px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #eef3f8;
  box-shadow: 0 0 0 1px #cfd9e5;
}

.community-join-feed-text {
  min-width: 0;
}

.community-join-headline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: baseline;
  color: #526273;
  font-size: 17px;
  line-height: 1.45;
}

.community-join-name,
.community-join-community-name {
  color: #3d5f98;
  font-weight: 700;
  text-decoration: none;
}

.community-join-name:hover,
.community-join-community-name:hover {
  text-decoration: underline;
}

.community-join-community-preview {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 430px;
  margin-top: 9px;
  padding: 7px 10px 7px 7px;
  border: 1px solid #d8e1ea;
  border-radius: 7px;
  background: #f8fbfd;
  color: #526f84;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}

.community-join-community-preview:hover {
  border-color: #bca7d5;
  background: #f7f2fb;
}

.community-join-community-preview img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid #ccd8e2;
  border-radius: 6px;
  object-fit: cover;
  background: #edf3f8;
}

.community-join-community-preview span {
  min-width: 0;
}

.community-join-community-preview small,
.community-join-community-preview strong {
  display: block;
}

.community-join-community-preview small {
  margin-bottom: 1px;
  color: #8a98a3;
  font-size: 12px;
  font-weight: 400;
  text-transform: lowercase;
}

.community-join-community-preview strong {
  overflow: hidden;
  color: #55788e;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .community-join-feed-content {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 11px;
    padding: 13px 12px 15px;
  }

  .community-join-person,
  .community-join-person img {
    width: 50px;
    height: 50px;
  }

  .community-join-headline {
    font-size: 16px;
  }

  .community-join-community-preview {
    max-width: 100%;
  }
}

/* Legibilidade e áreas de toque — desktop e mobile */
.posts-page-shell { width: min(1120px, calc(100% - 24px)); }
.community-post-meta { min-height: 56px; padding: 11px 20px; }
.community-post-content { grid-template-columns: 175px minmax(0, 1fr); gap: 22px; padding: 22px 20px; }
.post-author img { width: 48px; height: 48px; flex-basis: 48px; }
.post-community-icon { width: 36px; height: 36px; flex-basis: 36px; }
.posts-feed-tab { min-height: 44px; padding: 10px 18px; }
.posts-pagination button, .posts-inline-replies-pagination button,
.posts-thread-action, .posts-inline-submit { min-height: 40px; }
.posts-inline-reply-section textarea { min-height: 95px; }
.posts-main-card { min-width: 0; }
@media (max-width: 720px) {
  .posts-page-shell { width: calc(100% - 16px); margin-top: 14px; }
  .posts-page-header { padding: 18px 16px; }
  .community-post-meta { padding: 12px; gap: 8px; flex-wrap: wrap; }
  .community-post-content { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px 13px 19px; }
  .post-author img { width: 46px; height: 46px; flex-basis: 46px; }
  .post-topic-area { width: 100%; }
  .posts-feed-tabs { gap: 8px; }
  .posts-feed-tab { min-height: 46px; }
  .posts-pagination button, .posts-inline-replies-pagination button { min-width: 40px; }
}
