* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #fff;
  background-color: #141414;
}

/* ── Header ── */
header {
  padding: 20px 4%;
  background: transparent;
}

/* O segundo <header> que envolve o <main> não deve criar visual */
header header {
  padding: 0;
}

header h1 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: 2px;
  color: #e50914;
  text-transform: uppercase;
  font-weight: 700;
}

/* ── Main ── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

/* ── Profile Selection ── */
.profile-selection {
  text-align: center;
  padding: 0;
  border-radius: 0;
  background: none;
}

.profile-selection h2 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 32px;
}

/* ── Listas (compensar estrutura aninhada) ── */
.profiles-wrapper {
  list-style: none;
}

.profiles-wrapper > li {
  list-style: none;
}

.profiles {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
}

/* ── Cada perfil ── */
.profile {
  list-style: none;
  text-align: center;
  cursor: pointer;
}

.profile a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.profile figure {
  margin: 0;
}

.profile img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
  display: block;
}

.profile:hover img,
.profile:focus-within img {
  border-color: #fff;
}

figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #808080;
  transition: color 0.2s ease;
}

.profile:hover figcaption,
.profile:focus-within figcaption {
  color: #e5e5e5;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 20px 16px;
  color: rgba(255,255,255,.5);
  font-size: 0.8rem;
}

/* ── Botão tema ── */
#theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  color: #fff;
  z-index: 1000;
}

#theme-toggle:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

/* ── Responsivo ── */
@media (max-width: 600px) {
  .profile-selection h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .profiles {
    gap: 16px;
  }

  .profile img {
    width: 84px;
    height: 84px;
  }

  figcaption {
    font-size: 0.75rem;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .profile img {
    width: 100px;
    height: 100px;
  }
}

@media (min-width: 1025px) {
  .profile img {
    width: 144px;
    height: 144px;
  }

  .profiles {
    gap: 32px;
  }

  figcaption {
    font-size: 1rem;
  }
}

/* ── Light Mode ── */
body.light-mode {
  background-color: #f5f5f5;
  color: #141414;
}

body.light-mode header h1 {
  color: #e50914;
}

body.light-mode .profile-selection h2 {
  color: #141414;
}

body.light-mode figcaption {
  color: #666;
}

body.light-mode .profile:hover figcaption {
  color: #333;
}

body.light-mode .profile:hover img {
  border-color: #333;
}

body.light-mode footer {
  color: rgba(0,0,0,.5);
}

body.light-mode #theme-toggle {
  background: rgba(255,255,255,.9);
  border-color: rgba(0,0,0,.2);
  color: #333;
}
/* ---------- GERENCIAR ---------- */

main {
    display: flex;
    flex-direction: column;
    align-items: center; /* CENTRALIZA TUDO */
}

.profile-selection {
    text-align: center;
}

.profiles {
    display: flex;
    justify-content: center; /* centraliza os perfis */
    gap: 20px; /* espaço entre eles */
    padding: 0;
}

.gerenciar {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.botao-gerenciar {
    background: transparent;
    border: 1px solid grey;
    color: grey;
    padding: 10px 30px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    font-weight: 200;
    transition: all 0.4s;
     
}

.botao-gerenciar:hover {
    border-color: #e5e5e5;
    color: #e5e5e5;
}