/* 1. RESUMO: Justificado */
.obj_article_details .abstract, 
.page_article_details .abstract,
.abstract p {
    text-align: justify !important;
    text-justify: inter-word !important;
}

/* 2. REFERÊNCIAS: Resolvendo o "Blocão" e o "Buraco" */
.obj_article_details .item.references .value {
    white-space: normal !important; /* Limpa os espaços gigantes das imagens */
    text-align: left !important;
    /* A LINHA QUE VOCÊ PERGUNTOU ENTRA AQUI: */
    word-spacing: 0.1em; 
    line-height: 2.2 !important; /* Cria o espaçamento entre as referências mesmo sem parágrafos */
    display: block !important;
}

/* 3. DIREITOS AUTORAIS E RODAPÉ: Justificados */
.page_article_details .item.copyright .value,
.item.author_copyright .value,
.item.copyright p {
    text-align: justify !important;
    text-justify: inter-word !important;
}
footer .container {
    text-align: justify !important;
}

/* 4. PÁGINA SOBRE: Justificado para Textos e Listas */
.page_about .content, 
.page_about p,
.page_about ul li, 
.page_about ol li,
.page_about div {
    text-align: justify !important;
    text-justify: inter-word !important;
    line-height: 1.6 !important;
    margin-bottom: 10px; /* Dá um respiro entre os itens da lista */
}

/* 5. PÁGINA SOBRE: Títulos e Alinhamento das Listas */
.page_about h2, 
.page_about h3,
.page_about h4,
.page_about h5 {
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 8px;
    margin-top: 35px !important;
    margin-bottom: 15px !important;
    font-weight: bold !important;
    text-transform: uppercase; /* Deixa em maiúsculo para combinar com seu padrão */
}

/* Garante que a bolinha da lista não suma com a justificação */
.page_about ul {
    padding-left: 25px !important;
    list-style-position: outside !important;
}

/* 6 e 10. PÁGINA DE SUBMISSÕES: Checklist e a Frase Introdutória */
.page_submissions .submission_checklist,
.page_submissions .submission_checklist li,
.page_submissions .section.submission_checklists,
.page_submissions .section.submission_checklists .label {
    text-align: justify !important;
    text-justify: inter-word !important;
    line-height: 1.6 !important;
    display: block !important;
    width: 100% !important;
}

/* Ajuste de respiro para os itens com check verde */
.page_submissions .submission_checklist li {
    padding-right: 15px !important;
    margin-bottom: 10px !important;
}

/* 7 e 8. PÁGINA DE SUBMISSÕES: Introdução e Diretrizes Detalhadas */
#authorGuidelines p,
#authorGuidelines li,
.page_submissions .intro p,
.page_submissions .pkp_structure_main > p,
.page_submissions .pkp_structure_main > div,
.page_submissions #submissionGuidelines p {
    text-align: justify !important;
    text-justify: inter-word !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

/* Ajuste para os títulos dentro das diretrizes */
#authorGuidelines h2,
#authorGuidelines h3, 
#authorGuidelines h4 {
    margin-top: 25px !important;
    font-weight: bold !important;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 5px;
}

/* 9. PÁGINA DE SUBMISSÕES: Justificar Direitos Autorais e Privacidade */
.page_submissions .copyright_notice,
.page_submissions .copyright_notice p,
.page_submissions .privacy_statement,
.page_submissions .privacy_statement p {
    text-align: justify !important;
    text-justify: inter-word !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
}

/* Mantém o padrão de títulos para estas seções */
.page_submissions .copyright_notice h2,
.page_submissions .privacy_statement h2 {
    margin-top: 35px !important;
    font-weight: bold !important;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 8px;
    text-transform: uppercase;
}

/* 11. EFEITO DE DESTAQUE (HOVER) NA LISTA DE ARTIGOS */
.obj_article_summary {
    transition: all 0.3s ease !important; /* Faz a transição ser suave */
    padding: 15px !important;
    border-radius: 5px !important;
    margin-bottom: 10px !important;
}

