/* ============================================================
   1. VARIÁVEIS GLOBAIS
   ============================================================ */

:root {
    --azul-marinho: #00264d;
    --azul-royal: #004a8e;
    --azul-hover: rgba(255,255,255,0.08);

    --cinza-fundo: #eaedee;
    --cinza-borda: #e5e5e5;

    --texto: #222222;
}


/* ============================================================
   2. RESET E CONFIGURAÇÕES GERAIS
   ============================================================ */

*,
*:before,
*:after {
    box-sizing: border-box !important;
}

body {
    background-color: var(--cinza-fundo) !important;
    color: var(--texto);
}


/* ============================================================
   3. REMOVE ELEMENTOS EXTRAS DO TEMA
   ============================================================ */

#headerNavigationContainer {
    background: transparent !important;
    border: none !important;
    padding-bottom: 0 !important;
    box-shadow: none !important;
}

.pkp_structure_page,
.pkp_page_index,
.pkp_page_index .journals,
.pkp_page_index .cmp_announcements {
    border: none !important;
}


/* ============================================================
   4. CABEÇALHO PRINCIPAL
   ============================================================ */

.pkp_head_wrapper {
    max-width: 1100px !important;
    width: 100% !important;

    margin: 0 auto !important;
    padding: 0 !important;

    background: #ffffff !important;

    border-radius: 16px 16px 0 0 !important;

    overflow: visible !important;

    box-shadow: 0 8px 24px rgba(0,0,0,0.08);

    float: none !important;
}


/* ============================================================
   5. ÁREA DA LOGO
   ============================================================ */

.pkp_site_name_wrapper {
    width: 100% !important;

    padding: 25px 40px !important;

    background: #ffffff !important;
}

.pkp_site_name a img {
    max-height: 85px;
    width: auto;
}


/* ============================================================
   6. MENU DE NAVEGAÇÃO
   ============================================================ */

.pkp_navigation_primary_row {
    max-width: 1100px !important;
    width: 100% !important;

    margin: 0 auto !important;

    padding: 0 40px !important;

    background-color: var(--azul-royal) !important;

    min-height: 56px;

    display: flex;
    align-items: center;
}


/* Links principais */

.pkp_navigation_primary > li > a,
.pkp_navigation_search_wrapper a {
    color: #ffffff !important;

    font-size: 13px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.4px;

    text-decoration: none !important;

    transition: all 0.2s ease;

    background: transparent !important;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}


/* Hover e focus */

.pkp_navigation_primary li:hover > a,
.pkp_navigation_primary a:hover,
.pkp_navigation_primary a:focus,
.pkp_navigation_search_wrapper a:hover,
.pkp_navigation_search_wrapper a:focus {
    background-color: var(--azul-marinho) !important;

    color: #ffffff !important;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    border-radius: 4px;
}


/* ============================================================
   7. DROPDOWN / SUBMENU
   ============================================================ */

.pkp_navigation_primary ul ul a {
    display: block;

    padding: 12px 18px !important;

    background: #ffffff !important;

    color: #222222 !important;

    font-size: 14px !important;

    text-transform: none;

    border: none !important;
    box-shadow: none !important;
}

.pkp_navigation_primary ul ul a:hover {
    background: #f2f5f8 !important;

    color: var(--azul-royal) !important;
}


/* ============================================================
   8. LOGIN / CADASTRO
   ============================================================ */

#navigationUser {
    max-width: 1100px;

    margin: 0 auto;

    padding: 8px 10px !important;

    display: flex;

    justify-content: flex-end;

    gap: 14px;
}


/* Links */

#navigationUser a {
    padding: 6px 10px;

    color: var(--azul-royal) !important;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    border-radius: 6px;

    transition: 0.2s ease;

    outline: none !important;
}


/* Hover */

#navigationUser a:hover {
    background: rgba(0, 74, 142, 0.08);

    color: var(--azul-marinho) !important;
}


/* Remove quadrado preto */

#navigationUser a:focus,
#navigationUser a:active {
    outline: none !important;

    box-shadow: none !important;

    background: rgba(0, 74, 142, 0.12);
}


/* ============================================================
   9. CONTEÚDO PRINCIPAL
   ============================================================ */

.pkp_structure_content {
    max-width: 1100px;

    margin: 0 auto 40px auto !important;

    padding: 0 !important;

    display: flex !important;

    background: #ffffff !important;

    border-radius: 0 0 16px 16px !important;

    overflow: hidden !important;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}


/* ============================================================
   10. ÁREA PRINCIPAL
   ============================================================ */

