/* =======================================================
   RESET / BASE
======================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #222;
    background-color: #fff;
}

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #555;
    outline-offset: 3px;
}

/* =======================================================
   PÁGINA INICIAL
======================================================= */

.sobre-estudio {
    padding: 80px 0 100px;
}

.logo-estudio {
    width: 260px;
    max-width: 70%;
}

.estudio-introducao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    min-height: 420px;
}

.estudio-texto {
    max-width: 520px;
    text-align: left;
}

.estudio-texto span,
.secao-titulo span {
    display: block;
    margin-bottom: 12px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #777;
}

.estudio-texto h1 {
    margin-bottom: 25px;

    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
}

.estudio-texto p {
    margin-bottom: 15px;

    color: #555;
    font-size: 15px;
    line-height: 1.8;
}


/* =======================================================
   TÍTULOS DAS SEÇÕES
======================================================= */

.secao-titulo {
    margin-bottom: 45px;
    text-align: center;
}

.secao-titulo h1,
.secao-titulo h2 {
    margin-bottom: 12px;

    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
}

.secao-titulo p {
    max-width: 600px;
    margin: 0 auto;

    color: #777;
    font-size: 14px;
    line-height: 1.7;
}


/* =======================================================
   EQUIPE
======================================================= */

.equipe-secao {
    padding-top: 80px;
}

.equipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.membro {
    text-align: center;
}

.membro img {
    width: 150px;
    height: 150px;

    object-fit: cover;
    border-radius: 50%;

    margin-bottom: 20px;

    filter: grayscale(100%);

    transition:
        filter 0.3s ease,
        transform 0.3s ease;
}

.membro:hover img {
    filter: grayscale(0%);
    transform: translateY(-5px);
}

.membro h3 {
    margin-bottom: 7px;

    font-size: 17px;
    font-weight: 600;
}

.membro span {
    display: block;

    margin-bottom: 12px;

    color: #777;

    font-size: 12px;
    font-weight: 500;
}

.membro p {
    max-width: 300px;

    margin: 0 auto;

    color: #666;

    font-size: 13px;
    line-height: 1.7;
}


/* =======================================================
   SOBRE O PROJETO
======================================================= */

.sobre-projeto {
    padding: 100px 0;
    background-color: #f8f8f8;
}

.projeto-bloco {
    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 70px;

    margin-bottom: 70px;
}

.projeto-bloco:last-child {
    margin-bottom: 0;
}

.projeto-imagem img {
    display: block;
    width: 100%;
    border-radius: 14px;
}

.projeto-texto h2 {
    margin-bottom: 20px;

    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
}

.projeto-texto p {
    margin-bottom: 16px;

    color: #555;

    font-size: 14px;
    line-height: 1.8;
}


/* =======================================================
   ODS
======================================================= */

.ods {
    padding: 75px 20px 80px;
    background-color: #fff;
}

.ods-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.ods-titulo {
    margin-bottom: 45px;
    text-align: center;
}

.ods-titulo span {
    display: block;

    margin-bottom: 10px;

    color: #777;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
}

.ods-titulo h2 {
    margin: 0 0 12px;

    font-size: 30px;
    font-weight: 600;
}

.ods-titulo p {
    max-width: 600px;

    margin: 0 auto;

    color: #777;

    font-size: 14px;
    line-height: 1.7;
}

.ods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.ods-item {
    text-align: center;
}

.ods-item img {
    display: block;

    width: 150px;
    height: 150px;

    object-fit: cover;

    margin: 0 auto 20px;
}

.ods-item h3 {
    max-width: 230px;

    margin: 0 auto 10px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.ods-item p {
    max-width: 270px;

    margin: 0 auto;

    color: #666;

    font-size: 13px;
    line-height: 1.7;
}


/* =======================================================
   LINKS / NAVEGAÇÃO
======================================================= */

.nav-link-custom {
    text-decoration: none;
    color: #000;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link-custom:hover {
    color: #777;
}

.desktop-nav-links {
    gap: 35px;
}

/* Links para perfis de autores */
.link-perfil-autor {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.link-perfil-autor:hover {
    text-decoration: underline;
}

/* =======================================================
   PERFIL / MENU
======================================================= */

.foto-perfil-nav {
    width: 60px;
    height: 60px;

    border-radius: 50%;

    object-fit: cover;

    cursor: pointer;
}

.perfil-menu {
    position: relative;

    display: flex;
    align-items: center;
}

.perfil-dropdown {
    display: none;

    position: absolute;

    top: 65px;
    right: 0;

    min-width: 180px;

    padding: 8px;

    background: white;

    border-radius: 8px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    z-index: 1000;
}

.perfil-dropdown.aberto {
    display: block;
}

.perfil-dropdown button {
    display: block;

    width: 100%;

    padding: 9px 20px;

    border: none;
    border-radius: 5px;

    background: none;

    text-align: left;
    white-space: nowrap;

    font-family: "Poppins", sans-serif;
}

.perfil-dropdown button:hover {
    background-color: #f2f2f2;
}


/* =======================================================
   CORES / TEMAS
======================================================= */

.background-download {
    background-color: #000;
    color: white;
}

.download-nav {
    background-color: #fff;
    color: #000;
}

.btn-download {
    background-color: #000;
    color: white;
    border: 2px solid white;
}


/* =======================================================
   MENU HAMBÚRGUER
======================================================= */

.hamburger-btn {
    display: none;

    padding: 8px;

    background: none;
    border: none;

    z-index: 1100;
}

.hamburger-btn span {
    display: block;

    width: 26px;
    height: 3px;

    margin: 5px 0;

    background-color: #1a1a1a;

    border-radius: 2px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

/* =======================================================
   MENU MOBILE
======================================================= */

.mobile-nav-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.3s ease;

    z-index: 1040;
}

.mobile-nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-panel {
    position: fixed;

    top: 0;
    right: 0;

    width: min(78vw, 320px);
    height: 100%;

    display: flex;
    flex-direction: column;

    padding: 24px;

    background: #fff;

    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);

    transform: translateX(100%);

    transition: transform 0.32s ease;

    z-index: 1050;
}

.mobile-nav-panel.is-open {
    transform: translateX(0);
}

.mobile-nav-panel .close-btn {
    align-self: flex-end;

    margin-bottom: 24px;

    background: none;
    border: none;

    font-size: 1.8rem;
    line-height: 1;
}

.mobile-nav-panel a {
    display: block;

    padding: 14px 4px;

    color: #1a1a1a;

    font-size: 1.2rem;

    border-bottom: 1px solid #eee;
}

.mobile-nav-panel a:hover {
    color: #555;
}

.mobile-nav-panel .login-btn-mobile {
    margin-top: 24px;
}

body.nav-locked {
    overflow: hidden;
}


/* =======================================================
   RESPONSIVIDADE DO MENU
======================================================= */

@media (max-width: 1069px) {

    .desktop-nav-links {
        display: none !important;
    }

    .hamburger-btn {
        display: block;
    }

}

/* =======================================================
   FOOTER
======================================================= */

.footer {
    padding: 35px 0 30px;

    background-color: #000;
    color: #fff;
}

.footer-container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
    padding: 0 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 60px;
}

.footer-info {
    max-width: 430px;
}

