/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo da página */
body {
    background-color: #000;
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Modo claro */
body.light-mode {
    background-color: #fff;
    color: #000;
}

/* Conteúdo principal */
main {
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 20px;
}

/* Header */
header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

/* Título */
h1 {
    font-size: 3rem;
    margin: 0;
    color: inherit; /* herda do body */
}

/* Botão de toggle de tema */
#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    transition: color 0.3s ease;
    z-index: 10;
}

#theme-toggle:hover {
    color: #e50914;
}

/* Container dos perfis */
.container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

/* Bloco da área de perfis (semântico) */
.profiles {
    margin-top: 1.5rem;
    /* Espaço entre título e perfis */
}

/* Cada perfil */
.profile {
    display: flex;
    /* organiza imagem + legenda verticalmente */
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    /* indica interatividade */
    transition: transform 0.3s ease;
    outline: none;
    /* remove contorno padrão para usar estilo customizado */
}

.profile:hover,
.profile:focus-visible {
    transform: scale(1.1);
    /* efeito de zoom ao passar mouse ou focar */
}

.profile:focus-visible {
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.65);
    /* foco acessível no teclado */
}

/* Elemento semântico de figura */
.profile figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    /* remove margin padrão */
}

/* Imagem do perfil */
.profile img {
    width: 120px;
    /* largura fixa do avatar */
    height: 120px;
    /* altura fixa do avatar */
    border-radius: 50%;
    /* deixa redonda */
    object-fit: cover;
    /* preenche o elemento sem distorcer */
    border: 3px solid transparent;
    /* borda invisível inicial */
    transition: border-color 0.3s ease;
}

.profile:hover img,
.profile:focus-visible img {
    border-color: #e50914;
    /* Vermelho Netflix na borda quando hover ou focus */
}

/* Legenda do perfil */
.profile figcaption {
    margin-top: 0.5rem;
    /* distância da imagem */
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
}

/* No modo claro, legenda preta */
body.light-mode .profile figcaption {
    color: #000;
}


/* Responsividade */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .container {
        gap: 1rem;
    }

    .profile img {
        width: 100px;
        height: 100px;
    }
}