.pkp_structure_main {
    flex: 3;

    padding: 40px !important;

    background: #ffffff;
}


/* ============================================================
   11. SIDEBAR
   ============================================================ */

.pkp_structure_sidebar {
    flex: 1;

    min-width: 290px;

    padding: 40px !important;

    background: #fcfcfc;

    border-left: 1px solid var(--cinza-borda);

    position: relative;

    z-index: 1;
}


/* ============================================================
   12. BLOCOS DA SIDEBAR
   ============================================================ */

.pkp_block {
    margin-bottom: 35px !important;

    padding: 0 !important;

    border: none !important;

    background: transparent !important;
}


/* Títulos */

.pkp_block .title {
    margin-bottom: 16px;

    padding-bottom: 8px;

    color: var(--azul-royal);

    font-size: 1.05rem;
    font-weight: 700;

    text-transform: uppercase;

    border-bottom: 2px solid var(--azul-royal);
}


/* Links */

.pkp_block a {
    color: var(--azul-royal);

    text-decoration: none;
}

.pkp_block a:hover {
    text-decoration: underline;
}


/* ============================================================
   13. BOTÃO DE SUBMISSÃO
   ============================================================ */

.block_make_submission_link {
    display: inline-block !important;

    padding: 14px 24px !important;

    background-color: var(--azul-royal) !important;

    color: #ffffff !important;

    text-align: center;

    font-weight: 700;

    text-decoration: none !important;

    border-radius: 25px !important;

    border: none !important;

    transition: 0.2s ease;
}

.block_make_submission_link:hover {
    filter: brightness(1.08);

    transform: translateY(-1px);
}


/* ============================================================
   14. ARTIGOS
   ============================================================ */

.obj_article_summary {
    padding: 18px 0;

    border-bottom: 1px solid #ececec;
}


/* Título */

.obj_article_summary .title a {
    color: var(--azul-royal) !important;

    font-weight: 700;

    text-decoration: none;
}

.obj_article_summary .title a:hover {
    text-decoration: underline;
}


/* ============================================================
   15. EDIÇÃO ATUAL
   ============================================================ */

.current_issue {
    margin-bottom: 40px;
}


/* ============================================================
   16. IMAGENS E CAPAS
   ============================================================ */

.cover img {
    border-radius: 12px;
}


/* ============================================================
   17. RODAPÉ
   ============================================================ */

.pkp_footer_content img {
    max-height: 50px;

    width: auto;

    margin-right: 15px;
    margin-bottom: 10px;

    vertical-align: middle;

    transition: transform 0.2s;
}

.pkp_footer_content img:hover {
    transform: scale(1.05);
}


/* ============================================================
   18. RESPONSIVIDADE
   ============================================================ */

@media (max-width: 900px) {

    .pkp_structure_content {
        flex-direction: column !important;
    }

    .pkp_structure_sidebar {
        border-left: none;

        border-top: 1px solid var(--cinza-borda);
    }

    .pkp_site_name_wrapper,
    .pkp_structure_main,
    .pkp_structure_sidebar {
        padding: 25px !important;
    }

    .pkp_navigation_primary_row {
        padding: 10px 20px !important;
    }
}

/* Editado geovana */


/* ============================================================
   PÁGINA DO ARTIGO - CORREÇÃO
   ============================================================ */

/* Container interno */
.obj_article_details::after {
    content: "";
    display: block;
    clear: both;
}

/* Resumo/texto à esquerda */
.obj_article_details .main_entry {
    width: calc(100% - 360px);
    float: left;
}

/* Barra lateral direita */
.obj_article_details .entry_details {
    width: 320px;
    float: right;
}

/* Espaçamento lateral */
.obj_article_details .entry_details > div {
    margin-bottom: 25px;
}

/* Capa */
.obj_article_details .cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* PDF */
.galleys_links {
    margin-top: 15px;
}

/* Links longos */
.obj_article_details a {
    word-break: break-word;
}

/* MOBILE */
@media (max-width: 900px) {

    .obj_article_details .main_entry,
    .obj_article_details .entry_details {
        width: 100%;
        float: none;
    }

    .obj_article_details .entry_details {
        margin-top: 30px;
    }

    .obj_article_details .cover img {
        max-width: 260px;
        margin: 0 auto;
    }
}

/* Parte de cima tinha ficado boa - apenas linha dupla ruim */

/* ============================================================
   SIDEBAR DO ARTIGO - ESTILO MODERNO
   ============================================================ */