.footer-text {
    margin: 0 0 10px;

    color: #fff;

    font-size: 13px;
    line-height: 1.5;
}

.footer-copyright {
    margin: 18px 0 0;

    color: #ccc;

    font-size: 12px;
    line-height: 1.5;
}

.footer-direita {
    display: flex;
    flex-direction: column;

    align-items: flex-end;

    gap: 35px;
}

.footer-links {
    display: flex;
    align-items: center;

    gap: 7px;

    white-space: nowrap;
}

.footer-links a {
    color: #fff;

    font-size: 13px;

    transition: opacity 0.2s ease;
}

.footer-links span {
    color: #777;
    font-size: 13px;
}

.footer-links a:hover {
    opacity: 0.65;
}

.footer-social {
    display: flex;
    align-items: center;

    gap: 25px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
}

.footer-social ion-icon {
    font-size: 27px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.footer-social a:hover ion-icon {
    transform: translateY(-3px);
    opacity: 0.7;
}


/* =======================================================
   PÁGINA DE DOWNLOAD
======================================================= */

.download-page {
    min-height: calc(100vh - 100px);
    padding: 80px 20px 100px;
}

.download-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.download-introducao {
    max-width: 650px;
    margin: 0 auto 70px;
    text-align: center;
}

.download-label {
    display: block;

    margin-bottom: 12px;

    color: #aaa;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 2px;
}

.download-introducao h1 {
    margin: 0 0 20px;

    font-size: 42px;
    font-weight: 700;

    color: #fff;
}

.download-introducao p {
    margin: 0;

    color: #ccc;

    font-size: 15px;
    line-height: 1.8;
}

.download-plataformas {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 35px;
}

.download-plataforma {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 35px 25px;

    border: 1px solid #333;
    border-radius: 14px;

    background-color: #080808;

    text-align: center;
}

.download-plataforma img {
    width: 120px;
    height: 80px;

    object-fit: contain;

    margin-bottom: 25px;
}

.download-plataforma img.plataforma-steam {
    width: 150px;
}

.download-plataforma h2 {
    margin: 0 0 20px;

    color: #fff;

    font-size: 22px;
    font-weight: 600;
}

.download-plataforma .btn-download {
    width: 150px;

    margin: 0;

    padding: 10px 20px;

    border: 1px solid #fff;
    border-radius: 6px;

    background-color: #fff;
    color: #000;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.download-plataforma .btn-download:hover {
    background-color: #000;
    color: #fff;
}


/* =======================================================
   RESPONSIVIDADE - DOWNLOAD
======================================================= */

@media (max-width: 768px) {

    .download-page {
        padding: 60px 20px 80px;
    }

    .download-introducao {
        margin-bottom: 50px;
    }

    .download-introducao h1 {
        font-size: 32px;
    }

    .download-introducao p {
        font-size: 14px;
    }

    .download-plataformas {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .download-plataforma {
        padding: 30px 20px;
    }

}

/* =======================================================
   ARTIGOS
======================================================= */

.sidebar-filtros {
    padding-left: 40px;
}

.filtro-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 120px;

    padding: 0;
    margin-bottom: 15px;

    background: none;
    border: none;

    font-size: 14px;
    font-weight: 500;
}

.lista-filtros {
    list-style: none;

    padding: 0;
    margin: 0;

    font-size: 14px;
}

.lista-filtros li {
    margin-bottom: 6px;
    cursor: pointer;
}

.lista-filtros li.selecionada {
    font-weight: 700;
}

.artigo {
    max-width: 560px;
    margin-bottom: 50px;
}

.artigo-titulo {
    font-size: 15px;
    font-weight: 700;
}

.autor {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}

.artigo-texto {
    color: #555;
    font-size: 12px;
}

.btn-criar {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 140px;
    height: 60px;

    background: white;

    border: 1px solid #555;
}

.btn-criar span {
    font-size: 18px;
    font-weight: 400;
}

.btn-criar-icon {
    width: 22px;
}

.chevron {
    transition: transform 0.5s ease;
}

.filtro-btn[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.btn-voltar-artigos {
    padding: 0;
    margin-bottom: 25px;

    background: none;
    border: none;

    color: #555;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
}

.btn-voltar-artigos:hover {
    color: #000;
}

.separador-artigos {
    border: none;
    border-top: 1px solid #ccc;
    margin: 25px 0;
    opacity: 1;
}

/* =======================================================
   FILTRO DE AUTOR
======================================================= */

.filtro-autor {
    margin-bottom: 20px;
}

.filtro-autor label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 500;
}

.filtro-autor input {
    width: 100%;

    padding: 9px 12px;

    border: 1px solid #ddd;
    border-radius: 6px;

    outline: none;

    font-size: 12px;
}

.filtro-autor input:focus {
    border-color: #999;
}


/* =======================================================
   CRIAR ARTIGO
======================================================= */

.container {
    max-width: 1100px;
}

label {
    font-size: 14px;
    font-weight: 600;
}

.campo {
    border: 1px solid #888;
    border-radius: 10px;
}

.campo-texto {
    border: 1px solid #888;
    border-radius: 10px;

    resize: none;
}

.btn-adicionar {
    display: flex;
    align-items: center;

    gap: 6px;

    background: none;
    border: none;

    font-size: 16px;
}

.btn-adicionar span {
    font-weight: 500;
}

.btn-outline-dark {
    padding: 4px 18px;
    border-radius: 0;
}

.form-control:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
}

.tag-opcao {
    padding: 8px 16px;

    background: white;

    border: 1px solid #222;
    border-radius: 20px;

    transition: 0.2s;
}

.tag-opcao.selecionada {
    background: #222;
    color: white;
}

.btn-remover-referencia {
    border: none;
    background: none;

    color: #dc3545;

    font-size: 12px;
    font-weight: bold;
}

.btn-remover-referencia:hover {
    text-decoration: underline;
}


/* =======================================================
   ARTIGO INDIVIDUAL
======================================================= */

.cabecalho-artigo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.btn-salvar {
    display: flex;
    align-items: center;

    gap: 5px;

    padding: 0;
    margin: 0;

    background: none;
    border: none;

    font-family: "Poppins", sans-serif;
    font-size: 16px;
}

.estrela {
    font-size: 28px;
    line-height: 1;
}


/* =======================================================
   TAGS DO ARTIGO
======================================================= */

.tags-artigo {
    margin-top: 40px;
}

