/* =====================================================
   CABEÇALHO — BANCO DE PROMPTS
===================================================== */


/* =====================================================
   ESTRUTURA GERAL
===================================================== */

.cabecalho-auth {
    width: 100%;

    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(0, 0, 0, 0.92);

    border-bottom:
        1px solid rgba(34, 212, 253, 0.18);

    backdrop-filter: blur(8px);
}


/* =====================================================
   CONTEÚDO PRINCIPAL
===================================================== */

.cabecalho-auth__conteudo {
    width: 100%;
    max-width: none;
    min-height: 78px;

    margin: 0;

    padding-left: 30px;
    padding-right: 40px;

    box-sizing: border-box;

    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 100px;
}


/* =====================================================
   LOGO
===================================================== */

.cabecalho-auth__logo {
    justify-self: start;

    color:
        var(--cor-terciaria, #22d4fd);

    font-family:
        var(--fonte-primaria, "Krona One", sans-serif);

    font-size: 18px;
    font-weight: 400;

    line-height: 1.4;

    text-decoration: none;

    white-space: nowrap;
}


.cabecalho-auth__logo:hover {
    color:
        var(--cor-terciaria, #22d4fd);
}


/* =====================================================
   NAVEGAÇÃO CENTRAL
===================================================== */

.cabecalho-auth__navegacao {
    justify-self: center;

    min-width: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    white-space: nowrap;
}


/* =====================================================
   LINKS PRINCIPAIS E BOTÕES DOS DROPDOWNS
===================================================== */

.cabecalho-auth__link,
.cabecalho-auth__dropdown-botao {
    min-height: 43px;

    padding: 8px 0;

    box-sizing: border-box;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 0;
    border-bottom: 2px solid transparent;

    background: transparent;

    color:
        var(--cor-secundaria, #f6f6f6);

    font-family:
        var(--fonte-terciaria, "Roboto", sans-serif);

    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none;

    transition:
        color 0.18s ease,
        border-bottom-color 0.18s ease;
}


.cabecalho-auth__link:hover,
.cabecalho-auth__dropdown-botao:hover {
    color:
        var(--cor-terciaria, #22d4fd);
}


.cabecalho-auth__dropdown-botao {
    cursor: pointer;
}


/* =====================================================
   PÁGINA / ÁREA ATUAL
===================================================== */

.cabecalho-auth__link[aria-current="page"],
.cabecalho-auth__item--ativo {
    color: aquamarine;

    border-bottom-color:
        var(--cor-terciaria, #22d4fd);

    border-radius:
        0 0 8px 8px;
}

/* =====================================================
   SEPARADOR
===================================================== */

.cabecalho-auth__separador {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    color:
        rgba(34, 212, 253, 0.45);

    font-family:
        var(--fonte-terciaria, "Roboto", sans-serif);

    font-size: 17px;
    font-weight: 400;

    line-height: 1;

    user-select: none;

    pointer-events: none;
}


/* =====================================================
   DROPDOWN
===================================================== */

.cabecalho-auth__dropdown {
    position: relative;

    display: flex;

    align-items: center;
}


/* =====================================================
   CONTEÚDO DO DROPDOWN
===================================================== */

.cabecalho-auth__dropdown-conteudo {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;

    min-width: 210px;

    padding: 8px;

    background:
        rgba(0, 0, 0, 0.96);

    border:
        1px solid rgba(34, 212, 253, 0.25);

    border-radius: 10px;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.35);

    z-index: 1100;
}


.cabecalho-auth__dropdown:hover .cabecalho-auth__dropdown-conteudo {
    display: block;
}


.cabecalho-auth__dropdown-conteudo a,
.cabecalho-auth__usuario-menu-acao {
    width: 100%;

    display: block;

    padding: 10px 12px;

    box-sizing: border-box;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color:
        var(--cor-secundaria, #f6f6f6);

    font-family:
        var(--fonte-terciaria, "Roboto", sans-serif);

    font-size: 14px;
    font-weight: 500;

    text-align: left;
    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;
}


.cabecalho-auth__dropdown-conteudo a:hover,
.cabecalho-auth__usuario-menu-acao:hover {
    color:
        var(--cor-terciaria, #22d4fd);

    background:
        rgba(34, 212, 253, 0.10);
}

/* =====================================================
   USUÁRIO
===================================================== */

.cabecalho-auth__usuario {
    justify-self: end;

    min-width: 0;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 9px;

    color:
        var(--cor-secundaria, #f6f6f6);

    font-family:
        var(--fonte-terciaria, "Roboto", sans-serif);

    font-size: 15px;
    font-weight: 700;

    white-space: nowrap;
}

/* =====================================================
   GATILHO DO MENU DO USUÁRIO
===================================================== */

.cabecalho-auth__usuario-gatilho {
    padding: 0;

    display: flex;
    align-items: center;

    gap: 9px;

    border: 0;

    background: transparent;

    color:
        var(--cor-secundaria, #f6f6f6);

    font: inherit;

    cursor: pointer;
}


.cabecalho-auth__usuario-gatilho:hover {
    color:
        var(--cor-terciaria, #22d4fd);
}


/* =====================================================
   AVATAR
===================================================== */

.cabecalho-auth__avatar {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    object-fit: cover;

    border:
        2px solid var(--cor-terciaria, #22d4fd);

    border-radius: 50%;
}


/* =====================================================
   NOME DO USUÁRIO
===================================================== */

.cabecalho-auth__nome {
    max-width: 110px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =====================================================
   ACESSIBILIDADE
===================================================== */

.cabecalho-auth__logo:focus-visible,
.cabecalho-auth__link:focus-visible,
.cabecalho-auth__dropdown-botao:focus-visible,
.cabecalho-auth__dropdown-conteudo a:focus-visible {
    outline:
        2px solid var(--cor-terciaria, #22d4fd);

    outline-offset: 3px;
}


/* =====================================================
   RESPONSIVIDADE — ATÉ 1250px
===================================================== */

@media (max-width: 1250px) {

    .cabecalho-auth__conteudo {
        gap: 10px;
    }


    .cabecalho-auth__navegacao {
        gap: 12px;
    }


    .cabecalho-auth__nome {
        max-width: 90px;
    }
}


/* =====================================================
   RESPONSIVIDADE — ATÉ 1050px
===================================================== */

@media (max-width: 1050px) {

    .cabecalho-auth__conteudo {
        grid-template-columns:
            1fr auto;

        padding-top: 12px;
        padding-bottom: 12px;

        gap: 10px 20px;
    }


    /* =================================================
       LOGO
    ================================================= */

    .cabecalho-auth__logo {
        grid-column: 1;
        grid-row: 1;

        justify-self: start;

        font-size: 18px;
    }


    /* =================================================
       USUÁRIO
    ================================================= */

    .cabecalho-auth__usuario {
        grid-column: 2;
        grid-row: 1;

        justify-self: end;
    }


    /* =================================================
       NAVEGAÇÃO
    ================================================= */

    .cabecalho-auth__navegacao {
        grid-column: 1 / -1;
        grid-row: 2;

        justify-self: center;

        width: auto;

        display: flex;

        align-items: center;
        justify-content: center;

        gap: 14px;

        overflow: visible;
    }


    /* =================================================
       LINKS
    ================================================= */

    .cabecalho-auth__link,
    .cabecalho-auth__dropdown-botao {
        font-size: 18px;
    }


    .cabecalho-auth__separador {
        font-size: 17px;
    }


    /* =================================================
       AVATAR
    ================================================= */

    .cabecalho-auth__avatar {
        width: 42px;
        height: 42px;
    }


    /* =================================================
       NOME
    ================================================= */

    .cabecalho-auth__nome {
        max-width: 90px;

        font-size: 15px;
    }
}


/* =====================================================
   CABEÇALHO PÚBLICO
===================================================== */

.cabecalho-auth--publico .cabecalho-auth__conteudo {
    grid-template-columns:
        1fr auto;
}


.cabecalho-auth--publico .cabecalho-auth__logo {
    grid-column: 1;
    grid-row: 1;

    justify-self: start;
}


.cabecalho-auth--publico .cabecalho-auth__navegacao {
    grid-column: 2;
    grid-row: 1;

    justify-self: end;

    width: auto;

    display: flex;

    align-items: center;
    justify-content: flex-end;
}


/* =====================================================
   CABEÇALHO PÚBLICO — ATÉ 1050px
===================================================== */

@media (max-width: 1050px) {

    .cabecalho-auth--publico .cabecalho-auth__conteudo {
        grid-template-columns:
            1fr auto;

        padding-top: 0;
        padding-bottom: 0;
    }


    .cabecalho-auth--publico .cabecalho-auth__logo {
        grid-column: 1;
        grid-row: 1;

        justify-self: start;
    }


    .cabecalho-auth--publico .cabecalho-auth__navegacao {
        grid-column: 2;
        grid-row: 1;

        justify-self: end;

        width: auto;

        display: flex;

        align-items: center;
        justify-content: flex-end;

        overflow: visible;
    }
}


/* =====================================================
   CABEÇALHO PÚBLICO — ATÉ 650px
===================================================== */

@media (max-width: 650px) {

    .cabecalho-auth--publico .cabecalho-auth__conteudo {
        min-height: 68px;

        padding-left: 14px;
        padding-right: 14px;

        gap: 14px;
    }


    .cabecalho-auth--publico .cabecalho-auth__logo {
        font-size: 16px;
    }


    .cabecalho-auth--publico .cabecalho-auth__link {
        font-size: 14px;

        text-align: right;

        white-space: normal;
    }
}