/* Estilos inspirados na Netflix */

/* Variáveis de tema */
:root {
    /* Dark Mode (padrão) */
    --bg-color: #000;
    --text-color: #fff;
    --border-color: #fff;
    --box-shadow-color: rgba(255, 255, 255, 0.25);
    --hover-shadow-color: rgba(255, 255, 255, 0.6);
}

/* Light Mode */
html[data-theme="light"] {
    --bg-color: #f5f5f5;
    --text-color: #000;
    --border-color: #333;
    --box-shadow-color: rgba(0, 0, 0, 0.15);
    --hover-shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    /* define fundo escuro e cor de texto clara */
    background-color: var(--bg-color);
    color: var(--text-color);
    /* define a família de fontes principais */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* remove margens/padding padrão do body */
    margin: 0;
    padding: 0;
    /* centraliza o conteúdo vertical e horizontalmente */
    display: flex;
    justify-content: center;
    align-items: center;
    /* garante altura mínima da tela toda */
    min-height: 100vh;
    /* transição suave entre temas */
    transition: background-color 0.3s, color 0.3s;
}

/* Botão de toggle do tema */
.theme-toggle {
    /* posiciona no canto superior direito */
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    /* estilo do botão */
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    /* transição suave */
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 999;
}

.theme-toggle:hover {
    /* efeito ao passar mouse */
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--box-shadow-color);
}

.theme-toggle:active {
    /* efeito ao clicar */
    transform: scale(0.95);
}

main {
    /* centraliza texto e размера de bloco */
    text-align: center;
    max-width: 800px;
    width: 100%;
}

h1 {
    /* tamanho grande e espaçamento abaixo */
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.profiles {
    /* layout flex para cards de perfil */
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    /* quebra em várias linhas se precisar */
}

.profiles ul {
    /* remove bullets e estrutura padrão de lista */
    list-style: none;
    margin: 0;
    padding: 0;
    /* mantém flex para layout horizontal */
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile {
    /* cada perfil é um bloco centralizado */
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile img {
    /* tamanho fixo e forma quadrada */
    width: 120px;
    height: 120px;
    border-radius: 0;
    object-fit: cover;
    /* garante recorte adequado da imagem */
    border: 3px solid transparent;
    /* base de borda invisível */
    transition: border-color 0.2s, box-shadow 0.2s;
    
}

.profile:hover img {
    /* efeito ao passar mouse */
    border-color: var(--border-color);
   
}

.profile p {
    /* espaçamento do texto e tamanho de fonte */
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-color);
}

.logo {
    width: 180px;
    max-width: 100%;
    height: 50px;
    display: block;
    margin: 1rem auto;
}

/* Responsividade */
/* Mobile: max-width 600px */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .profile img {
        width: 100px;
        height: 100px;
    }

    .profiles ul {
        gap: 1rem;
    }
}

/* Tablet e Desktop: visualização completa horizontal */
@media (min-width: 601px) {
    .profiles ul {
        flex-wrap: nowrap;
        /* força linha única em telas maiores */
    }
}