.tags-artigo h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.lista-tags-artigo {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.tag-artigo {
    display: inline-block;

    padding: 6px 14px;

    background-color: white;

    border: 1px solid #222;
    border-radius: 20px;

    font-size: 14px;
}


/* =======================================================
   REFERÊNCIAS DO ARTIGO
======================================================= */

.fontes-artigo {
    margin-top: 40px;
    margin-bottom: 30px;
}

.fontes-artigo h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.lista-fontes-artigo {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.fonte-artigo {
    display: flex;
    flex-direction: column;

    gap: 3px;

    padding: 12px 15px;

    background-color: #f8f8f8;

    border: 1px solid #ddd;
    border-radius: 8px;
}

.fonte-artigo strong {
    font-size: 15px;
}

.fonte-artigo a {
    color: #333;

    font-size: 14px;

    word-break: break-all;
    text-decoration: underline;
}

.fonte-artigo a:hover {
    color: #000;
}


/* =======================================================
   PAINEL ADMINISTRATIVO
======================================================= */

.admin-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 25px;
}

.admin-cabecalho h1 {
    margin: 0;

    font-size: 32px;
    font-weight: 600;
}

.admin-cabecalho p {
    margin: 8px 0 0;

    color: #777;

    font-size: 15px;
}

.admin-contador {
    min-width: 90px;

    padding: 12px 20px;

    background-color: #f8f8f8;

    border: 1px solid #ddd;
    border-radius: 10px;

    text-align: center;
}

.admin-contador span {
    display: block;

    font-size: 25px;
    font-weight: 600;
}

.admin-contador small {
    color: #777;
    font-size: 12px;
}

.admin-divisor {
    margin: 0 0 30px;
    border-color: #ddd;
}


/* =======================================================
   ABAS DO ADMIN
======================================================= */

.abas-artigos {
    display: flex;

    gap: 10px;

    margin-bottom: 25px;

    border-bottom: 1px solid #ddd;
}

.aba-artigo {
    padding: 12px 5px;
    margin-right: 20px;

    background: none;
    border: none;
    border-bottom: 2px solid transparent;

    color: #777;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;

    transition: 0.2s;
}

.aba-artigo:hover {
    color: #222;
}

.aba-artigo.ativa {
    color: #222;

    font-weight: 600;

    border-bottom-color: #222;
}


/* =======================================================
   LISTA DE ARTIGOS ADMIN
======================================================= */

#listaArtigosAdmin {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.artigo-pendente {
    padding: 25px;

    background-color: white;

    border: 1px solid #ddd;
    border-radius: 12px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);

    transition: 0.2s;
}

.artigo-pendente:hover {
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.09);
}

.artigo-pendente h2 {
    margin: 0 0 8px;

    font-size: 21px;
    font-weight: 600;
}

.artigo-pendente h3 {
    margin: 0 0 18px;

    color: #777;

    font-size: 14px;
    font-weight: 400;
}

.artigo-pendente .conteudo-preview {
    margin: 0;

    color: #444;

    font-size: 14px;
    line-height: 1.7;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.artigo-pendente .data-artigo-admin {
    margin: 15px 0 0;

    color: #999;

    font-size: 12px;
}


/* =======================================================
   AÇÕES DO ADMIN
======================================================= */

.acoes-artigo {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 20px;
    padding-top: 18px;

    border-top: 1px solid #eee;
}

.acoes-artigo button {
    padding: 9px 18px;

    border: none;
    border-radius: 6px;

    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 500;

    transition: 0.2s;
}

.btn-visualizar {
    background-color: #eee;
    color: #222;
}

.btn-visualizar:hover {
    background-color: #ddd;
}

.btn-aprovar {
    background-color: #222;
    color: white;
}

.btn-aprovar:hover {
    background-color: #444;
}

.btn-rejeitar {
    background-color: #ddd;
    color: #222;
}

.btn-rejeitar:hover {
    background-color: #bbb;
}


/* =======================================================
   LISTA VAZIA
======================================================= */

.lista-vazia {
    padding: 40px;

    background-color: #fafafa;

    border: 1px dashed #ccc;
    border-radius: 12px;

    text-align: center;

    color: #888;
}


/* =======================================================
   LOGIN
======================================================= */

.body-login {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background-image: url("images/background-login.jpg");
    background-size: cover;
    background-position: center;

    font-family: Arial, Helvetica, sans-serif;
}

.card-login {
    width: 450px;

    background: #f7f7f7;

    border-radius: 28px;

    overflow: hidden;
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 28px 24px;

    background-color: #000;
    color: white;
}

.login-header h2 {
    margin: 0;

    font-size: 24px;
    font-weight: 700;
}

.icon-close {
    width: 30px;
    height: 30px;
}

.login-tabs {
    display: flex;

    background: #ececec;

    border-bottom: 1px solid #d9d9d9;
}

.tab {
    flex: 1;

    padding: 18px;

    background: transparent;
    border: none;

    color: #6b7280;

    font-size: 18px;
    font-weight: 600;
}

.tab.active {
    background: #e0e0e0;

    color: #37393d;

    border-bottom: 3px solid #000;
}

.login-form {
    padding: 24px;
}

.form-label {
    display: block;

    margin-top: 10px;
    margin-bottom: 10px;

    color: #374151;

    font-size: 14px;
    font-weight: 600;
}

.input-group-custom {
    position: relative;
}

.input-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    width: 20px;
    height: 20px;

    transform: translateY(-50%);

    color: #9ca3af;
}

.form-control {
    width: 100%;
    height: 52px;

    padding-left: 45px;
    padding-right: 15px;

    background: #f8f8f8;

    border: 2px solid #d1d5db;
    border-radius: 14px;

    font-size: 16px;
}

.btn-login {
    width: 100%;

    margin-top: 15px;
    padding: 15px;

    background-color: #000;
    color: white;

    border: none;
    border-radius: 14px;

    font-size: 18px;
    font-weight: 700;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

    transition: 0.2s;
}

.btn-login:hover {
    background-color: #222;
}

.senha-container {
    position: relative;
}

.senha-container .form-control {
    padding-right: 50px;
}

.btn-mostrar-senha {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: none;

    color: #777;
    cursor: pointer;

    padding: 0;
}

.btn-mostrar-senha:hover {
    color: #000;
}

.btn-mostrar-senha svg {
    width: 19px;
    height: 19px;
}

/* Remove o botão nativo de mostrar senha do Edge */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* =======================================================
   REGISTRAR
======================================================= */

.profile-upload {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 25px;
}

.profile-avatar {
    width: 82px;
    height: 82px;

    flex-shrink: 0;

    overflow: hidden;

    border: 4px solid #b8bbbe;
    border-radius: 50%;
}

.profile-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.terms-box {
    margin-top: 18px;
    margin-bottom: 18px;

    padding: 14px;

    background: #edf3fb;

    border: 1px solid #d9e3f1;
    border-radius: 12px;

    color: #6b7280;

    font-size: 14px;
    line-height: 1.5;
}


/* =======================================================
   MEUS ARTIGOS
======================================================= */

.meu-artigo {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 25px;

    background-color: white;

    border: 1px solid #ddd;
    border-radius: 12px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);

    transition: 0.2s;
}

.meu-artigo:hover {
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.09);
}

.meu-artigo-conteudo h2 {
    margin: 0 0 6px;

    font-size: 19px;
    font-weight: 600;
}

.meu-artigo-data {
    margin: 0;

    color: #999;

    font-size: 12px;
}

.meu-artigo-acoes {
    display: flex;
    align-items: center;

    gap: 12px;
}

.status-artigo {
    padding: 6px 12px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 500;

    text-transform: uppercase;
}

