/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Corpo da página */
:root {
  --bg-color: #000;
  --text-color: #fff;
  --card-bg: rgba(255, 255, 255, 0.1);
  --border-color: #fff;
  --hover-border-color: #e50914;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.light-mode {
  --bg-color: #f8f9fa;
  --text-color: #212529;
  --card-bg: rgba(0, 0, 0, 0.05);
  --border-color: #212529;
  --hover-border-color: #e50914;
}

body.dark-mode {
  --bg-color: #000;
  --text-color: #fff;
  --card-bg: rgba(255, 255, 255, 0.1);
  --border-color: #fff;
  --hover-border-color: #e50914;
}

/* Main container */
main {
  text-align: center;
  max-width: 800px;
  width: 100%;
  padding: 20px;
}

.theme-toggle-wrapper {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
}

#theme-toggle {
  width: 52px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 2px solid var(--text-color);
  background-color: transparent;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

#theme-toggle::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease;
}

#theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--text-color);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#theme-toggle.is-light::after {
  transform: translateX(24px);
}

#theme-toggle:hover {
  border-color: var(--hover-border-color);
}

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


/* Título */
h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

/* Seção de perfis */
.profiles {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Lista de perfis */
.profile-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Item de perfil */
.profile {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.profile:hover {
  transform: scale(1.1);
}

/* Imagem do perfil */
.profile img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  transition: border-color 0.3s ease;
  background-color: var(--card-bg);
}

.profile:hover img {
  border-color: var(--hover-border-color); /* Vermelho Netflix */
}

/* Texto do perfil */
.profile p {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: var(--text-color);
}

/* Responsividade */
@media (max-width: 1200px) {
  main {
    max-width: 90%;
    padding: 16px;
  }
  h1 {
    font-size: 2.5rem;
  }
  .profile-list {
    gap: 1.5rem;
  }
  .profile img {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  .profile-list {
    gap: 1rem;
  }
  .profile img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  body {
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 20px;
  }
  main {
    max-width: 100%;
    padding: 14px;
  }
  h1 {
    font-size: 1.6rem;
    margin-bottom: 1.4rem;
  }
  .profile-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: min(280px, 100%);
    margin: 0 auto;
    justify-items: center;
  }
  .profile {
    width: 100%;
    max-width: 140px;
  }
  .profile img {
    width: 80px;
    height: 80px;
  }
  .profile p {
    font-size: 1rem;
  }
  .profiles {
    padding: 0 8px;
    width: 100%;
    justify-content: center;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  h1 {
    font-size: 1.4rem;
  }
  .profile img {
    width: 70px;
    height: 70px;
  }
  .profile p {
    font-size: 0.95rem;
  }
}
