/* ==================================================
   PAGINA PESSOAL DE FRANCISCO BRAUN

   Projeto visual original: Amauri
   Modernizacao tecnica: dezembro de 2026

   Folha de estilos comum a todas as paginas
   ================================================== */


/* 1. Identidade visual */

:root {
    --azul-escuro: #0B2447;
    --azul-menu: #234585;
    --azul-borda: #0d6efd;
    --azul-grupo: #506cdb;
    --azul-registro: #718af0;
    --azul-link: #101b65;

    --texto: #212529;
    --cinza-rodape: #24272c;

    --fundo-cabecalho: linear-gradient(
        90deg,
        #0B2447 0%,
        #103466 35%,
        #144283 100%
    );

    --fundo-pagina: linear-gradient(
        90deg,
        #576CBC 0%,
        #657cda 35%,
        #718af0 100%
    );
}


/* 2. Configuracoes gerais */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-family: "Open Sans", Arial, sans-serif;
    line-height: 1.5;

    background: var(--fundo-pagina);
    color: var(--texto);
}

a {
    color: var(--azul-escuro);
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid white;
    outline-offset: 4px;
}

img {
    max-width: 100%;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 12px;
}


/* 3. Cabecalho */

header {
    background: var(--fundo-cabecalho);
    border-bottom: 3px solid gray;
}

.cabecalho {
    width: 90%;
    margin: auto;
    padding: 20px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: block;
    width: 80px;
    height: 65px;
    object-fit: contain;
}


/* 4. Menu de navegacao */

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

nav a {
    padding: 10px 8px;

    background: var(--azul-escuro);
    color: white;

    border: 1px solid var(--azul-borda);
    border-radius: 6px;

    font-size: 20px;
}

nav a:hover {
    background: var(--azul-menu);
    color: #a9dfff;
}

nav a.lattes {
    padding: 0 4px;
    background: transparent;
    border: none;
}

.lattes img {
    display: block;
    width: 60px;
    height: 45px;
    object-fit: contain;
}

.lattes:hover img {
    filter: brightness(70%);
}


/* 5. Rodape */

footer {
    background: var(--cinza-rodape);
    color: white;
    border-top: 3px solid gray;
}

.rodape {
    padding: 15px;

    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    align-items: center;
    gap: 15px;
}

address {
    grid-column: 2;

    text-align: center;
    font-style: normal;
    font-weight: normal;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.rodape > a {
    justify-self: center;
}

footer a {
    color: white;
}

footer a:hover {
    text-decoration: underline;
}


/* 6. Estilos comuns aos grupos de alunos e pesquisa */

.grupo-alunos h2,
.grupo-pesquisa h2 {
    margin: 0;
    padding: 10px;
    background: var(--azul-grupo);
    color: white;
    border: 2px solid var(--azul-grupo);
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.4;
}

.grupo-alunos ul,
.grupo-pesquisa ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 2px solid var(--azul-grupo);
    border-top: 0;
}

.grupo-alunos li,
.grupo-pesquisa li {
    padding: 8px;
    background: var(--azul-registro);
    text-align: center;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.grupo-alunos li + li,
.grupo-pesquisa li + li {
    border-top: 2px solid var(--azul-grupo);
}

.grupo-alunos a,
.pesquisa a,
.disciplinas a,
.semestres-anteriores a,
.lista-diversos a {
    color: var(--azul-link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.grupo-alunos a:hover,
.pesquisa a:hover,
.disciplinas a:hover,
.semestres-anteriores a:hover,
.lista-diversos a:hover {
    color: #000;
}

/* 7. Adaptacao para telas menores */

@media (max-width: 900px) {

    .cabecalho {
        flex-direction: column;
    }

    nav a {
        font-size: 1rem;
        padding: 10px;
    }

}

@media (max-width: 600px) {

    .cabecalho {
        padding: 12px 0;
        gap: 12px;
    }

    nav {
        gap: 6px;
    }

    nav a {
        padding: 8px;
    }

    main {
        padding: 20px 15px;
    }

    .rodape {
        display: flex;
        flex-direction: column;
    }

}
