/* ============================================================================
   PROMPTAI ACADEMY JOURNAL - CSS PARA TEMA "JOURNAL" (BOOTSTRAP)
   Logo maior e responsivo + Cores aprimoradas + Textos justificados
   ============================================================================ */

/* ============================================================================
   1. VARIÁVEIS DE CORES
   ============================================================================ */
:root {
  --primary-blue: #2563eb;
  --primary-dark: #1e40af;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --text-dark: #0f172a;
  --text-gray: #475569;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   2. LOGO MAIOR E RESPONSIVO
   ============================================================================ */

/* Container do logo */
.navbar-header,
.navbar-brand {
  text-align: center;
  width: 100%;
  display: block;
}

/* Logo - tamanho aumentado e responsivo */
.navbar-brand img,
.navbar-header img,
img.img-fluid {
  max-height: 120px !important; /* Desktop - bem maior */
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 1rem auto !important;
  transition: all 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Se for texto ao invés de imagem */
.navbar-brand,
h1.navbar-brand {
  font-size: 2rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  display: block !important;
  padding: 1.5rem 0 !important;
}

/* ============================================================================
   3. RESPONSIVIDADE DO LOGO
   ============================================================================ */

/* Tablets */
@media (max-width: 991px) {
  .navbar-brand img,
  .navbar-header img {
    max-height: 90px !important;
  }
  
  .navbar-brand,
  h1.navbar-brand {
    font-size: 1.75rem !important;
  }
}

/* Smartphones */
@media (max-width: 767px) {
  .navbar-brand img,
  .navbar-header img {
    max-height: 70px !important;
    margin: 0.75rem auto !important;
  }
  
  .navbar-brand,
  h1.navbar-brand {
    font-size: 1.5rem !important;
    padding: 1rem 0 !important;
  }
}

/* Smartphones pequenos */
@media (max-width: 480px) {
  .navbar-brand img,
  .navbar-header img {
    max-height: 60px !important;
  }
  
  .navbar-brand,
  h1.navbar-brand {
    font-size: 1.25rem !important;
  }
}

/* ============================================================================
   4. TEXTOS JUSTIFICADOS
   ============================================================================ */
p,
.article-summary p,
.obj_article_summary p,
.content p,
.description,
article p,
.block p,
.about p,
.entry-content p,
.page-content p,
.article-details p,
.article-abstract p {
  text-align: justify !important;
  text-justify: inter-word;
  hyphens: auto;
}

/* ============================================================================
   5. HEADER/NAVBAR COM CORES APRIMORADAS
   ============================================================================ */
.navbar,
.navbar-default {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: none;
  box-shadow: var(--shadow-md);
  padding: 0;
}

.navbar-default .navbar-nav > li > a {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  padding: 15px 20px;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa !important;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background: rgba(37, 99, 235, 0.25);
  color: #ffffff !important;
}

/* Dropdown menus */
.dropdown-menu {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.dropdown-menu > li > a {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 10px 20px;
}

.dropdown-menu > li > a:hover {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa !important;
}

/* ============================================================================
   6. ARTIGOS COM CORES APRIMORADAS
   ============================================================================ */
.obj_article_summary,
.article-summary,
.media {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.obj_article_summary::before,
.article-summary::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-blue), var(--accent-purple));
  border-radius: 12px 0 0 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.obj_article_summary:hover,
.article-summary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary-blue);
}

.obj_article_summary:hover::before,
.article-summary:hover::before {
  opacity: 1;
}

/* Títulos dos artigos */
.obj_article_summary h3 a,
.article-title a,
.media-heading a {
  color: var(--primary-dark) !important;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.obj_article_summary h3 a:hover,
.article-title a:hover {
  color: var(--primary-blue) !important;
  text-decoration: none;
}

/* Autores */
.authors {
  color: var(--text-gray);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0.75rem 0;
}

/* DOI e badges */
.doi,
.badge,
.label {
  display: inline-block;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(139, 92, 246, 0.12));
  color: var(--primary-blue);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1.5px solid rgba(37, 99, 235, 0.25);
  margin: 0.25rem;
  font-family: 'Courier New', monospace;
  transition: all 0.3s ease;
}

