/* TelaLog - Página Usuários V6 clean fix + hover button fix
   CSS isolado, sem mexer em html/body/navbar e sem usar 100vw.
*/

.tl-users-page,
.tl-users-page *,
.tl-users-page *::before,
.tl-users-page *::after{
  box-sizing:border-box;
}

.tl-users-page{
  flex:1;
  width:100%;
  max-width:1180px;
  min-width:0;
  margin:0 auto;
  padding:34px 24px 42px;
  color:#e7ecff;
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  overflow:visible;
}

.tl-users-page a{
  color:inherit;
  text-decoration:none;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ===== Hero no mesmo padrão das páginas de catálogo ===== */
.tl-users-hero{
  position:relative;
  overflow:hidden;
  margin:0 0 22px;
  padding:22px;
  background:#10131c;
  border:1px solid #1e2842;
  border-radius:24px;
  box-shadow:0 18px 44px rgba(0,0,0,.30);
}

.tl-users-hero::before{
  content:"TL";
  position:absolute;
  top:50%;
  right:30px;
  transform:translateY(-50%);
  color:rgba(74,139,255,.12);
  font-size:8.5rem;
  font-weight:950;
  line-height:1;
  pointer-events:none;
  user-select:none;
}

.tl-users-hero > div:first-child{
  position:relative;
  z-index:1;
  min-width:0;
}

.tl-users-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
}