/* Cards laterais */
.obj_article_details .entry_details > div {
    background: #f7f7f7;

    border: 1px solid #e6e6e6;

    border-radius: 14px;

    padding: 22px;

    margin-bottom: 24px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.03);

    transition: 0.2s ease;
}

/* Hover suave */
.obj_article_details .entry_details > div:hover {
    transform: translateY(-2px);

    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Títulos dos blocos */
.obj_article_details .entry_details h2,
.obj_article_details .entry_details h3,
.obj_article_details .entry_details .label {
    color: var(--azul-royal);

    font-size: 0.95rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    margin-bottom: 12px;

    padding-bottom: 8px;

    border-bottom: 2px solid rgba(0,74,142,0.15);
}

/* Links */
.obj_article_details .entry_details a {
    color: var(--azul-royal);

    font-weight: 500;

    text-decoration: none;
}

.obj_article_details .entry_details a:hover {
    text-decoration: underline;
}

/* Botão PDF */
.obj_article_details .galleys_links a {
    display: block;

    width: 100%;

    text-align: center;

    padding: 14px 18px;

    background: var(--azul-royal);

    color: #ffffff !important;

    border-radius: 10px;

    font-weight: 700;

    text-decoration: none !important;

    transition: 0.2s ease;
}

.obj_article_details .galleys_links a:hover {
    background: var(--azul-marinho);

    transform: translateY(-1px);
}

/* Capa */
.obj_article_details .cover img {
    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Remove linhas divisórias do layout do artigo */

.obj_article_details,
.obj_article_details .main_entry,
.obj_article_details .entry_details,
.obj_article_details .entry_details > div,
.obj_article_details .row,
.obj_article_details .item {

    border: none !important;

    box-shadow: none;
}

/* Remove possíveis linhas verticais do grid */
.obj_article_details .main_entry {
    border-right: none !important;
}

.obj_article_details .entry_details {
    border-left: none !important;
}

/* Remove linha horizontal superior */
.obj_article_details > .row {
    border-top: none !important;
}

/* Linha abaixo dos títulos da sidebar */

.obj_article_details .entry_details h2,
.obj_article_details .entry_details h3,
.obj_article_details .entry_details .label {

    border-bottom: 1px solid rgba(0,74,142,0.15);

    padding-bottom: 14px;

    margin-bottom: 22px;

    line-height: 1.3;
}

/* Espaçamento abaixo da linha dos cards */

.obj_article_details .entry_details .item > div,
.obj_article_details .entry_details .item > p,
.obj_article_details .entry_details .item > ul,
.obj_article_details .entry_details .item > a {

    margin-top: 18px !important;
}

/* Espaço entre linha e conteúdo dos cards */

.obj_article_details .entry_details .item .value {

    margin-top: 18px !important;

    display: block !important;
}

/* =========================
   RESPONSIVIDADE CELULAR
========================= */
@media screen and (max-width: 768px) {

    /* Layout principal */
    .obj_article_details,
    .page_issue .issue_toc,
    .page_article .article-details {
        display: block !important;
        width: 100% !important;
    }

    /* Coluna lateral */
    .item.issue,
    .item.published,
    .item.issue,
    .item.section,
    .item.license,
    .item.copyright,
    .item.how-to-cite {
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        box-sizing: border-box;
    }

    /* Cards cinza */
    .item.published,
    .item.issue,
    .item.section,
    .item.license,
    .item.how-to-cite {
        padding: 18px !important;
        border-radius: 12px !important;
    }

    /* Títulos */
    .item.published h2,
    .item.issue h2,
    .item.section h2,
    .item.license h2,
    .item.how-to-cite h2 {
        font-size: 16px !important;
        margin-bottom: 20px !important;
    }

    /* Linha abaixo do título */
    .item.published h2::after,
    .item.issue h2::after,
    .item.section h2::after,
    .item.license h2::after,
    .item.how-to-cite h2::after {
        margin-top: 12px !important;
        margin-bottom: 18px !important;
    }

    /* Texto */
    .item {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    /* DOI quebrar corretamente */
    .doi,
    .item.doi {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Imagens */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Botões PDF */
    .galleys_links a {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
    }

    /* Remove linhas verticais problemáticas */
    .obj_article_details,
    .main_entry,
    .entry_details,
    .article-meta {
        border: none !important;
        box-shadow: none !important;
    }

    /* Corrige colunas esmagadas */
    .main_entry,
    .entry_details,
    .item {
        float: none !important;
        width: 100% !important;
    }

    /* Espaçamento geral */
    .item {
        margin-bottom: 24px !important;
    }
}