/* ==========================================================
   SEKARPADI - custom stylesheet for the OJS default theme
   Palette comes from the logo and the journal cover.
   Change a value here once and it updates everywhere.
   Poppins is already self-hosted by the theme's typography
   setting, so no font import is needed in this file.
   ========================================================== */

:root {
  --sk-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sk-yellow: #ffe600;                  /* header yellow: use an eyedropper to match exactly */
  --sk-ink: #1d1d1b;                     /* logo black */
  --sk-line: rgba(29, 29, 27, 0.16);     /* neutral resting borders */
  --sk-green: #2d4a2d;                   /* cover dark green, used for links */
  --sk-green-bright: #4fa83d;            /* cover stripe, used for focus rings */

  --sk-block-gap: 24px;                  /* vertical space between sidebar blocks */
  --sk-side-pad: 30px;                   /* space between the main column and the sidebar */
  --sk-tool-w: 200px;                    /* width of each External Tools logo */
  --sk-tool-h: 96px;                     /* height of every External Tools card (all equal) */
}

/* ---------- Poppins everywhere on the public site ----------
   Font Awesome icons are excluded so the search icon and menu arrows keep working. */
body,
.pkp_structure_page *:not(.fa):not([class*="fa-"]):not(i) {
  font-family: var(--sk-font);
}

::selection {
  background: var(--sk-yellow);
  color: var(--sk-ink);
}

.pkp_structure_sidebar a:focus-visible {
  outline: 3px solid var(--sk-green-bright);
  outline-offset: 3px;
}

/* ---------- Headings: bold text with a horizontal line under it ---------- */
.pkp_structure_sidebar .pkp_block .title,
.homepage_about h2 {
  display: block;
  margin: 0 0 14px;
  padding: 0 0 8px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sk-ink);
  border: 0;
  border-bottom: 3px solid var(--sk-yellow);
}

.pkp_structure_sidebar .pkp_block .title {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;      /* delete this line for normal capitalisation */
}

/* ---------- Sidebar spacing ----------
   The theme pads each block on all four sides. Vertical space is now set by
   --sk-block-gap, and the side padding is kept so the sidebar never touches the main column. */
.pkp_structure_sidebar .pkp_block {
  margin: 0 0 var(--sk-block-gap);
  padding: 0 var(--sk-side-pad);
}

.pkp_structure_sidebar .pkp_block:last-child {
  margin-bottom: 0;
}

/* Links in future blocks (Information, Browse...) */
.pkp_structure_sidebar .pkp_block:not(.block_language):not(.block_make_submission):not(.block_custom) a {
  color: var(--sk-green);
  text-decoration-color: var(--sk-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.pkp_structure_sidebar .pkp_block:not(.block_language):not(.block_make_submission):not(.block_custom) a:hover {
  color: var(--sk-ink);
  text-decoration-thickness: 3px;
}

/* ---------- Language: two pills side by side ---------- */
.pkp_structure_sidebar .block_language ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pkp_structure_sidebar .block_language li {
  margin: 0;
  padding: 0;
}

.pkp_structure_sidebar .block_language li a {
  display: block;
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--sk-ink);
  background: #fff;
  border: 1px solid var(--sk-line);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.pkp_structure_sidebar .block_language li a:hover {
  border-color: var(--sk-yellow);
  background: #fffbe0;
}

.pkp_structure_sidebar .block_language li.current a {
  font-weight: 600;
  background: var(--sk-yellow);
  border-color: var(--sk-yellow);
}

/* ---------- Make a Submission ---------- */
.pkp_structure_sidebar .block_make_submission .block_make_submission_link {
  display: block;
  padding: 14px 16px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sk-ink);
  background: var(--sk-yellow);
  border: 2px solid var(--sk-ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--sk-ink);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.pkp_structure_sidebar .block_make_submission .block_make_submission_link:hover {
  color: var(--sk-ink);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--sk-ink);
}

.pkp_structure_sidebar .block_make_submission .block_make_submission_link:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--sk-ink);
}

/* ---------- External Tools: full-colour logos in neutral cards ---------- */
.ext-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ext-tool {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--sk-tool-h);
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--sk-line);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

/* Every logo is 200px wide, its height follows its own proportions,
   and all cards share the same height so the column looks even */
.ext-tool img {
  display: block;
  width: var(--sk-tool-w);
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

a.ext-tool:hover,
a.ext-tool:focus-visible {
  border-color: var(--sk-yellow);
  box-shadow: 0 3px 0 var(--sk-yellow);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.pkp_structure_footer_wrapper {
  border-top: 6px solid var(--sk-yellow);
}

@media (prefers-reduced-motion: reduce) {
  .ext-tool,
  .block_language li a,
  .pkp_structure_sidebar .block_make_submission .block_make_submission_link {
    transition: none;
  }
  a.ext-tool:hover,
  a.ext-tool:focus-visible,
  .pkp_structure_sidebar .block_make_submission .block_make_submission_link:hover {
    transform: none;
  }
}
