/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

/* Variáveis de cores para fácil manutenção */
:root {
  --primary-bg: hsl(217, 54%, 11%);
  --card-bg: hsl(216, 50%, 16%);
  --text-color: hsl(215, 51%, 70%);
  --white-color: hsl(0, 0%, 100%);
  --accent-color: hsl(178, 100%, 50%);
  --line-color: hsl(215, 32%, 27%);
}

/* Reset e configurações básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  min-height: 100vh;
  background-color: var(--primary-bg);
  font-family: "Outfit", sans-serif;
}

/* Seção de perfil */
#perfil {
  position: absolute;
  background-color: var(--card-bg);
  color: var(--text-color);
  top: 50%;
  left: 50%;
  width: 320px;
  transform: translate(-50%, -50%);
  border-radius: 13px;
  padding: 16px;
}

/* Imagem de perfil com efeito hover */
.perfil_img {
  position: relative;
  height: 240px;
  background-image: url(images/image-equilibrium.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 12px;
  cursor: pointer;
}

.perfil_img img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: none;
}

.perfil_img:hover img {
  display: block;
}

.perfil_img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(178, 100%, 50%, 0.685);
  border-radius: 12px;
  z-index: 2;
  transition: opacity 0.5s ease;
  display: none;
}

.perfil_img:hover::after {
    display: block;
}


/* Corpo do perfil */
.perfil_body h1 {
  color: var(--white-color);
  margin: 20px 0 15px;
}

.perfil_body h1:hover {
    color: var(--accent-color);
    cursor: pointer;
  }

.perfil_body p {
  margin: 0 0 10px;
}

/* Detalhes do perfil */
.detalhes {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.detalhes p {
  padding-left: 5px;
}

.eth {
  font-weight: 600;
  color: var(--accent-color);
}

.clock, .eth {
  display: flex;
  align-items: center;
}

/* Avatar do perfil */
.perfil_avatar {
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding: 5px;
}

.jules {
  margin-left: 10px;
}

.avatar {
  width: 40px;
  border: 1px solid var(--white-color);
  border-radius: 50%;
}

.perfil_avatar p {
  font-weight: 300;
}

.perfil_avatar p a {
  text-decoration: none;
  color: var(--white-color);
}

/* Estilização do link de criação */
.perfil_avatar p a:hover {
  color: var(--accent-color);
}

/* Linha horizontal */
hr {
  border: 0.1px solid var(--line-color);
}

/* Atribuição */
.attribution {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  text-align: center;
  color: var(--text-color);
}

.attribution a {
  text-decoration: none;
  color: var(--white-color);
}

.attribution a:hover {
  border-bottom: 1px solid var(--white-color);
}