.obj_article_summary:hover {
    background-color: #f8f9fa !important; /* Um cinza bem clarinho */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important; /* Cria a sombra suave */
    transform: translateY(-2px); /* Faz o artigo "subir" levemente */
    border-left: 4px solid #0056b3; /* Adiciona uma barrinha colorida na esquerda (opcional) */
}

/* 12. EFEITO DE MOVIMENTO NAS CAPAS (PÁGINA INICIAL E ARQUIVOS) */
.obj_issue_toc .cover img, 
.obj_article_details .cover img, 
.item.cover_image img,
.obj_issue_summary .cover img,
.issue_summary .cover img {
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out !important;
    display: block !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.obj_issue_toc .cover img:hover, 
.obj_article_details .cover img:hover, 
.item.cover_image img:hover,
.obj_issue_summary .cover img:hover,
.issue_summary .cover img:hover {
    transform: scale(1.05) translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
    z-index: 10 !important;
    position: relative !important;
}

/* 13. ESTILO DOS BLOCOS LATERAIS (ISSN E DADOS DA REVISTA) */

/* Cria a caixa cinza ao redor dos dados */
.info-revista-sidebar {
    background-color: #f1f1f1 !important; /* Cor cinza de fundo */
    border-radius: 4px !important;
    padding: 10px !important;
    margin-bottom: 20px !important;
    border: 1px solid #ddd !important; /* Borda sutil */
}

/* Formata cada linha (ISSN, Qualis, etc) */
.info-item {
    border-bottom: 1px solid #ffffff !important; /* Linha branca divisória */
    padding: 8px 0 !important;
    font-size: 0.9em !important;
    color: #333 !important;
    text-align: left !important;
}

/* Remove a linha divisória do último item */
.info-item:last-child {
    border-bottom: none !important;
}

/* Garante que o negrito apareça bem */
.info-item strong {
    font-weight: 700 !important;
    color: #000 !important;
}

/* 14. ESTILO PARA A NUVEM DE PALAVRAS (TAG CLOUD) */
.block_keyword_cloud .content {
    text-align: center !important;
    padding: 10px;
}

.block_keyword_cloud li {
    display: inline-block !important;
    margin: 5px !important;
}

.block_keyword_cloud a {
    text-decoration: none !important;
    color: #0056b3 !important;
    font-weight: bold;
}

.block_keyword_cloud a:hover {
    color: #003d7a !important;
    text-decoration: underline !important;
}

/* 15. ATUALIZAÇÃO VISUAL — mantém as cores do cabeçalho configurado */
:root {
    --rftcf-ink: #24313d;
    --rftcf-muted: #637083;
    --rftcf-line: #e6ebf0;
    --rftcf-panel: #ffffff;
    --rftcf-soft: #f6f8fa;
    --rftcf-accent: #0056b3;
}

body {
    background: var(--rftcf-soft);
    color: var(--rftcf-ink);
    font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

/* Não altera .pkp_structure_head nem as cores originais do cabeçalho. */
.pkp_structure_page {
    background: var(--rftcf-panel);
    box-shadow: 0 12px 36px rgba(24, 39, 56, .08);
}

.pkp_structure_content {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_structure_main .title {
    color: var(--rftcf-ink);
    letter-spacing: -.012em;
}

.pkp_structure_main a:not(.cmp_button):not(.obj_galley_link) {
    color: var(--rftcf-accent);
}

.cmp_button,
.obj_galley_link,
.page_login .buttons button,
.page_register .buttons button {
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 58, 120, .16);
    transition: transform .18s ease, box-shadow .18s ease;
}

.cmp_button:hover,
.obj_galley_link:hover,
.page_login .buttons button:hover,
.page_register .buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 58, 120, .20);
}

