/* ============================================
   08-PERFIL.CSS
   Tela Perfil Visitado: capa, avatar, stats, bio, socials, drops
============================================ */

#perfilVisitadoNex {
  display: none;
  background: #050b18;
  padding: 0 0 90px;
}

/* ============================================
   HERO (CAPA + BOTÕES)
============================================ */

.perfil-hero {
  position: relative;
  margin-bottom: 18px;
}

.perfil-btn-bloquear {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 30;
}

.perfil-btn-sair-lateral {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 30;
}

.perfil-btn-bloquear,
.perfil-btn-sair-lateral {
  min-width: 92px;
  height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.16);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.perfil-btn-bloquear {
  border-color: #ff3355;
  color: #ff3355;
  background: rgba(0,0,0,.28);
}

.perfil-capa {
  width: 100%;
  height: 300px;
  border-radius: 0 0 28px 28px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================
   HEADER (AVATAR + NOME)
============================================ */

.perfil-header {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  padding: 0 16px;
  margin-top: -250px;
  margin-bottom: 18px;
}

.perfil-avatar {
  position: relative;
  z-index: 100;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 5px solid #8b5cf6;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.perfil-avatar img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  z-index: 101;
}

.perfil-nome-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.perfil-nome-area h2 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.5px;
}

.perfil-username {
  font-size: 15px;
  font-weight: 600;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.2;
  text-align: left;
  opacity: 0.88;
}

/* Esconde a cápsula antiga dentro do nome */
.perfil-nome-area .perfil-stats {
  display: none;
}

/* ============================================
   CÁPSULA DE STATS
============================================ */

.perfil-stats-capsule {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  margin: 18px 14px 0;
  padding: 12px 8px;
  width: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.perfil-stats-capsule .perfil-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 6px;
  position: relative;
  min-width: 0;
}

.perfil-stats-capsule .perfil-stat + .perfil-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
}

.perfil-stats-capsule .perfil-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  margin-bottom: 2px;
}

.perfil-stats-capsule .perfil-stat:nth-child(1) .perfil-stat-icon {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(59, 130, 246, 0.15));
  border-color: rgba(96, 165, 250, 0.35);
}

.perfil-stats-capsule .perfil-stat:nth-child(2) .perfil-stat-icon {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(239, 68, 68, 0.15));
  border-color: rgba(244, 63, 94, 0.35);
}

.perfil-stats-capsule .perfil-stat:nth-child(3) .perfil-stat-icon {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.15));
  border-color: rgba(251, 191, 36, 0.35);
}

.perfil-stats-capsule .perfil-stat b {
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.perfil-stats-capsule .perfil-stat small {
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

/* ============================================
   BIO DO PERFIL
============================================ */

.perfil-bio {
  position: relative;
  z-index: 50;
  width: 100%;
  margin: 38px 0 18px;
  padding: 20px 22px;
  border: 1px solid rgba(0,0,0,.75);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  box-sizing: border-box;
  line-height: 1.5;
}

/* ============================================
   SOCIAL E AÇÕES
============================================ */

.perfil-social,
.perfil-acoes {
  position: relative;
  z-index: 50;
  padding: 0 14px;
  margin-top: 14px;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.perfil-social {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.perfil-acoes {
  grid-template-columns: 1fr 1fr;
  margin-top: 2px;
}

.perfil-social button,
.perfil-acoes button {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.75);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

.perfil-social button {
  width: 110px;
  height: 52px;
  border-radius: 999px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.perfil-social button img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.btn-conectar-perfil {
  background: rgba(100,116,139,.45);
}

.btn-conectar-perfil.is-connected {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn-nex-perfil {
  background: rgba(255,255,255,.04);
}

/* ============================================
   TÍTULO DOS DROPS
============================================ */

.perfil-drops-titulo {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 900;
  margin: 18px 14px 12px;
}

.perfil-drops-titulo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.perfil-drops-titulo::after {
  content: '';
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6, #a855f7, transparent);
}

/* ============================================
   GRID DE DROPS
============================================ */

.perfil-drops-grid {
  padding: 0 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.perfil-drop-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #111827;
  aspect-ratio: 3 / 4;
}

.perfil-drop-card img,
.perfil-drop-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.perfil-drop-media-indicator {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 10px;
}

.perfil-drop-meta {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 10px;
  line-height: 1.2;
}

/* ============================================
   SELO DE ADEPTO
============================================ */

.selo-adepto-nex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  font-size: 12px;
  margin-left: 6px;
  box-shadow: 0 2px 8px rgba(251,191,36,.35);
  vertical-align: middle;
}

/* ============================================
   CARD DO MURAL (perfil visitado)
============================================ */

.perfil-mural-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% - 28px);
  min-height: 110px;
  margin: 18px 14px 12px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;

  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.55) 100%),
    url('../assets/mural.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #fff;
  text-align: left;
  cursor: pointer;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, filter 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.perfil-mural-card:hover {
  filter: brightness(1.08);
}

.perfil-mural-card:active {
  transform: scale(0.98);
}

.perfil-mural-card-icone {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}

.perfil-mural-card-texto {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.perfil-mural-card-texto strong {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

.perfil-mural-card-texto small {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.perfil-mural-card-seta {
  font-size: 18px;
  color: #94a3b8;
  flex-shrink: 0;
}
/* ⚠️ Avatar e capa clicáveis (perfil visitado) */
.perfil-avatar,
.perfil-capa {
  transition: filter 0.18s ease, transform 0.18s ease;
}

.perfil-avatar:active,
.perfil-capa:active {
  filter: brightness(0.92);
  transform: scale(0.99);
}