/* profile */

.profile-container {
  background-color: #f2f6fe;
}

.profile-container .container {
  padding: 20px 0;
}

.profile-container .group-info-user {
  background-color: #fff;
  border-radius: 40px;
  max-width: 992px;
  margin: auto;
  margin-bottom: 2rem;
}

.profile-container .group-info-user .information-profile .name span:last-child {
  position: relative;
}
.profile-container
  .group-info-user
  .information-profile
  .name
  span:last-child::before {
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background-color: #000;
  margin: 2px 5px;
  display: inline-block;
}

.profile-container .group-info-user .project {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 3rem 2rem;
  margin-top: 20px;
  gap: 10px 4rem;
}
.profile-container .project .count-project .a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}
.profile-container .group-info-user .project .count-project .count-posts,
.profile-container .group-info-user .project .count-user-coin {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.profile-container .group-info-user .project .count-user-coin img {
  width: 23px;
  height: 18px;
  object-fit: cover;
}
.profile-container .group-info-user .project .posts-pending {
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 6px;
}

.profile-container .group-info-user .project .posts-pending img {
  width: 23px;
  height: 18px;
  object-fit: contain;
  margin-bottom: 8px;
}

.profile-container .group-info-user .project .count-project {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.profile-container .group-info-user .project .count-project .count-posts,
.profile-container .group-info-user .project .posts-pending span,
.profile-container .group-info-user .project .count-user-coin {
  color: #0654ba !important;
  font-weight: 600;
  font-size: 14px;
}

.profile-container .group-info-user .project .count-liked p {
  font-weight: 400;
  font-size: 13px;
}
.profile-container .group-info-user .project .count-liked span {
  font-weight: 600;
  font-size: 13px;
}

.placeholder {
  visibility: hidden;
}

.profile-container .background {
  height: 350px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
  border-radius: 40px 40px 0 0;
}

.profile-container .avatar-profile {
  position: absolute;
  left: 120px;
  top: 94%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 50%;
}

.profile-container .avatar-profile img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid white;
}

.profile-container .information-profile {
  margin-top: 80px;
  padding: 0 50px;
}
.profile-container .information-profile .name {
  width: fit-content;
  position: relative;
}
.profile-container .information-profile .open-popup {
  position: absolute;
  top: -15px;
  right: -40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #3333;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.profile-container .information-profile .open-popup:hover {
  background-color: #61ce70;
}

.profile-container .information-profile .open-popup i {
  font-size: 15px;
}

.profile-container .information-profile .name p {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 0;
}

.profile-container .information-profile .name span {
  font-size: 14px;
  font-weight: 500;
}

.profile-container .information-profile img {
  height: 30px;
  width: 30px;
}

.profile-container .action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.profile-container .action button {
  border-radius: 50px;
  border: none;
  font-size: 14px;
  padding: 10px 15px;
  background-color: transparent;
}

.profile-container .action button:first-of-type {
  color: #000;
  border: 1px solid #5fb46b;
}
.profile-container .action button:last-of-type {
  background-color: #61ce70 !important;
}

/* Phần hiển thị post public */
.group-posts-public {
  max-width: 650px;
  margin: auto;
}

/* start sort */
.group-posts-public .sort {
  display: flex;
  align-items: center;
  column-gap: 5px;
  max-width: 650px;
  margin: auto auto 1rem;
  justify-content: flex-end;
  position: relative;
}

.group-posts-public .sort p {
  font-weight: 600;
  margin-bottom: 0;
}
.group-posts-public .sort .toggle-filter-btn {
  padding: 5px;
  width: 30px;
  height: 30px;
}
.group-posts-public .sort .toggle-filter-btn.active {
  background-color: #fff;
  border-color: #d9d9d9;
  box-shadow: 0px -5px 10px rgb(0 0 0 / 15%);
  border: 1px solid #d9d9d9;
  border-bottom: none;
  z-index: 10;
  border-radius: 20px 20px 0 0;
}

.group-posts-public .sort .buttons {
  box-shadow: 0px 0px 10px rgb(0 0 0 / 15%);
  display: flex;
  align-items: flex-start;
  column-gap: 5px;
  background-color: #fff;
  border-radius: 20px 0 20px 20px;
  border: 1px solid #d9d9d9;
  position: absolute;
  width: fit-content;
  flex-direction: column;
  padding: 1rem;
  top: 28px;
  z-index: 9;
}
.group-posts-public .sort .buttons a {
  font-size: 14px;
  font-weight: 600 !important;
  margin-bottom: 10px;
}
.group-posts-public .sort .buttons a:hover {
  color: #61ce70 !important;
}
/* End sort */

.group-posts-public .item {
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.group-posts-public .item:hover {
  box-shadow: 0px 0px 30px rgb(22 249 14 / 20%);
}

.group-posts-public .meta-data {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.group-posts-public .group-1 {
  display: flex;
  align-items: center;
  gap: 10px 15px;
}
.group-posts-public .group-1 .avatar {
  max-width: 60px;
  width: 100%;
}

.group-posts-public .meta-data .avatar img,
.single-social .meta-data .avatar img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}

.group-posts-public .meta-data .information {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 3px;
}

.group-posts-public .meta-data .information .name,
.group-posts-public .meta-data .information .age {
  margin-bottom: 0px;
  position: relative;
}

.group-posts-public .meta-data .information .name {
  color: #0062da;
  font-weight: 500;
}

.group-posts-public .meta-data .information .age::before {
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background-color: #000;
  margin: 2px 5px;
  display: inline-block;
}

.group-posts-public .group-information-time .time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 500;
  font-size: 13px;
  row-gap: 5px;
}

.group-posts-public .group-information-time .time h4 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
}