.pkp_structure_sidebar .block {
    background: #fff;
    border: 1px solid var(--rftcf-line);
    border-radius: 8px;
    box-shadow: 0 5px 16px rgba(24, 39, 56, .05);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.pkp_structure_sidebar .block .title {
    background: #f8fafc;
    border-bottom: 1px solid var(--rftcf-line);
    color: var(--rftcf-ink);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .035em;
    padding: .9rem 1rem;
    text-transform: uppercase;
}

.pkp_structure_sidebar .block .content {
    padding: 1rem;
}

.obj_issue_summary,
.obj_article_summary {
    border: 1px solid var(--rftcf-line);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.obj_article_summary:hover {
    border-left-color: var(--rftcf-accent);
}

/* Rodapé institucional OJSBR */
.pkp_structure_footer_wrapper {
    background: #1f2a35;
    border-top: 4px solid var(--rftcf-accent);
    color: #dce5ec;
}

.pkp_structure_footer {
    align-items: center;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    max-width: 1170px;
    margin: 0 auto;
    padding: 2.25rem 1.5rem;
    text-align: left;
}

.pkp_footer_content {
    max-width: 680px;
    padding: 0;
    text-align: left !important;
}

.pkp_footer_content p {
    color: #dce5ec;
    line-height: 1.65;
    margin: 0 0 .5rem;
}

.pkp_footer_content strong {
    color: #fff;
    letter-spacing: .025em;
}

.pkp_brand_footer {
    border-left: 1px solid rgba(255, 255, 255, .18);
    padding: .35rem 0 .35rem 2rem;
}

.pkp_brand_footer a {
    align-items: flex-start;
    display: inline-flex;
    flex-direction: column;
    float: none;
    max-width: none;
}

.ojsbr-footer-label {
    color: #b8c8d6;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: .18rem;
}

.ojsbr-footer-logo {
    display: block;
    height: 22px;
    width: auto;
}

@media (max-width: 700px) {
    .pkp_structure_footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.25rem;
    }
    .pkp_brand_footer {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .18);
        padding: 1.25rem 0 0;
        width: 100%;
    }
}

/* 16. DEGRADÊ INSTITUCIONAL NO CABEÇALHO E NAVEGAÇÃO. */
.pkp_structure_head {
    background-color: #1e6292 !important;
    background-image: linear-gradient(112deg, #287fb5 0%, #1e6292 48%, #123f64 100%) !important;
}

.pkp_navigation_primary_wrapper,
.pkp_site_nav_menu {
    border-top: 1px solid rgba(255, 255, 255, .14);
}

/* Desktop: o menu fica dentro do cabeçalho e herda o degradê. */
@media (min-width: 992px) {
    .pkp_navigation_primary_wrapper,
    .pkp_site_nav_menu {
        background: transparent !important;
    }
}

/* Celular: o menu hambúrguer abre como painel sobre a página — precisa de fundo próprio. */
@media (max-width: 991px) {
    .pkp_site_nav_menu {
        background-color: #123f64 !important;
        background-image: linear-gradient(180deg, #1e6292 0%, #123f64 100%) !important;
    }
    .pkp_navigation_primary_wrapper {
        background: transparent !important;
    }
    .pkp_site_nav_menu {
        box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    }
}

.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a {
    text-shadow: 0 1px 1px rgba(0, 0, 0, .16);
}

/* 17. CAPAS — clique para ampliar */
.obj_issue_toc .cover img,
.obj_issue_summary .cover img,
.issue_summary .cover img,
.cmp_issue_cover img {
    cursor: zoom-in;
}

.rftcf-cover-modal {
    align-items: center;
    background: rgba(10, 20, 30, .86);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 2rem;
    position: fixed;
    transition: opacity .18s ease;
    visibility: hidden;
    z-index: 10000;
}

.rftcf-cover-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.rftcf-cover-modal img {
    box-shadow: 0 18px 48px rgba(0, 0, 0, .48);
    max-height: calc(100vh - 4rem);
    max-width: min(92vw, 760px);
    object-fit: contain;
}

.rftcf-cover-modal button {
    background: rgba(255, 255, 255, .94);
    border: 0;
    border-radius: 50%;
    color: #1f2a35;
    cursor: pointer;
    font-size: 1.75rem;
    height: 2.4rem;
    line-height: 1;
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    width: 2.4rem;
}