.status-aprovado {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-pendente {
    background-color: #fff8e1;
    color: #f57f17;
}

.status-rejeitado {
    background-color: #ffebee;
    color: #c62828;
}

.meu-artigo-acoes .btn-visualizar,
.btn-deletar {
    padding: 8px 15px;

    background-color: #eee;
    color: #222;

    border: none;
    border-radius: 6px;

    font-family: "Poppins", sans-serif;
    font-size: 11px;

    transition: 0.2s;
}

.meu-artigo-acoes .btn-visualizar:hover,
.btn-deletar:hover {
    background-color: #ddd;
}


/* =======================================================
   NOTIFICAÇÕES
======================================================= */

.notificacao {
    position: fixed;

    top: 25px;
    right: 25px;

    z-index: 9999;

    min-width: 280px;
    max-width: 400px;

    padding: 15px 20px;

    background-color: #222;
    color: white;

    border-radius: 10px;

    font-family: "Poppins", sans-serif;
    font-size: 14px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);

    opacity: 0;

    transform: translateY(-15px);

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.notificacao.visivel {
    opacity: 1;
    transform: translateY(0);
}

.notificacao.erro {
    background-color: #b42318;
}

.notificacao.sucesso {
    background-color: #222;
}

.notificacao.aviso {
    background-color: #555;
}


/* =======================================================
   RESPONSIVIDADE DA PÁGINA INICIAL
======================================================= */

@media (max-width: 768px) {

    .sobre-estudio {
        padding: 50px 20px 70px;
    }

    .estudio-introducao {
        flex-direction: column;

        gap: 35px;

        min-height: auto;

        text-align: center;
    }

    .estudio-texto {
        text-align: center;
    }

    .estudio-texto h1 {
        font-size: 32px;
    }

    .logo-estudio {
        width: 200px;
    }

    .equipe-secao {
        padding-top: 60px;
    }

    .equipe-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .sobre-projeto {
        padding: 70px 20px;
    }

    .projeto-bloco,
    .projeto-bloco-invertido {
        grid-template-columns: 1fr;

        gap: 30px;

        margin-bottom: 70px;
    }

    .projeto-bloco-invertido .projeto-texto {
        order: 1;
    }

    .projeto-bloco-invertido .projeto-imagem {
        order: 2;
    }

    .ods {
        padding: 60px 20px;
    }

    .ods-titulo h2 {
        font-size: 26px;
    }

    .ods-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .ods-item img {
        width: 135px;
        height: 135px;
    }

    .footer {
        padding: 35px 20px 30px;
    }

    .footer-container {
        flex-direction: column;

        text-align: center;

        gap: 30px;
    }

    .footer-info {
        max-width: 450px;
    }

    .footer-text {
        font-size: 12px;
    }

    .footer-copyright {
        font-size: 11px;
    }

    .footer-direita {
        align-items: center;

        gap: 25px;
    }

    .footer-links {
        flex-wrap: wrap;

        justify-content: center;

        white-space: normal;
    }

    .footer-social {
        gap: 22px;
    }

    .sidebar-filtros {
        padding-left: 0;
    }

    .meu-artigo {
        flex-direction: column;
        align-items: flex-start;
    }

    .meu-artigo-acoes {
        width: 100%;

        flex-wrap: wrap;
    }

}


/* =======================================================
   RESPONSIVIDADE DO LOGIN
======================================================= */

@media (max-width: 600px) {

    .card-login {
        width: calc(100% - 30px);
    }

    .login-header {
        padding: 22px 20px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .login-form {
        padding: 20px;
    }

    .notificacao {
        top: 15px;
        left: 15px;
        right: 15px;

        min-width: auto;
        max-width: none;
    }

}


/* =======================================================
   RESPONSIVIDADE ADMIN
======================================================= */

@media (max-width: 600px) {

    .admin-cabecalho {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-contador {
        width: 100%;
    }

    .abas-artigos {
        overflow-x: auto;

        gap: 5px;
    }

    .aba-artigo {
        flex-shrink: 0;

        margin-right: 10px;
    }

    .acoes-artigo {
        flex-wrap: wrap;
    }

}

.perfil-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.foto-perfil-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    display: block;
    border: 2px solid #000000;
}

.perfil-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 190px;
    padding: 8px;

    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);

    z-index: 1000;
}

.perfil-dropdown.aberto {
    display: block;
}

.perfil-dropdown button {
    width: 100%;
    padding: 10px;

    border: none;
    background: none;

    text-align: left;
    font-family: "Poppins", sans-serif;
    font-size: 13px;

    cursor: pointer;
    border-radius: 5px;
}

.perfil-dropdown button:hover {
    background-color: #f2f2f2;
}

/* Corrige o cabeçalho em telas pequenas */
@media (max-width: 1069px) {
    #loginButtons {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
        padding-left: 0;
        padding-right: 12px;
    }

    #loginButtons .perfil-menu {
        flex: 0 0 auto;
    }

    #loginButtons .foto-perfil-nav {
        width: 38px;
        height: 38px;
    }

    #loginButtons .hamburger-btn {
        display: block;
        flex: 0 0 auto;
        margin: 0;
        padding: 4px;
    }

    #loginButtons > a {
        white-space: nowrap;
    }
}


/* Ajustes do cabeçalho em telas pequenas */
@media (max-width: 1069px) {
    /* Esconde o LOGIN do cabeçalho, mas mantém o LOGIN do menu lateral */
    #loginButtons > a {
        display: none !important;
    }

    /* Alinha a foto de perfil e o botão hambúrguer */
    #loginButtons {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    /* Esconde as três linhas enquanto o menu lateral estiver aberto */
    #hamburgerBtn.menu-aberto {
        display: none !important;
    }
}

/* Mantém o cabeçalho em uma única linha no desktop */

@media (min-width: 1070px) {
    header .row {
        flex-wrap: nowrap;
    }

    #loginButtons {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
        width: auto;
        margin-left: 0;
        padding-left: 12px;
        padding-right: 12px;
    }

    #loginButtons > a {
        white-space: nowrap;
    }
}


/* =======================================================
   RESPONSIVIDADE — ARTIGOS
======================================================= */

.artigos-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 130px;
    align-items: start;
    gap: 32px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 35px 40px 60px;
}

.artigos-layout > * {
    min-width: 0;
}

.artigos-layout .sidebar-filtros {
    padding-left: 0;
}

.artigos-lista #listaArtigos {
    min-width: 0;
    overflow-wrap: anywhere;
}

.artigos-lista .artigo {
    width: 100%;
    max-width: 100%;
}

.artigos-acoes {
    display: flex;
    justify-content: flex-end;
}

.btn-criar {
    max-width: 100%;
}

.filtro-autor input {
    min-width: 0;
}

.lista-filtros li {
    overflow-wrap: anywhere;
}


/* Tablets e notebooks menores */
@media (max-width: 1000px) {
    .artigos-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 30px 24px 50px;
    }

    /* Botão Criar: primeira linha */
    .artigos-acoes {
        grid-column: 1;
        grid-row: 1;
        justify-content: flex-start;
        margin: 0;
        width: 100%;
    }

    /* Filtros: segunda linha */
    .artigos-layout .sidebar-filtros {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
    }

    /* Artigos: terceira linha */
    .artigos-lista {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
    }

    .artigos-layout .filtros-conteudo {
        width: 100%;
    }
}

