/* ============================================================================
   LIFESTYLE JOURNAL – CSS CUSTOMIZADO PARA TEMA "JOURNAL" (OJS 3 / BOOTSTRAP)
   v3 – Logo 280px + Paleta harmônica laranja/azul + Menu maior
   ============================================================================ */

/* ============================================================================
   1. VARIÁVEIS DE CORES (harmonia com logotipo laranja)
   ============================================================================ */
:root {
  --primary-orange: #e87e24;
  --primary-orange-dark: #c96a1a;
  --primary-blue: #1a5276;
  --primary-blue-light: #2980b9;
  --accent-teal: #148f77;
  --accent-gold: #d4a017;
  --text-dark: #1c2833;
  --text-gray: #566573;
  --bg-warm: #fdf6ee;
  --border-light: #e5e0d8;
  --border-medium: #d5cec4;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --header-gradient: linear-gradient(135deg, #1c2833 0%, #2c3e50 50%, #1a252f 100%);
  --radius: 10px;
}

/* ============================================================================
   2. HEADER + LOGO CENTRALIZADO (OJS 3 – TEMA JOURNAL/BOOTSTRAP)
   ============================================================================ */

/* --- Navbar como flex-wrap para empilhar logo + menu --- */
.navbar-default > .container,
.navbar-default > .container-fluid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 15px !important;
}

/* --- Bloco do logo: largura total, centralizado --- */
.navbar-header {
  float: none !important;
  width: 100% !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 10px 0 5px !important;
  margin: 0 !important;
}

/* --- Link do logo --- */
.navbar-brand {
  float: none !important;
  display: inline-block !important;
  padding: 0 !important;
  margin: 0 auto !important;
  height: auto !important;
  max-width: none !important;
}

/* --- Imagem do logo: TAMANHO GRANDE --- */
.navbar-brand img {
  max-height: 350px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  transition: transform 0.3s ease, filter 0.3s ease;
}

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

/* --- Caso o título seja texto --- */
h1.navbar-brand,
.navbar-brand {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  text-align: center !important;
}

/* --- Menu: largura total, centralizado abaixo do logo --- */
.navbar-collapse {
  float: none !important;
  width: 100% !important;
  text-align: center !important;
  padding: 0 !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

.navbar-default .navbar-nav {
  float: none !important;
  display: inline-flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  width: auto !important;
  margin: 0 auto !important;
}

/* --- Estrutura PKP (fallback/reforço) --- */
.pkp_structure_head {
  padding: 0 !important;
}

.pkp_site_name_wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: auto !important;
  padding: 10px 0 !important;
}

.pkp_site_name {
  float: none !important;
  text-align: center !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

.pkp_site_name img {
  max-height: 350px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

.pkp_site_name a {
  max-width: none !important;
  display: inline-block !important;
  text-align: center !important;
}

.pkp_site_name h1 {
  text-align: center !important;
  margin: 0 !important;
}

/* Botão hambúrguer mobile */
.navbar-toggle {
  float: right !important;
  margin-top: -50px !important;
  position: relative;
  z-index: 100;
}

/* ============================================================================
   3. RESPONSIVIDADE DO HEADER
   ============================================================================ */

/* Tablets */
@media (max-width: 991px) {
  .navbar-brand img,
  .pkp_site_name img {
    max-height: 260px !important;
  }
  .pkp_site_name_wrapper {
    min-height: auto !important;
  }
  .navbar-header {
    padding: 12px 0 8px !important;
  }
}

/* Smartphones */
@media (max-width: 767px) {
  .navbar-brand img,
  .pkp_site_name img {
    max-height: 180px !important;
  }
  .pkp_site_name_wrapper {
    min-height: auto !important;
  }
  .navbar-header {
    padding: 10px 0 5px !important;
  }
  .navbar-toggle {
    margin-top: 0 !important;
    position: absolute;
    right: 15px;
    top: 15px;
  }
  .navbar-collapse {
    border-top: none !important;
  }
  .navbar-default .navbar-nav {
    display: block !important;
  }
}

/* Smartphones pequenos */
@media (max-width: 480px) {
  .navbar-brand img,
  .pkp_site_name img {
    max-height: 130px !important;
  }
  .pkp_site_name_wrapper {
    min-height: auto !important;
  }
}

/* ============================================================================
   4. NAVBAR – ESTILO VISUAL (gradiente escuro premium)
   ============================================================================ */
.navbar,
.navbar-default {
  background: var(--header-gradient);
  border: none;
  box-shadow: var(--shadow-md);
  padding: 0;
  margin-bottom: 0;
}

/* MENU – FONTE MAIOR */
.navbar-default .navbar-nav > li > a {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
  padding: 18px 24px;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  background: rgba(232, 126, 36, 0.18);
  color: #f5b041 !important;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background: rgba(232, 126, 36, 0.28);
  color: #ffffff !important;
}

/* Dropdown menus */
.dropdown-menu {
  background: #2c3e50;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: 0;
}

.dropdown-menu > li > a {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 14px 24px;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.dropdown-menu > li > a:hover {
  background: rgba(232, 126, 36, 0.2);
  color: #f5b041 !important;
}

/* Caret dos dropdowns */
.navbar-default .navbar-nav > li > a .caret {
  border-top-color: rgba(255,255,255,0.7);
}

/* ============================================================================
   5. 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;
}

/* ============================================================================
   6. ARTIGOS – CARDS COM BORDA LARANJA
   ============================================================================ */
.obj_article_summary,
.article-summary,
.media {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  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-orange), var(--accent-teal));
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.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-blue) !important;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.45;
  transition: color 0.3s ease;
}