.tl-users-kicker{
  display:inline-flex;
  margin-bottom:7px;
  color:#9ec5ff;
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.tl-users-hero h1{
  margin:0;
  color:#e7ecff;
  font-size:clamp(1.65rem,3vw,2.35rem);
  line-height:1.05;
  letter-spacing:-.035em;
  font-weight:900;
}

.tl-users-hero p{
  max-width:760px;
  margin:10px 0 0;
  color:#b7c7ff;
  line-height:1.6;
}

.tl-users-stat{
  position:relative;
  z-index:1;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  background:#0f1320;
  border:1px solid #243055;
  color:#cfe0ff;
  font-size:.86rem;
  font-weight:850;
  white-space:nowrap;
}

.tl-users-stat strong{
  display:inline;
  margin-right:6px;
  color:#fff;
  font-size:.94rem;
  font-weight:950;
  letter-spacing:-.02em;
}

/* ===== Perfil oficial em destaque ===== */
.tl-users-featured{
  position:relative;
  overflow:hidden;
  margin:0 0 18px;
  padding:1px;
  border-radius:24px;
  background:linear-gradient(135deg,rgba(74,139,255,.92),rgba(122,92,255,.38) 50%,rgba(30,40,66,.92));
  box-shadow:0 18px 42px rgba(0,0,0,.28),0 0 32px rgba(74,139,255,.08);
}

.tl-users-featured::before{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  top:-250px;
  right:4%;
  border-radius:50%;
  background:rgba(74,139,255,.30);
  filter:blur(14px);
  pointer-events:none;
}

.tl-users-featured-card{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:82px minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  min-height:128px;
  padding:20px;
  overflow:hidden;
  border-radius:23px;
  background:linear-gradient(115deg,#101725 0%,#10131c 58%,#121a2c 100%);
  cursor:pointer;
}

.tl-users-featured-card:focus-visible{
  outline:2px solid #73a7ff;
  outline-offset:-4px;
}

.tl-users-featured-avatar{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:82px;
  height:82px;
  overflow:hidden;
  border:2px solid rgba(125,174,255,.78);
  border-radius:50%;
  background:linear-gradient(145deg,#18325d,#253e70);
  color:#fff;
  font-size:1.7rem;
  font-weight:950;
  box-shadow:0 0 0 5px rgba(74,139,255,.09),0 12px 26px rgba(0,0,0,.28);
}

.tl-users-featured-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.tl-users-featured-info{
  position:relative;
  z-index:1;
  min-width:0;
}

.tl-users-featured-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-bottom:4px;
  color:#9ec5ff;
  font-size:.73rem;
  font-weight:950;
  letter-spacing:.075em;
  text-transform:uppercase;
}

.tl-users-featured-kicker svg{
  width:13px;
  height:13px;
  color:#73a7ff;
}

.tl-users-featured-name{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  color:#fff;
  font-size:1.32rem;
  font-weight:950;
  line-height:1.15;
  letter-spacing:-.025em;
}

.tl-users-featured-name .tl-user-verified{
  flex:0 0 auto;
}

.tl-users-featured-handle{
  display:block;
  margin-top:2px;
  color:#73a7ff;
  font-size:.84rem;
  font-weight:850;
}

.tl-users-featured-info p{
  max-width:570px;
  margin:7px 0 0;
  color:#b7c7e8;
  font-size:.9rem;
  line-height:1.45;
}

.tl-users-featured-type{
  display:inline-block;
  margin-top:6px;
  color:#7f92ba;
  font-size:.74rem;
  font-weight:800;
}

.tl-users-featured-action{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:126px;
}

.tl-users-featured-follow{
  width:126px;
  max-width:126px;
  min-height:42px;
}

/* ===== Busca ===== */
.tl-users-tools{
  width:100%;
  min-width:0;
  margin:0 0 18px;
  padding:14px;
  border:1px solid #1e2842;
  border-radius:20px;
  background:#10131c;
  box-shadow:0 14px 32px rgba(0,0,0,.22);
}

.tl-users-search{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-width:0;
}

.tl-users-search input{
  flex:1 1 auto;
  min-width:0;
  width:100%;
  height:44px;
  padding:0 14px;
  border:1px solid #243055;
  border-radius:14px;
  outline:0;
  background:#0b0f1a;
  color:#e7ecff;
  font:750 .95rem/1 'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
}

.tl-users-search input::placeholder{color:#7f8eb0}

.tl-users-search input:focus{
  border-color:#4a8bff;
  box-shadow:0 0 0 3px rgba(74,139,255,.12);
}

.tl-users-search button,
.tl-users-clear{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border:1px solid #4a8bff;
  border-radius:14px;
  background:#4a8bff;
  color:#fff;
  font-weight:950;
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .16s ease,filter .16s ease,border-color .16s ease,background .16s ease;
}

.tl-users-clear{
  border-color:#243055;
  background:#151d31;
  color:#cfe0ff;
}

.tl-users-search button:hover,
.tl-users-clear:hover{
  transform:translateY(-1px);
  filter:brightness(1.06);
}

/* ===== Lista de usuários ===== */
.tl-users-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  width:100%;
  min-width:0;
}

.tl-user-card{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 104px;
  align-items:center;
  gap:12px;
  width:100%;
  min-width:0;
  max-width:100%;
  min-height:86px;
  padding:13px;
  border:1px solid #1e2842;
  border-radius:18px;
  background:#10131c;
  color:#fff;
  box-shadow:0 12px 26px rgba(0,0,0,.20);
  cursor:pointer;
  overflow:hidden;
  transform:translateZ(0);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;
}

.tl-user-card:hover,
.tl-user-card:focus-visible{
  transform:translateY(-2px);
  border-color:#34508a;
  background:#111827;
  box-shadow:0 18px 36px rgba(0,0,0,.28);
  outline:0;
}

.tl-user-avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:58px;
  height:58px;
  min-width:58px;
  min-height:58px;
  overflow:hidden;
  border-radius:999px;
  border:1px solid rgba(74,139,255,.32);
  background:linear-gradient(135deg,#17294a,#0b0f1a);
  color:#dce7ff;
}

.tl-user-avatar img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.tl-user-avatar span{
  font-size:1.35rem;
  font-weight:950;
  letter-spacing:-.04em;
}

.tl-user-info{
  display:grid;
  gap:5px;
  min-width:0;
  overflow:hidden;
}

.tl-user-name{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  max-width:100%;
  color:#e7ecff;
  font-size:.98rem;
  font-weight:950;
  letter-spacing:-.025em;
  line-height:1.2;
  overflow:hidden;
}

.tl-user-name > span:first-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.tl-user-verified{
  flex:0 0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  color:#4a8bff;
  filter:drop-shadow(0 0 10px rgba(74,139,255,.28));
}

.tl-user-verified svg{
  display:block;
  width:18px;
  height:18px;
}

.tl-user-profile-type{
  display:block;
  min-width:0;
  max-width:100%;
  color:#9fb0d1;
  font-size:.82rem;
  font-weight:800;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.tl-user-profile-type.is-public{color:#9fb0d1}
.tl-user-profile-type.is-private{color:#ffe0a3}

.tl-user-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  width:104px;
  min-width:0;
  max-width:104px;
  overflow:visible;
}

.tl-users-follow-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:104px;
  max-width:104px;
  min-width:0;
  min-height:38px;
  padding:8px 12px;
  border:1px solid #4a8bff;
  border-radius:999px;
  background:#4a8bff;
  color:#fff;
  font-size:.86rem;
  font-weight:950;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  transition:transform .16s ease,filter .16s ease,border-color .16s ease,background .16s ease,color .16s ease;
}

.tl-users-follow-btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.06);
}

.tl-users-follow-btn.is-following,
.tl-users-follow-btn.is-requested{
  background:#151d31;
  border-color:#2d3e68;
  color:#cfe0ff;
}

.tl-users-follow-btn.is-requested{
  border-color:rgba(255,196,87,.34);
  color:#ffe0a3;
}

.tl-users-follow-btn.is-self,
.tl-users-follow-btn:disabled{
  cursor:default;
  transform:none;
  filter:none;
  background:#0b0f1a;
  border-color:#1e2842;
  color:#7f8eb0;
}

.tl-users-follow-btn.is-loading{
  pointer-events:none;
  opacity:.78;
}

.tl-users-empty{
  padding:28px;
  border:1px solid #1e2842;
  border-radius:22px;
  background:#10131c;
  color:#9fb0d1;
  text-align:center;
  line-height:1.6;
}

.tl-users-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}