/* Celulares */
@media (max-width: 650px) {
    .artigos-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 24px 18px 40px;
    }

    .artigos-layout .sidebar-filtros,
    .artigos-lista,
    .artigos-acoes {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
    }

    .artigos-acoes {
        justify-content: flex-start;
        margin: 0;
    }

    .artigos-layout .filtro-btn {
        width: 100%;
        max-width: 180px;
    }

    .artigos-layout .filtros-conteudo {
        width: 100%;
    }

    .artigos-layout .lista-filtros {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 14px;
    }

    .artigos-layout .lista-filtros li {
        margin: 0;
    }

    .artigos-layout .btn-criar {
        width: 100%;
        max-width: 180px;
        height: 48px;
    }

    .artigos-lista .artigo {
        margin-bottom: 32px;
    }
}

/* =======================================================
   CABEÇALHO RESPONSIVO
======================================================= */

@media (max-width: 1069px) {
    header nav > .row {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 12px;
        margin: 0;
        padding: 10px 16px;
    }

    header nav > .row > .col-4 {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        padding: 0;
    }

    header nav > .row > .col-4 img {
        display: block;
        width: auto;
        max-width: 170px;
        max-height: 55px;
        object-fit: contain;
    }

    header nav > .row > #loginButtons {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        padding: 0;
        gap: 8px;
    }

    #loginButtons > a {
        display: none !important;
    }

    #loginButtons .foto-perfil-nav {
        width: 38px;
        height: 38px;
    }

    #loginButtons .hamburger-btn {
        display: block;
        flex: 0 0 auto;
        margin: 0;
        padding: 4px;
    }

    #hamburgerBtn.menu-aberto {
        display: none !important;
    }

    .mobile-nav-panel {
        width: min(85vw, 320px);
        overflow-y: auto;
    }
}

@media (max-width: 380px) {
    header nav > .row {
        padding-right: 10px;
        padding-left: 10px;
    }

    header nav > .row > .col-4 img {
        max-width: 135px;
    }

    .mobile-nav-panel {
        padding: 20px;
    }
}

/* =======================================================
   AJUSTES GERAIS DA PÁGINA INICIAL
======================================================= */

@media (min-width: 769px) and (max-width: 1100px) {
    .estudio-introducao {
        gap: 40px;
    }

    .estudio-texto h1 {
        font-size: 36px;
    }

    .equipe-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }

    .projeto-bloco {
        gap: 35px;
    }

    .ods-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .secao-titulo h1,
    .secao-titulo h2 {
        font-size: 27px;
    }

    .projeto-texto h2 {
        font-size: 24px;
    }

    .ods-titulo span {
        line-height: 1.7;
    }
}

@media (max-width: 380px) {
    .estudio-texto h1 {
        font-size: 28px;
    }

    .secao-titulo h1,
    .secao-titulo h2,
    .ods-titulo h2 {
        font-size: 24px;
    }

    .sobre-estudio,
    .sobre-projeto {
        padding-right: 14px;
        padding-left: 14px;
    }

    .ods {
        padding-right: 14px;
        padding-left: 14px;
    }
}

/* Layout da página de artigos */
.artigos-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas:
        "filtros acoes"
        "filtros lista";
    column-gap: 24px;
    row-gap: 16px;
    align-items: start;
}

.sidebar-filtros {
    grid-area: filtros;
    min-width: 0;
}

.artigos-acoes {
    grid-area: acoes;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    min-width: 0;
}

.artigos-lista {
    grid-area: lista;
    min-width: 0;
}

/* Tablet e celular */
@media (max-width: 1069px) {
    .artigos-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "acoes"
            "filtros"
            "lista";
        row-gap: 16px;
    }

    .artigos-acoes {
        justify-content: flex-start !important;
    }
}


/* Corrige o cabeçalho em celulares muito estreitos */
@media (max-width: 380px) {
    header nav > .row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
        padding-left: 8px;
        padding-right: 8px;
    }

    header nav > .row > .col-4 {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    header nav > .row > .col-4 img {
        display: block;
        width: 100%;
        max-width: 105px;
        height: auto;
        max-height: 40px;
        object-fit: contain;
    }

    header nav > .row > #loginButtons {
        flex: 0 0 auto;
        width: auto;
        gap: 4px;
        padding: 0;
        margin: 0;
    }

    #loginButtons .foto-perfil-nav {
        width: 28px;
        height: 28px;
    }

    #loginButtons .hamburger-btn {
        padding: 2px;
    }

    .hamburger-btn span {
        width: 20px;
        height: 2px;
        margin: 4px 0;
    }
}


/* =======================================================
   ARTIGOS SALVOS
======================================================= */

.btn-abrir-salvo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    background: #222;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-abrir-salvo:hover {
    background: #444;
    color: #fff;
}

.card-artigo-salvo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.045);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-artigo-salvo:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.card-salvo-conteudo {
    min-width: 0;
    flex: 1;
}

.card-salvo-data {
    margin: 0 0 7px;
    color: #888;
    font-size: 12px;
}