.group-posts-public .group-information-time .time img {
  margin-left: 10px;
}

.group-posts-public .meta-data .btn {
  background-color: #61ce70;
  border-color: #61ce70;
  height: 30px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  position: relative;
  border-radius: 40px;
  overflow: hidden;
}

.group-posts-public .btn-primary:hover {
  color: #fff !important;
}

.group-posts-public .item .item-game {
  display: flex;
  align-items: flex-end;
}

.group-posts-public .item .item-game .thumbnail {
  width: 87%;
}

.group-posts-public .item .item-game .thumbnail img {
  border-radius: 15px;
  max-height: 390px;
  width: 100%;
  object-fit: cover;
}

.group-posts-public .action-control {
  display: grid;
  row-gap: 10px;
  width: 13%;
}

.group-posts-public .stack-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  row-gap: 15px;
}

.group-posts-public .stack-button .group-button-e .edit-menu {
  display: none; /* slideToggle sẽ xử lý display */
  position: absolute;
  z-index: 10;
  background: #fff;
  padding: 10px;
  width: max-content;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.action-control span {
  font-size: 12px;
  font-weight: 700;
}

.group-posts-public .item-game .action-control .favourite,
.group-posts-public .item-game .action-control .comment-count,
.group-posts-public .item-game .action-control .group-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.group-posts-public .stack-button .btn-show-edit-menu,
.action-control .favourite .box-svg,
.action-control .comment-count .box-svg,
.action-control .group-share .box-svg {
  background-color: #f0f9ff;
  padding: 9px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.group-posts-public .stack-button .btn-show-edit-menu:hover {
  border-color: #61ce70;
}
.action-control .favourite .box-svg:hover {
  border-color: #ff6e6e;
}

.action-control .comment-count .box-svg:hover {
  border-color: #ffa800;
}

.action-control .group-share .box-svg:hover {
  border-color: #50b4f0;
}

.action-control .box-svg:hover {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
}

.group-share .dropdown {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5 ease;
  transform: translate(-50%, -50%);
  right: 5%;
  width: auto;
  background-color: #fff;
  padding: 15px 20px 10px;
  border-radius: 0 15px 15px 15px;
  box-shadow: 0px 0px 10px rgb(0 0 0 / 19%);
  transition: all 0.4s ease;
}

.group-share .dropdown a {
  display: flex;
  align-items: center;
  column-gap: 5px;
  margin-bottom: 10px;
  cursor: pointer;
}

.group-share .dropdown span {
  cursor: pointer;
}

.group-share .dropdown.active {
  opacity: 1;
  visibility: visible;
}

/* END post public */

::-webkit-scrollbar-thumb {
  background-color: #5fb46b !important;
}
::-webkit-scrollbar-track {
  background-color: #eee !important;
}

/* ERROR FORM VALIDATE */
.just-validate-error-label {
  margin: 4px 6px 10px;
  font-size: 12px;
}

.footer {
  margin-top: 0;
}

@media screen and (max-width: 768px) {
  .profile-container .avatar-profile {
    left: 70px;
  }
  .profile-container .avatar-profile img {
    width: 120px;
    height: 120px;
  }
  .profile-container .information-profile {
    margin-top: 55px;
    padding: 0 20px;
  }
  .profile-container .group-info-user .project {
    padding: 0 20px 2rem;
  }
  .profile-container .group-info-user .project .count-project .count-posts,
  .profile-container .group-info-user .project .posts-pending span {
    font-size: 14px;
  }

  .group-posts-public .stack-button .group-button-e .edit-menu {
    right: 0;
  }
}

@media screen and (max-width: 568px) {
  .profile-container .background {
    background-size: contain;
    height: 250px;
  }
  .profile-container .action {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }
}
