/* IMPORTANDO FONTE MODERNA */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap");

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* FUNDO COLORIDO */
body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white; /* Garante que todo texto base seja branco */
}

/* CONTAINER PRINCIPAL */
#app {
  display: flex;
  width: 95%; /* Usa 95% da tela em vez de fixar em 900px */
  max-width: 900px; /* Não passa de 900px em monitores grandes */
  height: 90vh; /* 90% da altura da tela */
  min-height: 600px; /* Garante que não fique menor que 600px em telas boas */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  border-radius: 20px;
  overflow: hidden;
}
/* --- BARRA LATERAL --- */
aside {
  width: 300px;
  background: rgba(0, 0, 0, 0.2);
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: 700;
}

h3 {
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
}

/* LISTA DE FAVORITOS (Direto no ID) */
#lista-favoritos {
  list-style: none;
  overflow-y: auto;
  flex: 1;
}

/* Item da Lista */
#lista-favoritos li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

#lista-favoritos li:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

#lista-favoritos li img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

#lista-favoritos li span {
  color: white; /* Força cor branca */
  font-weight: 500;
  font-size: 14px;
}

#lista-favoritos .btn-remove {
  background: rgba(255, 255, 255, 0.1);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: none;
  color: #ff6b6b;
  cursor: pointer;
  margin-left: auto; /* Empurra o botão pra direita */
}

/* --- ÁREA PRINCIPAL --- */
main {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

/* BUSCA */
.search-box {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

#input-search {
  flex: 1;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: white;
  outline: none;
}

#input-search::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#btn-search {
  padding: 0 30px;
  background: white;
  color: #764ba2;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
}

/* PERFIL (Aqui estava o problema provavelmente) */
.profile-area {
  display: none; /* JS vai mudar isso pra block */
  animation: floatUp 0.6s ease-out;
}

.profile-header {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 20px;
}

/* IDs Específicos do Perfil */
#img-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

#txt-name {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0;
}
#txt-login {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  display: block;
}
#txt-bio {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

/* Botão Favoritar */
#btn-fav {
  margin-left: auto;
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.5);
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

#btn-fav:hover {
  background: #ffd700;
  color: #5a4a00;
}

/* Cards */
.stats-grid {
  display: flex;
  gap: 20px;
}

.card {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
}

.card strong {
  display: block;
  font-size: 36px;
  color: white;
}
.card small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  letter-spacing: 2px;
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