.card-salvo-conteudo h2 {
    margin: 0 0 7px;
    font-size: 20px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.card-salvo-autor {
    margin: 0 0 10px;
    color: #666;
    font-size: 13px;
}

.card-salvo-resumo {
    margin: 0;
    color: #444;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.card-salvo-acoes {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
}

.btn-remover-salvo {
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-remover-salvo:hover {
    border-color: #c7c7c7;
    background: #f5f5f5;
}

.btn-remover-salvo:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Adaptação para celulares e telas menores */
@media (max-width: 700px) {

    .card-artigo-salvo {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

    .card-salvo-acoes {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* =======================================================
   PERFIL DE USUÁRIO
======================================================= */

.pagina-perfil {
    width: calc(100% - 40px);
    max-width: 1050px;
    margin: 50px auto 80px;
}

/* Cabeçalho */

.perfil-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    padding: 28px;

    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

.perfil-identidade {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.perfil-foto {
    width: 100px;
    height: 100px;
    flex-shrink: 0;

    object-fit: cover;

    border: 3px solid #e5e5e5;
    border-radius: 50%;
}

.perfil-informacoes {
    min-width: 0;
}

.perfil-etiqueta {
    display: block;
    margin-bottom: 5px;

    color: #888;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
}

.perfil-informacoes h1 {
    margin: 0 0 6px;

    font-size: 27px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.perfil-informacoes p {
    margin: 0;

    color: #777;
    font-size: 13px;
}

.perfil-estatistica {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.perfil-estatistica strong {
    font-size: 30px;
    font-weight: 600;
}

.perfil-estatistica span {
    color: #777;
    font-size: 12px;
    text-align: center;
}

/* Abas */

.perfil-conteudo {
    margin-top: 35px;
}

.perfil-abas {
    display: flex;
    gap: 25px;

    margin-bottom: 25px;

    border-bottom: 1px solid #ddd;
}

.perfil-abas[hidden] {
    display: none !important;
}

.perfil-aba {
    padding: 12px 5px;

    background: none;
    border: none;
    border-bottom: 3px solid transparent;

    color: #777;
    font-size: 14px;
    font-weight: 500;

    transition: 0.2s;
}

.perfil-aba:hover {
    color: #222;
}

.perfil-aba.ativa {
    color: #222;
    border-bottom-color: #222;
    font-weight: 600;
}

/* Lista de artigos */

.lista-perfil-artigos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Reaproveita os cartões de meus-artigos.html */

.pagina-perfil .meu-artigo {
    align-items: flex-start;
}

.pagina-perfil .meu-artigo-conteudo {
    flex: 1;
    min-width: 0;
}

.pagina-perfil .meu-artigo-conteudo h2 {
    overflow-wrap: anywhere;
}

.pagina-perfil .meu-artigo-conteudo h2 a {
    color: #222;
    text-decoration: none;
}

.pagina-perfil .meu-artigo-conteudo h2 a:hover {
    text-decoration: underline;
}

.perfil-resumo {
    margin: 9px 0 0;

    color: #666;
    font-size: 13px;
    line-height: 1.7;

    overflow-wrap: anywhere;
}

.pagina-perfil .meu-artigo-acoes {
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Reaproveita os cartões de salvos.html */

.pagina-perfil .card-artigo-salvo {
    align-items: flex-start;
}

.pagina-perfil .card-salvo-conteudo h2 a {
    color: #222;
    text-decoration: none;
}

.pagina-perfil .card-salvo-conteudo h2 a:hover {
    text-decoration: underline;
}

/* Links de autores */

.link-perfil-autor {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.link-perfil-autor:hover {
    text-decoration: underline;
}

/* Mensagens de carregamento, erro e lista vazia */

.perfil-mensagem {
    margin: 20px 0;
    color: #666;
    font-size: 14px;
}

.perfil-mensagem[hidden] {
    display: none !important;
}

.perfil-mensagem.vazio {
    padding: 35px 24px;

    background: #fafafa;
    border: 1px dashed #ccc;
    border-radius: 12px;

    color: #777;
    text-align: center;
}

.perfil-mensagem.erro {
    color: #b42318;
}

/* =======================================================
   RESPONSIVIDADE DO PERFIL
======================================================= */

@media (max-width: 700px) {

    .pagina-perfil {
        width: calc(100% - 30px);
        margin-top: 30px;
        margin-bottom: 50px;
    }

    .perfil-cabecalho {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .perfil-foto {
        width: 80px;
        height: 80px;
    }

    .perfil-informacoes h1 {
        font-size: 22px;
    }

    .perfil-estatistica {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .perfil-estatistica strong {
        font-size: 23px;
    }

    .perfil-abas {
        gap: 15px;
        overflow-x: auto;
    }

    .perfil-aba {
        flex-shrink: 0;
        font-size: 12px;
    }

    .pagina-perfil .meu-artigo {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

    .pagina-perfil .meu-artigo-acoes {
        align-items: center;
        justify-content: flex-start;
    }

    .pagina-perfil .card-artigo-salvo {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

    .pagina-perfil .card-salvo-acoes {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {

    .perfil-identidade {
        align-items: flex-start;
        gap: 14px;
    }

    .perfil-foto {
        width: 65px;
        height: 65px;
    }

    .perfil-informacoes h1 {
        font-size: 19px;
    }

    .perfil-informacoes p {
        font-size: 11px;
    }

    .perfil-abas {
        gap: 10px;
    }

    .perfil-aba {
        padding: 10px 3px;
        font-size: 11px;
    }
}

/* Aviso de artigo não publicado */
.aviso-preview-artigo {
    margin: 20px 0;
    padding: 14px 18px;

    border-radius: 8px;

    font-size: 13px;
    line-height: 1.6;
}

.aviso-preview-artigo.status-pendente {
    background-color: #fff8e1;
    color: #8a6000;
    border: 1px solid #f0d98c;
}

.aviso-preview-artigo.status-rejeitado {
    background-color: #ffebee;
    color: #a32020;
    border: 1px solid #edb8b8;
}

.aviso-preview-artigo.status-aprovado {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #b9dfbd;
}

.mensagem-erro-artigo {
    padding: 30px;
    color: #b42318;
    text-align: center;
}

/* ======================================================
   RESPONSIVIDADE GERAL - THERMAUTOMATA
====================================================== */

html,
body {
    width: 100%;
    max-width: 100%;
}

body {
    min-width: 320px;
}

img {
    max-width: 100%;
    height: auto;
}

input,
textarea,
select,
button {
    max-width: 100%;
}

main,
section,
article,
form {
    min-width: 0;
}


/* ======================================================
   CABEÇALHO E NAVEGAÇÃO
====================================================== */

header {
    width: 100%;
}

header nav > .row {
    align-items: center;
    margin-left: 0;
    margin-right: 0;
    padding: 12px clamp(14px, 3vw, 40px);
}

header nav > .row > .col-4 {
    flex: 0 1 230px;
    width: auto;
    min-width: 0;
}

header nav > .row > .col-4 img {
    display: block;
    width: auto;
    max-width: 170px;
    max-height: 55px;
    object-fit: contain;
}

header nav > .row > .col-5 {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

header nav > .row > #loginButtons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    width: auto;
    gap: 12px;
}

.desktop-nav-links {
    gap: clamp(12px, 2.5vw, 35px);
}

.nav-link-custom {
    font-size: clamp(13px, 1.2vw, 19px);
}

.foto-perfil-nav {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid #000;
    border-radius: 50%;
}

.perfil-dropdown {
    top: 60px;
    right: 0;
    width: 190px;
    max-width: calc(100vw - 30px);
}

.mobile-nav-panel {
    width: min(85vw, 320px);
    max-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-nav-panel a[hidden] {
    display: none !important;
}


/* ======================================================
   PÁGINA INICIAL
====================================================== */

@media (min-width: 769px) and (max-width: 1100px) {

    .estudio-introducao {
        gap: 40px;
        min-height: auto;
    }

    .estudio-texto h1 {
        font-size: 36px;
    }

    .equipe-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }

    .projeto-bloco {
        gap: 35px;
    }

    .ods-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {

    .sobre-estudio {
        padding: 50px 20px 70px;
    }

    .estudio-introducao {
        flex-direction: column;
        gap: 35px;
        min-height: auto;
    }

    .estudio-texto {
        text-align: center;
    }

    .estudio-texto h1 {
        font-size: clamp(28px, 5vw, 34px);
    }

    .logo-estudio {
        width: 200px;
    }

    .equipe-secao {
        padding-top: 50px;
    }

    .sobre-projeto {
        padding: 65px 20px;
    }

    .projeto-bloco,
    .projeto-bloco-invertido {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
        margin-bottom: 50px;
    }

    .projeto-bloco-invertido .projeto-texto {
        order: 1;
    }

    .projeto-bloco-invertido .projeto-imagem {
        order: 2;
    }

    .projeto-texto h2 {
        font-size: 24px;
    }

    .ods {
        padding: 55px 20px;
    }

    .ods-titulo h2 {
        font-size: 26px;
    }

    .ods-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .ods-item img {
        width: 130px;
        height: 130px;
    }

    .footer {
        padding: 35px 15px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-info {
        max-width: 100%;
    }

    .footer-direita {
        align-items: center;
        gap: 25px;
        width: 100%;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        white-space: normal;
    }
}

@media (max-width: 540px) {

    .equipe-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .secao-titulo {
        margin-bottom: 30px;
    }

    .secao-titulo h1,
    .secao-titulo h2 {
        font-size: 24px;
    }

    .estudio-texto h1 {
        font-size: 27px;
    }

    .sobre-estudio,
    .sobre-projeto,
    .ods {
        padding-right: 15px;
        padding-left: 15px;
    }
}


/* ======================================================
   MENU MOBILE
====================================================== */

@media (max-width: 1069px) {

    .desktop-nav-links {
        display: none !important;
    }

    header nav > .row {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 16px;
    }

    header nav > .row > .col-4 {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    header nav > .row > .col-4 img {
        max-width: 160px;
        max-height: 50px;
    }

    header nav > .row > #loginButtons {
        flex: 0 0 auto;
        width: auto;
        gap: 8px;
        padding: 0;
    }

    #loginButtons > a {
        display: none !important;
    }

    #loginButtons .foto-perfil-nav {
        width: 38px;
        height: 38px;
    }

    #loginButtons .hamburger-btn {
        display: block;
        flex: 0 0 auto;
        padding: 4px;
        margin: 0;
    }

    #hamburgerBtn.menu-aberto {
        display: none !important;
    }
}

@media (max-width: 380px) {

    header nav > .row {
        gap: 4px;
        padding-left: 8px;
        padding-right: 8px;
    }

    header nav > .row > .col-4 img {
        max-width: 115px;
        max-height: 40px;
    }

    #loginButtons {
        gap: 4px;
    }

    #loginButtons .foto-perfil-nav {
        width: 30px;
        height: 30px;
    }

    .hamburger-btn {
        padding: 2px;
    }

    .hamburger-btn span {
        width: 20px;
        height: 2px;
        margin: 4px 0;
    }
}



/* ======================================================
   LISTAGEM DE ARTIGOS
====================================================== */

.artigos-layout {
    display: grid;

    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);

    grid-template-areas:
        "filtros acoes"
        "filtros lista";

    column-gap: clamp(20px, 3vw, 36px);
    row-gap: 18px;

    width: 100%;
    max-width: 1440px;

    margin: 0 auto;
    padding: 35px clamp(16px, 3vw, 40px) 60px;
}

.artigos-layout > * {
    min-width: 0;
}

.artigos-layout .sidebar-filtros {
    grid-area: filtros;
    width: 100%;
    min-width: 0;
    padding-left: 0;
}

.artigos-acoes {
    grid-area: acoes;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    width: 100%;
    min-width: 0;
    margin: 0;
}

.artigos-lista {
    grid-area: lista;

    width: 100%;
    min-width: 0;
}

.artigos-lista #listaArtigos {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.artigos-lista .artigo {
    width: 100%;
    max-width: 100%;
    margin-bottom: 35px;
    overflow-wrap: anywhere;
}

.artigos-lista .artigo-titulo {
    overflow-wrap: anywhere;
}

.artigos-layout .btn-criar {
    max-width: 100%;
}

/* Tablets e notebooks menores */
@media (max-width: 1000px) {

    .artigos-layout {
        grid-template-columns: minmax(0, 1fr);

        grid-template-areas:
            "acoes"
            "filtros"
            "lista";

        gap: 20px;
        padding: 28px 24px 45px;
    }

    .artigos-acoes {
        justify-content: flex-start;
    }

    .artigos-layout .sidebar-filtros,
    .artigos-lista {
        width: 100%;
    }

    .artigos-layout .filtros-conteudo {
        width: 100%;
    }

    .artigos-layout .btn-criar {
        width: 160px;
        height: 50px;
    }
}

/* Celulares */
@media (max-width: 650px) {

    .artigos-layout {
        gap: 18px;
        padding: 22px 16px 40px;
    }

    .artigos-layout .filtro-btn {
        width: 100%;
        max-width: 180px;
    }

    .artigos-layout .lista-filtros {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px 14px;
    }

    .artigos-layout .lista-filtros li {
        margin: 0;
    }

    .artigos-layout .btn-criar {
        width: 150px;
        height: 46px;
    }

    .artigos-lista .artigo {
        margin-bottom: 28px;
    }
}

/* ======================================================
   LEITURA DO ARTIGO
====================================================== */

.pagina-artigo {
    width: calc(100% - 40px);
    max-width: 900px;
    margin: 35px auto 70px;
    padding: 0;
}

#artigoCompleto {
    width: 100%;
    min-width: 0;
}

.cabecalho-artigo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cabecalho-artigo > div {
    flex: 1 1 350px;
    min-width: 0;
}

.cabecalho-artigo h1 {
    font-size: clamp(25px, 3.5vw, 38px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.cabecalho-artigo h3,
.cabecalho-artigo p {
    overflow-wrap: anywhere;
}

.btn-salvar {
    flex-shrink: 0;
}

.conteudo-artigo {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.conteudo-artigo p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.lista-tags-artigo {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-artigo {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.lista-fontes-artigo,
.fonte-artigo {
    min-width: 0;
    max-width: 100%;
}

.fonte-artigo a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 600px) {

    .pagina-artigo {
        width: calc(100% - 30px);
        margin-top: 25px;
        margin-bottom: 45px;
    }

    .cabecalho-artigo {
        flex-direction: column;
        gap: 12px;
    }

    .cabecalho-artigo > div {
        flex-basis: auto;
        width: 100%;
    }

    .cabecalho-artigo h1 {
        font-size: 25px;
    }

    .btn-salvar {
        align-self: flex-start;
        font-size: 14px;
    }

    .conteudo-artigo {
        margin-top: 22px;
        font-size: 14px;
        line-height: 1.8;
    }

    .tags-artigo,
    .fontes-artigo {
        margin-top: 28px;
    }

    .tags-artigo h3,
    .fontes-artigo h3 {
        font-size: 17px;
    }

    .fonte-artigo {
        padding: 12px;
    }

    .fonte-artigo strong {
        font-size: 13px;
    }

    .fonte-artigo a {
        font-size: 12px;
    }
}


/* ======================================================
   PAINEL ADMINISTRATIVO
====================================================== */

.pagina-admin {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 35px auto 60px;
}

.admin-cabecalho {
    align-items: flex-start;
    flex-wrap: wrap;
}

.admin-cabecalho > div:first-child {
    min-width: 0;
    flex: 1 1 300px;
}

.admin-cabecalho h1 {
    overflow-wrap: anywhere;
}

.abas-artigos {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.aba-artigo {
    flex-shrink: 0;
    white-space: nowrap;
}

#listaArtigosAdmin,
#listaArtigosAdmin > * {
    min-width: 0;
}

.artigo-pendente {
    min-width: 0;
    overflow-wrap: anywhere;
}

.artigo-pendente h2,
.artigo-pendente h3,
.artigo-pendente p {
    overflow-wrap: anywhere;
}

.acoes-artigo {
    flex-wrap: wrap;
}

.acoes-artigo button {
    max-width: 100%;
}

@media (max-width: 600px) {

    .pagina-admin {
        width: calc(100% - 30px);
        margin-top: 25px;
    }

    .admin-cabecalho {
        flex-direction: column;
        gap: 18px;
    }

    .admin-cabecalho h1 {
        font-size: 25px;
    }

    .admin-cabecalho p {
        font-size: 13px;
    }

    .admin-contador {
        width: 100%;
    }

    .abas-artigos {
        gap: 8px;
        margin-bottom: 20px;
    }

    .aba-artigo {
        padding: 10px 8px;
        margin-right: 5px;
        font-size: 12px;
    }

    .artigo-pendente {
        padding: 18px;
    }

    .artigo-pendente h2 {
        font-size: 18px;
    }

    .artigo-pendente .conteudo-preview {
        font-size: 13px;
    }

    .acoes-artigo {
        gap: 8px;
    }

    .acoes-artigo button {
        flex: 1 1 120px;
    }
}


/* ======================================================
   CRIAÇÃO DE ARTIGOS
====================================================== */

.pagina-criar {
    width: calc(100% - 40px);
    max-width: 900px;
    margin: 35px auto !important;
    padding: 0;
}

#formCriarArtigo {
    width: 100%;
    min-width: 0;
}

#formCriarArtigo .form-control,
#formCriarArtigo input,
#formCriarArtigo textarea {
    width: 100%;
    min-width: 0;
}

#formCriarArtigo textarea {
    resize: vertical;
    min-height: 220px;
}

#referencias,
.referencia {
    width: 100%;
    min-width: 0;
}

.referencia input {
    width: 100%;
}

.referencia .d-flex {
    flex-wrap: wrap;
    gap: 8px;
}

#listaTags {
    width: 100%;
    min-width: 0;
}

.tag-opcao {
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {

    .pagina-criar {
        width: calc(100% - 30px);
        margin-top: 24px !important;
    }

    #formCriarArtigo textarea {
        min-height: 200px;
    }

    .btn-adicionar {
        font-size: 14px;
    }

    .btn-adicionar .btn-criar-icon {
        width: 19px;
    }

    .referencia .d-flex {
        align-items: center;
    }

    .tag-opcao {
        padding: 7px 12px;
        font-size: 12px;
    }

    #formCriarArtigo button[type="submit"] {
        width: 100%;
    }
}


/* ======================================================
   LOGIN E CADASTRO
====================================================== */

.body-login {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px 16px;
    overflow-y: auto;
}

.card-login {
    width: min(450px, 100%);
    max-width: 450px;
    min-width: 0;
}

.login-header,
.login-form,
.login-tabs {
    min-width: 0;
}

.login-header {
    gap: 12px;
    flex-wrap: wrap;
}

.login-header h2 {
    overflow-wrap: anywhere;
}

.login-form {
    width: 100%;
}

.form-control {
    min-width: 0;
}

.profile-upload {
    flex-wrap: wrap;
}

.upload-btn {
    max-width: 100%;
}

@media (max-width: 520px) {

    .body-login {
        align-items: flex-start;
        padding: 16px 10px;
    }

    .card-login {
        border-radius: 20px;
    }

    .login-header {
        padding: 20px;
    }

    .login-header h2 {
        font-size: 19px;
    }

    .login-form {
        padding: 20px 16px;
    }

    .tab {
        padding: 14px 8px;
        font-size: 15px;
    }

    .form-control {
        height: 48px;
        font-size: 16px;
    }

    .btn-login {
        padding: 13px;
        font-size: 16px;
    }

    .terms-box {
        font-size: 12px;
    }
}


/* ======================================================
   DOWNLOAD
====================================================== */

.download-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.download-plataformas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-plataforma {
    min-width: 0;
}

.download-plataforma h2 {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {

    .download-page {
        padding: 60px 24px 80px;
    }

    .download-plataformas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .download-introducao h1 {
        font-size: 34px;
    }
}

@media (max-width: 600px) {

    .download-page {
        padding: 45px 16px 60px;
    }

    .download-introducao {
        margin-bottom: 35px;
    }

    .download-introducao h1 {
        font-size: 28px;
    }

    .download-introducao p {
        font-size: 13px;
    }

    .download-plataformas {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .download-plataforma {
        padding: 25px 18px;
    }

    .download-plataforma img {
        max-width: 130px;
    }

    .download-plataforma h2 {
        font-size: 20px;
    }
}


/* ======================================================
   MEUS ARTIGOS
====================================================== */

.meus-artigos-cabecalho {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meu-artigo {
    min-width: 0;
    flex-wrap: wrap;
}

.meu-artigo-conteudo {
    flex: 1 1 280px;
    min-width: 0;
}

.meu-artigo-conteudo h2,
.meu-artigo-conteudo p {
    overflow-wrap: anywhere;
}

.meu-artigo-acoes {
    flex-wrap: wrap;
}

@media (max-width: 600px) {

    .meus-artigos-cabecalho h1 {
        font-size: 25px;
    }

    .meus-artigos-cabecalho p {
        font-size: 13px;
    }

    .meu-artigo {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .meu-artigo-acoes {
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
    }
}


/* ======================================================
   PERFIL
====================================================== */

.pagina-perfil {
    width: calc(100% - 40px);
    max-width: 1050px;
}

.perfil-cabecalho,
.perfil-conteudo {
    min-width: 0;
}

.perfil-identidade {
    min-width: 0;
}

.perfil-informacoes {
    overflow-wrap: anywhere;
}

.perfil-abas {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.perfil-aba {
    flex-shrink: 0;
}

.lista-perfil-artigos,
.card-artigo-salvo,
.meu-artigo {
    min-width: 0;
}

.pagina-perfil .card-salvo-acoes {
    flex-wrap: wrap;
}

@media (max-width: 700px) {

    .pagina-perfil {
        width: calc(100% - 30px);
        margin-top: 28px;
        margin-bottom: 45px;
    }

    .perfil-cabecalho {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .perfil-identidade {
        gap: 14px;
    }

    .perfil-foto {
        width: 75px;
        height: 75px;
    }

    .perfil-informacoes h1 {
        font-size: 22px;
    }

    .perfil-estatistica {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .perfil-estatistica strong {
        font-size: 23px;
    }

    .perfil-conteudo {
        margin-top: 25px;
    }

    .pagina-perfil .meu-artigo,
    .pagina-perfil .card-artigo-salvo {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

    .pagina-perfil .meu-artigo-acoes {
        justify-content: flex-start;
    }

    .pagina-perfil .card-salvo-acoes {
        flex-direction: row;
        align-items: stretch;
    }
}

@media (max-width: 480px) {

    .perfil-identidade {
        gap: 12px;
    }

    .perfil-foto {
        width: 62px;
        height: 62px;
    }

    .perfil-informacoes h1 {
        font-size: 19px;
    }

    .perfil-informacoes p {
        font-size: 11px;
    }

    .perfil-aba {
        font-size: 11px;
        padding: 10px 4px;
    }
}


/* ======================================================
   NOTIFICAÇÕES
====================================================== */

@media (max-width: 600px) {

    .notificacao {
        top: 12px;
        left: 12px;
        right: 12px;

        width: auto;
        min-width: 0;
        max-width: none;

        padding: 13px 16px;
        font-size: 13px;
    }
}


/* ======================================================
   PROTEÇÃO CONTRA CONTEÚDO LONGO
====================================================== */

.artigo,
.meu-artigo,
.card-artigo-salvo,
.artigo-pendente,
.fonte-artigo {
    min-width: 0;
    overflow-wrap: anywhere;
}

.link-perfil-autor,
.artigo-titulo,
.autor {
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Esconde o LOGIN enquanto verifica uma sessão existente */
html.usuario-autenticando #loginButtons > a {
    display: none !important;
}