.doi:hover,
.badge:hover {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============================================================================
   7. SIDEBAR
   ============================================================================ */
.sidebar .panel,
.sidebar .well,
.pkp_block {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.sidebar .panel:hover,
.sidebar .well:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sidebar .panel-heading,
.sidebar h3,
.pkp_block h3 {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-light);
}

/* Botão "Make a Submission" - Destaque em VERDE */
.sidebar .panel:first-child,
.sidebar .well:first-child,
.cmp_announcements {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  text-align: center;
  border: none !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.sidebar .panel:first-child .panel-heading,
.sidebar .panel:first-child h3,
.sidebar .well:first-child h3 {
  color: #ffffff !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.sidebar .panel:first-child a,
.sidebar .well:first-child a {
  background: #ffffff !important;
  color: #059669 !important;
  display: inline-block !important;
  padding: 1rem 2rem !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  margin-top: 1rem !important;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar .panel:first-child a:hover,
.sidebar .well:first-child a:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3) !important;
  background: #f0fdf4 !important;
}

/* ============================================================================
   8. BOTÕES
   ============================================================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-purple));
}

.btn-default {
  border-radius: 8px;
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
}

.btn-default:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: rgba(37, 99, 235, 0.05);
}

/* ============================================================================
   9. FORMULÁRIOS
   ============================================================================ */
.form-control {
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* ============================================================================
   10. TABELAS
   ============================================================================ */
.table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table thead {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  color: #ffffff;
}

.table thead th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border: none;
}

.table tbody tr:hover {
  background: #f8fafc;
}

/* ============================================================================
   11. PANELS E WELLS
   ============================================================================ */
.panel {
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.panel-heading {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-bottom: 2px solid var(--primary-blue);
  font-weight: 700;
  border-radius: 12px 12px 0 0;
}

.well {
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  box-shadow: var(--shadow-sm);
}

/* ============================================================================
   12. ALERTAS
   ============================================================================ */
.alert {
  border-radius: 10px;
  border-left: 5px solid;
  box-shadow: var(--shadow-sm);
}

.alert-info {
  background: rgba(6, 182, 212, 0.1);
  border-color: #06b6d4;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: #f59e0b;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

/* ============================================================================
   13. KEYWORDS/TAGS
   ============================================================================ */
.tag,
.keyword,
.label {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid rgba(37, 99, 235, 0.2);
  margin: 0.25rem;
  transition: all 0.3s ease;
}

.tag:hover,
.keyword:hover {
  background: var(--primary-blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============================================================================
   14. BREADCRUMBS
   ============================================================================ */
.breadcrumb {
  background: transparent;
  border-radius: 8px;
  padding: 1rem 0;
}

.breadcrumb > li + li:before {
  content: "→";
  color: var(--text-gray);
}

.breadcrumb a {
  color: var(--primary-blue);
  font-weight: 500;
}

/* ============================================================================
   15. PAGINAÇÃO
   ============================================================================ */
.pagination > li > a,
.pagination > li > span {
  border-radius: 8px;
  border: 2px solid var(--border-light);
  margin: 0 0.25rem;
  color: var(--text-dark);
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination > li > a:hover {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
}

.pagination > .active > a,
.pagination > .active > span {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  border-color: transparent;
  color: #ffffff;
}

/* ============================================================================
   16. FOOTER
   ============================================================================ */
.footer,
footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #cbd5e1;
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 3px solid rgba(37, 99, 235, 0.3);
}

.footer a,
footer a {
  color: #60a5fa;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer a:hover,
footer a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================================
   17. LINKS GERAIS
   ============================================================================ */
a {
  color: var(--primary-blue);
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--accent-purple);
  text-decoration: none;
}

/* ============================================================================
   18. IMAGENS RESPONSIVAS
   ============================================================================ */
img {
  max-width: 100%;
  height: auto;
}

.img-thumbnail,
.thumbnail {
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

/* ============================================================================
   19. RESPONSIVIDADE ADICIONAL
   ============================================================================ */
@media (max-width: 767px) {
  /* Ajustes para mobile */
  .obj_article_summary,
  .article-summary {
    padding: 1.25rem;
  }
  
  .navbar-default .navbar-nav > li > a {
    padding: 12px 15px;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

/* ============================================================================
   20. ACESSIBILIDADE
   ============================================================================ */
*:focus {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================================
   FIM - CSS PARA TEMA JOURNAL (BOOTSTRAP)
   ============================================================================ */

/* ============================================================================
   21. HEADER OJS 3 – CENTRALIZAÇÃO E ALTURA (PATCH DEFINITIVO)
   Objetivo: centralizar o logo e aumentar a altura do header do OJS 3 (PKP UI)
   Compatível com: OJS 3.x (tema Bootstrap/Journal)
   ============================================================================ */

/* Estrutura do header (OJS/PKP) */
.pkp_structure_head {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Wrapper do nome/logo */
.pkp_site_name_wrapper {
  display: flex !important;
  justify-content: center !important; /* centraliza horizontal */
  align-items: center !important;     /* centraliza vertical */
  min-height: 150px;                 /* ALTURA DO HEADER (desktop) */
  padding: 25px 0 !important;
}

/* Remove alinhamentos antigos e garante centralização */
.pkp_site_name {
  float: none !important;
  text-align: center !important;
  margin: 0 auto !important;
  width: 100%;
}

/* Logo (imagem) */
.pkp_site_name img {
  max-height: 95px !important;       /* TAMANHO DO LOGO (desktop) */
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Caso o título apareça como texto */
.pkp_site_name h1,
.pkp_site_name a {
  display: inline-block !important;
  text-align: center !important;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 !important;
}

/* Responsividade */
@media (max-width: 768px) {
  .pkp_site_name_wrapper {
    min-height: 120px;
    padding: 20px 0 !important;
  }

  .pkp_site_name img {
    max-height: 70px !important;
  }
}

@media (max-width: 480px) {
  .pkp_site_name_wrapper {
    min-height: 105px;
  }

  .pkp_site_name img {
    max-height: 60px !important;
  }
}

/* ============================================================================
   FIM DO PATCH 21
   ============================================================================ */



/* ============================================================================
   PATCH FINAL – HEADER OJS 3 (LOGO GRANDE CENTRALIZADO)
   ============================================================================ */

/* Header geral */
.pkp_structure_head {
  padding: 0 !important;
}

/* Área do header */
.pkp_site_name_wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 180px !important;
  padding: 30px 0 !important;
}

/* Remove limites do container */
.pkp_site_name {
  float: none !important;
  text-align: center !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* LOGOTIPO – TAMANHO GRANDE */
.pkp_site_name img {
  max-height: 130px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

.pkp_site_name a {
  max-width: none !important;
}

/* Responsividade */
@media (max-width: 991px) {
  .pkp_site_name_wrapper {
    min-height: 150px !important;
  }
  .pkp_site_name img {
    max-height: 100px !important;
  }
}

@media (max-width: 768px) {
  .pkp_site_name_wrapper {
    min-height: 130px !important;
  }
  .pkp_site_name img {
    max-height: 85px !important;
  }
}

@media (max-width: 480px) {
  .pkp_site_name_wrapper {
    min-height: 115px !important;
  }
  .pkp_site_name img {
    max-height: 70px !important;
  }
}

/* ============================================================================
   FIM PATCH FINAL HEADER
   ============================================================================ */


/* ============================================================================
   PATCH EXTRA – LOGOTIPO AINDA MAIOR (HEADER PREMIUM)
   ============================================================================ */

/* Header ainda mais alto */
.pkp_site_name_wrapper {
  min-height: 220px !important;
  padding: 40px 0 !important;
}

/* LOGO MUITO MAIOR */
.pkp_site_name img {
  max-height: 170px !important;
}

/* Tablets */
@media (max-width: 991px) {
  .pkp_site_name_wrapper {
    min-height: 180px !important;
  }
  .pkp_site_name img {
    max-height: 135px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .pkp_site_name_wrapper {
    min-height: 150px !important;
  }
  .pkp_site_name img {
    max-height: 110px !important;
  }
}

@media (max-width: 480px) {
  .pkp_site_name_wrapper {
    min-height: 130px !important;
  }
  .pkp_site_name img {
    max-height: 95px !important;
  }
}

/* ============================================================================
   FIM PATCH EXTRA – LOGO AINDA MAIOR
   ============================================================================ */