.tl-users-pagination a,
.tl-users-pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  min-height:40px;
  padding:8px 12px;
  border:1px solid #243055;
  border-radius:12px;
  background:#10131c;
  color:#cfe0ff;
  font-size:.9rem;
  font-weight:900;
  text-decoration:none;
}

.tl-users-pagination a:hover,
.tl-users-pagination a.active{
  border-color:#4a8bff;
  background:#4a8bff;
  color:#fff;
}

@media(max-width:1120px){
  .tl-users-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:760px){
  .tl-users-page{
    padding:16px 12px 28px;
  }

  .tl-users-hero{
    flex-direction:column;
    align-items:center;
    text-align:center;
    border-radius:20px;
    padding:18px 14px;
    margin-bottom:14px;
  }

  .tl-users-hero::before{
    right:50%;
    transform:translate(50%,-50%);
    font-size:7rem;
  }

  .tl-users-hero p{
    margin-left:auto;
    margin-right:auto;
  }

  .tl-users-featured{
    border-radius:20px;
    margin-bottom:14px;
  }

  .tl-users-featured-card{
    grid-template-columns:64px minmax(0,1fr);
    gap:14px;
    min-height:0;
    padding:16px;
    border-radius:19px;
  }

  .tl-users-featured-avatar{
    align-self:start;
    width:64px;
    height:64px;
    font-size:1.35rem;
  }

  .tl-users-featured-info p{
    font-size:.84rem;
  }

  .tl-users-featured-action{
    grid-column:2;
    width:auto;
    min-width:0;
    justify-content:flex-start;
  }

  .tl-users-featured-follow{
    width:126px;
    max-width:126px;
    min-height:40px;
  }

  .tl-users-tools{
    border-radius:18px;
    padding:12px;
    margin-bottom:14px;
  }

  .tl-users-search{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:9px;
  }

  .tl-users-clear{
    grid-column:1/-1;
    width:100%;
  }

  .tl-users-grid{
    grid-template-columns:minmax(0,1fr);
    gap:10px;
  }

  .tl-user-card{
    grid-template-columns:52px minmax(0,1fr) 92px;
    min-height:78px;
    gap:10px;
    padding:12px;
    border-radius:16px;
  }

  .tl-user-avatar{
    width:52px;
    height:52px;
    min-width:52px;
    min-height:52px;
  }

  .tl-user-actions{
    width:92px;
    max-width:92px;
  }

  .tl-users-follow-btn{
    width:92px;
    max-width:92px;
    min-height:36px;
    padding:7px 8px;
    font-size:.8rem;
  }
}

@media(max-width:380px){
  .tl-users-page{
    padding-left:10px;
    padding-right:10px;
  }

  .tl-users-featured-card{
    grid-template-columns:56px minmax(0,1fr);
    gap:11px;
    padding:13px;
  }

  .tl-users-featured-avatar{
    width:56px;
    height:56px;
  }

  .tl-users-featured-name{font-size:1.12rem}
  .tl-users-featured-info p{font-size:.8rem}

  .tl-user-card{
    grid-template-columns:46px minmax(0,1fr) 82px;
    gap:8px;
    padding:10px;
  }

  .tl-user-avatar{
    width:46px;
    height:46px;
    min-width:46px;
    min-height:46px;
  }

  .tl-user-actions{
    width:82px;
    max-width:82px;
  }

  .tl-users-follow-btn{
    width:82px;
    max-width:82px;
    min-height:34px;
    padding:7px 7px;
    font-size:.74rem;
  }

  .tl-user-name{font-size:.92rem}
  .tl-user-profile-type{font-size:.77rem}
}
