/*
 * MyMesh: perfil de usuario centralizado (capa > foto > nome > @username > Spotify).
 * Escopo: somente .wo_user_profile (perfis de pagina, grupo e evento nao sao afetados).
 * Carregado depois de style.css; usa a cor de destaque do tema (--main-color).
 */

/* fundo geral cinza bem claro (so quando a pagina e um perfil de usuario) */
body:has(.wo_user_profile) { background: #f4f5f8; }

/* largura maxima: evita que o cabecalho e o conteudo fiquem espalhados em telas largas */
.container .wo_user_profile { max-width: 1120px; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------ capa */
.container .wo_user_profile .profile-container .card.hovercard {
  background: transparent; box-shadow: none; border: 0; border-radius: 0; overflow: visible;
}
.container .wo_user_profile .profile-container .card.hovercard .cardheader {
  height: var(--mm-cover-h); min-height: var(--mm-cover-h); max-height: var(--mm-cover-h);
  border-radius: 22px; overflow: hidden; background-color: #e4e6ee;
  box-shadow: 0 10px 34px rgba(24, 28, 48, .10);
}
/* a imagem preenche a moldura; se for mais alta que ela, mantem a altura natural (reposicionar capa continua funcionando) */
.container .wo_user_profile { --mm-cover-h: 320px; }
.container .wo_user_profile #cover-image { width: 100%; height: auto; min-height: var(--mm-cover-h); object-fit: cover; display: block; }
/* sem texto sobre a capa no novo layout: o degrade escuro nao e mais necessario */
.container .wo_user_profile .problackback { display: none !important; }

/* ------------------------------------------------------------------ bloco central */
.container .wo_user_profile .profile-container .card.hovercard .pic-info-cont {
  position: relative; width: 100%; height: auto; bottom: auto; margin: -104px 0 0; padding: 0 16px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; z-index: 5;
}
.container .wo_user_profile .profile-container .card.hovercard .pic-info-cont .user-avatar {
  position: relative; top: 0; bottom: auto; left: auto; flex: 0 0 auto; display: block;
  width: 150px; height: 200px; margin: 0 auto; border-radius: 26px;
}
.container .wo_user_profile .profile-container .card.hovercard .pic-info-cont .user-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 26px; border: 5px solid #fff;
  background: #e4e6ee; box-shadow: 0 8px 24px rgba(24, 28, 48, .18);
}
/* foto em retangulo vertical: anel de story, carregamento e botoes de edicao acompanham os cantos */
.container .wo_user_profile .profile-container .card.hovercard .pic-info-cont .user-avatar.unseen_story { border-radius: 30px; }
.container .wo_user_profile .profile-container .card.hovercard .pic-info-cont .user-avatar.unseen_story:after,
.container .wo_user_profile .profile-container .card.hovercard .pic-info-cont .user-avatar img.unseen_story { border-radius: 26px; }
.container .wo_user_profile .user-avatar-uploading-container,
.container .wo_user_profile .user-avatar-uploading-progress,
.container .wo_user_profile .user-avatar .wo_profile_pic_hover { border-radius: 26px; }

.container .wo_user_profile .profile-container .card.hovercard .info {
  position: relative; width: 100%; margin: 14px 0 0; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.container .wo_user_profile .profile-container .card.hovercard .info .title {
  position: static; left: auto; top: auto; width: auto; max-width: 100%; margin: 0; z-index: auto;
  color: #1d2130; text-shadow: none; line-height: 1.2; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 26px; letter-spacing: -.01em;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px;
}
.container .wo_user_profile .profile-container .card.hovercard .info .title a { color: #1d2130; text-shadow: none; }
.container .wo_user_profile .card.hovercard .info .title svg.feather { fill: currentColor; filter: none; }
/* selo de verificado ao lado do nome: um pouco maior que nas listas */
.container .wo_user_profile .card.hovercard .info .title svg.verified-color { width: 26px !important; height: 26px !important; margin-top: 0 !important; }
.container .wo_user_profile .card.hovercard .info > p {
  margin: 4px 0 0; color: #8b91a5; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 400; text-shadow: none;
}
/* cartao do Spotify, centralizado abaixo do @username */
.container .wo_user_profile .card.hovercard .info .mm-spotify { margin: 14px auto 0; }

/* ------------------------------------------------------------------ botoes (seguir, mensagem, editar, atividades) */
.container .wo_user_profile .card.hovercard .options-buttons {
  position: static; margin: 16px 0 4px !important; z-index: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
}
.container .wo_user_profile .card.hovercard .options-buttons > * { margin: 0 !important; }
.container .wo_user_profile .options-buttons .btn-glossy > a:not(.btn-main),
.container .wo_user_profile .options-buttons .btn-glossy > button:not(.btn-main),
.container .wo_user_profile .options-buttons .btn-glossy > span > button:not(.btn-main) {
  height: 36px; margin: 0; padding: 7px 16px !important; font-size: 13px !important; font-weight: 500; line-height: 20px;
  color: #2b3045; background: #fff; border: 1px solid #e6e8f0; border-radius: 999px; box-shadow: 0 1px 3px rgba(24, 28, 48, .06);
}
.container .wo_user_profile .options-buttons .btn-glossy > a:not(.btn-main):hover,
.container .wo_user_profile .options-buttons .btn-glossy > button:not(.btn-main):hover,
.container .wo_user_profile .options-buttons .btn-glossy > span > button:not(.btn-main):hover {
  background: #f6f7fb; color: var(--main-color, #c64d53);
}
.container .wo_user_profile .options-buttons .btn-glossy svg.feather { margin: -2px 5px 0 0; width: 16px; height: 16px; }
.container .wo_user_profile .options-buttons .btn-main {
  height: 36px; padding: 7px 18px !important; border-radius: 999px; font-size: 13px !important; font-weight: 600; box-shadow: 0 4px 12px rgba(198, 77, 83, .25);
}

/* ------------------------------------------------------------------ barra de navegacao do perfil */
.container .wo_user_profile .user-bottom-nav {
  margin: 22px 0 18px; background: #fff; border-radius: 18px; box-shadow: 0 4px 18px rgba(24, 28, 48, .06); z-index: 10;
}
.container .wo_user_profile .user-bottom-nav ul {
  display: flex; justify-content: flex-start; gap: 2px; padding: 10px 12px; margin: 0;
  overflow-x: auto; overflow-y: hidden; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.container .wo_user_profile .user-bottom-nav ul::-webkit-scrollbar { display: none; }
.container .wo_user_profile .user-bottom-nav ul li { flex: 0 0 auto; padding: 0 2px; }
/* centraliza quando cabe e rola desde o primeiro item quando nao cabe (justify-content:center cortaria o inicio) */
.container .wo_user_profile .user-bottom-nav ul li:first-child { margin-left: auto; }
.container .wo_user_profile .user-bottom-nav ul li:last-child { margin-right: auto; }
.container .wo_user_profile .user-bottom-nav li a {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 22px; color: #5d6378;
}
.container .wo_user_profile .user-bottom-nav li a .split-link { display: inline-flex; align-items: center; }
.container .wo_user_profile .user-bottom-nav li a .split-link svg { margin: 0; width: 18px; height: 18px; }
.container .wo_user_profile .user-bottom-nav li a:hover { background: #f4f5f8; color: #2b3045; }
/* secao selecionada */
.container .wo_user_profile .user-bottom-nav li a.menuactive {
  background: rgba(198, 77, 83, .10); background: color-mix(in srgb, var(--main-color, #c64d53) 12%, transparent);
  color: var(--main-color, #c64d53); font-weight: 600;
}

/* ------------------------------------------------------------------ responsivo */
@media (max-width: 991px) {
  .container .wo_user_profile { --mm-cover-h: 260px; }
}
@media (max-width: 767px) {
  .container .wo_user_profile { --mm-cover-h: 190px; }
  .container .wo_user_profile .profile-container .card.hovercard .cardheader { border-radius: 18px; }
  .container .wo_user_profile .profile-container .card.hovercard .pic-info-cont { margin-top: -84px; padding: 0 8px 4px; }
  .container .wo_user_profile .profile-container .card.hovercard .pic-info-cont .user-avatar { width: 112px; height: 150px; margin: 0 auto; top: 0; display: block; border-radius: 22px; }
  .container .wo_user_profile .profile-container .card.hovercard .pic-info-cont .user-avatar img { border-width: 4px; border-radius: 22px; }
  .container .wo_user_profile .profile-container .card.hovercard .info .title { font-size: 22px; }
  .container .wo_user_profile .card.hovercard .info > p { color: #8b91a5; }
  .container .wo_user_profile .card.hovercard .options-buttons { width: 100%; margin: 14px 0 2px !important; }
  .container .wo_user_profile .user-bottom-nav { margin: 16px 0 14px; border-radius: 16px; }
  .container .wo_user_profile .user-bottom-nav ul { justify-content: flex-start; padding: 8px; }
  .container .wo_user_profile .user-bottom-nav li a { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 420px) {
  .container .wo_user_profile { --mm-cover-h: 160px; }
  .container .wo_user_profile .profile-container .card.hovercard .pic-info-cont { margin-top: -76px; }
  .container .wo_user_profile .profile-container .card.hovercard .pic-info-cont .user-avatar { width: 100px; height: 134px; }
}