.obj_article_summary h3 a:hover,
.article-title a:hover {
  color: var(--primary-orange) !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 {
  display: inline-block;
  background: linear-gradient(135deg, rgba(232,126,36,0.1), rgba(20,143,119,0.1));
  color: var(--primary-blue);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1.5px solid rgba(232,126,36,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-orange), var(--accent-teal));
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============================================================================
   7. SIDEBAR – DESIGN MODERNO
   ============================================================================ */
.sidebar .panel,
.sidebar .well,
.pkp_block {
  background: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 0;
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
}

.sidebar .panel:hover,
.sidebar .well:hover,
.pkp_block:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* Títulos da sidebar – header com gradiente */
.sidebar .panel-heading,
.sidebar h3,
.pkp_block h3 {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 !important;
  padding: 1rem 1.25rem !important;
  border-bottom: none !important;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light)) !important;
  letter-spacing: 0.02em;
}

/* Conteúdo dos blocos */
.pkp_block .content,
.pkp_block ul,
.sidebar .panel-body,
.sidebar .well > *:not(h3) {
  padding: 1rem 1.25rem;
}

.pkp_block ul {
  list-style: none;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  margin: 0;
}

.pkp_block ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0ece6;
  transition: padding-left 0.2s ease;
}

.pkp_block ul li:last-child {
  border-bottom: none;
}

.pkp_block ul li:hover {
  padding-left: 6px;
}

/* Sidebar links */
.sidebar a,
.pkp_block a {
  color: var(--primary-blue);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sidebar a:hover,
.pkp_block a:hover {
  color: var(--primary-orange);
}

/* Botão "Enviar Submissão" – Card destaque laranja */
.sidebar .panel:first-child,
.sidebar .well:first-child {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #d35400 100%) !important;
  color: #ffffff !important;
  text-align: center;
  border: none !important;
  box-shadow: 0 4px 18px rgba(232, 126, 36, 0.3);
  padding: 1.5rem !important;
}

.sidebar .panel:first-child:hover,
.sidebar .well:first-child:hover {
  box-shadow: 0 8px 28px rgba(232, 126, 36, 0.4);
}

.sidebar .panel:first-child .panel-heading,
.sidebar .panel:first-child h3,
.sidebar .well:first-child h3 {
  color: #ffffff !important;
  background: transparent !important;
  border-bottom: none !important;
  padding: 0.5rem 0 !important;
  font-size: 1.15rem;
}

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

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

/* ============================================================================
   8. BOTÕES
   ============================================================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #ffffff;
  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-orange-dark), #a85c15);
  color: #ffffff;
}

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

.btn-default:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  background: rgba(232, 126, 36, 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-orange);
  box-shadow: 0 0 0 3px rgba(232, 126, 36, 0.12);
  outline: none;
}

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

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

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

.table tbody tr:hover {
  background: var(--bg-warm);
}

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

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

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

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

.alert-info {
  background: rgba(41, 128, 185, 0.08);
  border-color: var(--primary-blue-light);
}

.alert-success {
  background: rgba(20, 143, 119, 0.08);
  border-color: var(--accent-teal);
}

.alert-warning {
  background: rgba(232, 126, 36, 0.08);
  border-color: var(--primary-orange);
}

.alert-danger {
  background: rgba(231, 76, 60, 0.08);
  border-color: #e74c3c;
}

/* ============================================================================
   13. KEYWORDS/TAGS
   ============================================================================ */
.tag,
.keyword {
  display: inline-block;
  background: rgba(232, 126, 36, 0.08);
  color: var(--primary-blue);
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid rgba(232, 126, 36, 0.2);
  margin: 0.25rem;
  transition: all 0.3s ease;
}

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

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

.breadcrumb > li + li:before {
  content: "\203A";
  color: var(--text-gray);
  padding: 0 6px;
}

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

.breadcrumb a:hover {
  color: var(--primary-orange);
}

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

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

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

/* ============================================================================
   16. FOOTER
   ============================================================================ */
.footer,
footer {
  background: var(--header-gradient);
  color: #bdc3c7;
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 3px solid var(--primary-orange);
}

.footer a,
footer a {
  color: #f5b041;
  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(--primary-orange);
  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) {
  .obj_article_summary,
  .article-summary {
    padding: 1.25rem;
  }

  .navbar-default .navbar-nav > li > a {
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

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

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

/* ============================================================================
   21. CAMPO DE BUSCA NA NAVBAR
   ============================================================================ */
.navbar-default .navbar-form .form-control {
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  padding: 6px 16px;
  transition: all 0.3s ease;
}

.navbar-default .navbar-form .form-control:focus {
  background: rgba(255,255,255,0.15);
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(232,126,36,0.15);
}

.navbar-default .navbar-form .btn {
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* ============================================================================
   22. EDIÇÃO ATUAL – TÍTULOS DE SEÇÃO
   ============================================================================ */
.page-header,
.issues_header,
h2.title {
  color: var(--primary-blue);
  font-weight: 800;
  border-bottom: 3px solid var(--primary-orange);
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}

/* ============================================================================
   FIM – CSS v3 LIFESTYLE JOURNAL (OJS 3 / TEMA JOURNAL)
   ============================================================================ */
