/* =========================================================
   HIFEM — DOCENTES / INTEGRANTES
   Cards de pesquisadores com fotos e página de orientandos
   ========================================================= */

@import "./global.css";

/* =========================================================
   TÍTULOS INTERNOS
   ========================================================= */

.subt {
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 34px 0 24px;
}

.titl {
    color: var(--blue-dark);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 28px;
}

.prof-name {
    color: var(--gold);
    font-weight: 600;
}

/* =========================================================
   GRID DE INTEGRANTES
   ========================================================= */

.lista-integrantes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;

    padding: 0;
    margin: 0;
}

/* =========================================================
   CARD DO INTEGRANTE
   ========================================================= */

.lista-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 26px;

    min-height: 178px;
    padding: 28px;

    background: rgba(250, 248, 242, 0.76);
    border: 1px solid rgba(184, 155, 96, 0.24);
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.lista-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 155, 96, 0.58);
    background: rgba(250, 248, 242, 0.96);
}

.lista-card > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

/* Quando o card tem link de orientandos */
.lista-card:has(.alunos) {
    padding-bottom: 58px;
}

/* =========================================================
   FOTO DO INTEGRANTE
   ========================================================= */

.prof-img {
    flex: 0 0 auto;

    width: 112px;
    height: 112px;

    border-radius: 50%;
    object-fit: cover;

    border: 2px solid rgba(184, 155, 96, 0.42);
    background: var(--paper-2);

    filter: saturate(0.82) contrast(0.96);
}

/* =========================================================
   TEXTOS DO CARD
   ========================================================= */

.lista-integrantes h4 {
    color: var(--blue-dark);

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 600;

    margin: 0;
}

.lista-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
    margin: 0;

    word-break: break-word;
}

/* =========================================================
   LINKS LATTES / ORCID
   ========================================================= */

.link-lattes,
.link-orcid {
    display: inline-block;
    width: fit-content;

    color: var(--blue);
    text-decoration: none;

    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;

    border-bottom: 1px solid rgba(184, 155, 96, 0.55);

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.link-lattes:hover,
.link-lattes:focus-visible,
.link-orcid:hover,
.link-orcid:focus-visible {
    color: var(--gold);
    border-color: var(--gold);
    outline: none;
}

/* =========================================================
   LINK PARA ORIENTANDOS
   ========================================================= */

.alunos {
    position: absolute;
    right: 24px;
    bottom: 22px;

    color: var(--gold);
    text-decoration: none;

    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.alunos:hover,
.alunos:focus-visible {
    color: var(--blue-dark);
    transform: translateX(3px);
    outline: none;
}

/* =========================================================
   PÁGINA INDIVIDUAL — ORIENTANDOS
   IMPORTANTE:
   Não estilizar ul/li globalmente.
   Apenas #lista-alunos.
   ========================================================= */

#lista-alunos,
.orientandos-list,
.professor-list {
    list-style: none;
    padding: 0;
    margin: 34px 0 0;
}

#lista-alunos li,
.orientandos-list li,
.professor-list li {
    position: relative;

    padding: 16px 18px 16px 34px;
    margin-bottom: 12px;

    background: rgba(250, 248, 242, 0.7);
    border: 1px solid rgba(184, 155, 96, 0.18);

    color: var(--text);
    font-size: 17px;
    line-height: 1.5;
}

#lista-alunos li::before,
.orientandos-list li::before,
.professor-list li::before {
    content: "";

    position: absolute;
    left: 16px;
    top: 26px;

    width: 6px;
    height: 6px;
    border-radius: 50%;

    background: var(--gold);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 980px) {
    .lista-integrantes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .lista-card {
        align-items: flex-start;
        gap: 18px;
        padding: 22px;
    }

    .lista-card:has(.alunos) {
        padding-bottom: 22px;
    }

    .prof-img {
        width: 86px;
        height: 86px;
    }

    .lista-integrantes h4 {
        font-size: 24px;
    }

    .alunos {
        position: static;
        display: inline-block;
        width: fit-content;
        margin-top: 8px;
    }
}

@media (max-width: 440px) {
    .lista-card {
        flex-direction: column;
    }

    .prof-img {
        width: 104px;
        height: 104px;
    }
}