/* ============================================
   JHH — Custom CSS for OJS Default Theme
   Paste this into:
   Settings → Website → Appearance → Custom CSS
   ============================================ */

/* ---- Color palette (change these to re-theme everything) ---- */
:root {
  --jhh-accent: #0b5f7e;      /* main accent color (headers, links, buttons) */
  --jhh-accent-dark: #084a63; /* hover / darker accent */
  --jhh-accent-light: #2f93b5; /* light blue for the secondary nav row */
  --jhh-bg-light: #f4f8fa;    /* light background for cards */
  --jhh-border: #dbe6ea;      /* subtle border color */
  --jhh-text: #2b2b2b;
}

/* ---- General typography polish ---- */
body {
  color: var(--jhh-text);
  line-height: 1.6;
}

/* ---- Gray page background with centered white "card" layout ---- */
body {
  background-color: #e9ebec !important;
}

.pkp_structure_page {
  max-width: 1600px;
  margin: 0 auto !important;
  background-color: #ffffff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.07);
}

a {
  color: var(--jhh-accent);
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--jhh-accent-dark);
}

/* ---- Secondary navigation bar (About / Submissions / Current / ...) ---- */
/* Paint the full-width row wrapper, not just the <ul> of links,
   so the color reaches edge-to-edge instead of stopping after
   the last menu item */
.pkp_navigation_primary_row {
  background-color: var(--jhh-accent-light) !important;
  width: 100%;
}

.pkp_navigation_primary_row_container,
#navigationPrimary,
.pkp_navigation_primary {
  background-color: transparent !important;
}

#navigationPrimary a,
.pkp_navigation_primary a {
  color: #ffffff !important;
  font-weight: 500;
}

#navigationPrimary a:hover,
.pkp_navigation_primary a:hover {
  background-color: var(--jhh-accent-dark) !important;
}

/* Make sure the search icon/box on the right of that row matches too */
.pkp_navigation_primary_row .pkp_search,
.pkp_navigation_primary_row .search,
.pkp_navigation_primary_row button,
.pkp_navigation_primary_row a.search_input_toggle {
  background-color: transparent !important;
  color: #ffffff !important;
}

/* ---- Journal title / masthead ---- */
.pkp_site_name_wrapper .pkp_site_name,
.journal_title {
  color: var(--jhh-accent);
  font-weight: 700;
}

/* ---- Sidebar "card" style blocks ---- */
.pkp_block {
  background-color: #ffffff;
  border: 1px solid var(--jhh-border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pkp_block h2,
.pkp_block .title {
  color: var(--jhh-accent);
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 2px solid var(--jhh-bg-light);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.pkp_block ul {
  list-style: none;
  padding-left: 0;
}

.pkp_block ul li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--jhh-border);
}

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

/* ---- "Make a Submission" button ---- */
.pkp_button,
.cmp_button,
a.submission_button,
.block_make_submission_link {
  background-color: var(--jhh-accent-light) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important; /* fully pill-shaped, like Geograficky casopis */
  padding: 0.7rem 1.6rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
  text-align: center;
  transition: background-color 0.15s ease-in-out;
}

.pkp_button:hover,
.cmp_button:hover,
a.submission_button:hover,
.block_make_submission_link:hover {
  background-color: var(--jhh-accent-dark) !important;
}

/* ---- Homepage "About the Journal" section ---- */
/* Strip any background/shading and pull it closer to the banner image */
#homepageAbout.homepage_about,
#homepageAbout {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 0.25rem !important;
  margin-bottom: 1rem !important;
}

#homepageAbout h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* If a small empty placeholder box still appears right above the
   "About the Journal" heading, it's likely an empty journal-thumbnail
   image element with no image set. This hides any such empty image: */
#homepageAbout img[src=""],
#homepageAbout img:not([src]) {
  display: none !important;
}

/* ---- Hero / homepage banner image polish ---- */
/* Target the wrapper div itself, not just the <img>, since the
   wrapper's own bottom margin/padding was the real source of the gap */
#homepageImage,
.pkp_homepage_image,
.homepage_image {
  margin: 0 0 0.5rem 0 !important;
  padding: 0 !important;
}

.pkp_homepage_image img,
#homepageImage img {
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  margin: 0 !important;
}

/* Trim the main content area's own top padding too, as a fallback
   in case the gap is coming from the content wrapper rather than
   the image wrapper */
.pkp_structure_main,
#main {
  padding-top: 0.5rem !important;
}

/* ---- Latest publications feed icons: smaller & inline ---- */
.pkp_block .feed_links,
.pkp_block ul.feed {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  padding-left: 0;
}

.pkp_block .feed_links img,
.pkp_block ul.feed img {
  height: 22px;
  width: auto;
}

/* ---- Sidebar link hover effect (For Readers/Authors/Librarians) ---- */
.pkp_block ul li a {
  display: block;
  padding: 0.2rem 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.pkp_block ul li a:hover {
  color: var(--jhh-accent-dark);
  transform: translateX(3px);
}

/* ---- Current Issue article list ---- */
.obj_article_summary {
  border-bottom: 1px solid var(--jhh-border);
  padding: 1rem 0;
}

.obj_article_summary .title {
  font-weight: 700;
  color: var(--jhh-accent);
}

.obj_article_summary .authors {
  color: #555;
  font-size: 0.95rem;
}

/* ---- Cover image styling ---- */
.pkp_block img,
.pkp_homepage_image img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

/* ---- Make the "Follow Us" custom block's title visible ---- */
/* OJS marks this block's title as screen-reader-only by default;
   this restores it as a normal visible heading, matching the
   styling of "Information" and "Latest publications" */
#customblock-follow-us .title.pkp_screen_reader,
#customblock-indexed-in .title.pkp_screen_reader {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  color: var(--jhh-accent);
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 2px solid var(--jhh-bg-light);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

/* ---- "Indexed In" logo row: consistent white cards per logo ---- */
/* Wraps each logo's own <a> link in a uniform white box so the
   row reads as one cohesive badge group, even though the logos
   themselves can't be recolored or resized to match (brand rules) */
#customblock-indexed-in .content a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 52px;
  background-color: #ffffff;
  border: 1px solid var(--jhh-border);
  border-radius: 8px;
  padding: 8px;
  box-sizing: border-box;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

#customblock-indexed-in .content a:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Let each logo scale down to fit its box without distortion,
   overriding the fixed height set inline on the <img> tags */
#customblock-indexed-in .content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---- Footer ---- */
#footer,
.pkp_structure_footer {
  border-top: 3px solid var(--jhh-accent);
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: #555;
}
