
/* === ILIN Journal — Custom OJS Stylesheet ===
   File: ojs-ilin-theme.css
   Purpose: Journal stylesheet inspired by https://journal.ilininstitute.com
   Instructions:
   - Upload this file into your custom theme folder (plugins/themes/your_theme/styles/)
   - If using LESS, either convert variables or import this CSS directly.
   - Clear OJS cache and browser cache after upload.
*/

/* ----------------
   Variables (edit these to change the look)
   ---------------- */
:root{
  --primary-teal: #0F5A59;    /* main header/nav color */
  --accent-teal:  #144B4B;    /* darker accents */
  --muted-gray:   #6b6b6b;    /* body text */
  --bg-gray:      #f7f8f9;    /* page background */
  --card-bg:      #ffffff;    /* card / content background */
  --link-color:   #0F5A59;
  --border:       rgba(0,0,0,0.06);
  --max-width:    1100px;
  --radius:       8px;
  --font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* ----------------
   Global reset / base
   ---------------- */
html,body {
  height: 100%;
  background: var(--bg-gray);
  font-family: var(--font-sans);
  color: #222;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--link-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Page container */
.site {
  max-width: var(--max-width);
  margin: 28px auto;
  background: var(--card-bg);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 6px 20px rgba(15,30,30,0.06);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ----------------
   Header
   ---------------- */
.site .journal-header {
  background: linear-gradient(180deg, var(--primary-teal), var(--accent-teal));
  color: #fff;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site .journal-header .journal-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site .journal-header .journal-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  padding: 6px;
}

.site .journal-header .journal-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.site .journal-header .journal-subtitle {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.95;
  font-weight: 400;
}

/* Header right: search box */
.site .journal-header .header-tools {
  margin-left: auto;
}

.site .journal-header .header-tools .search-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  min-width: 240px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.site .journal-header .search-box input[type="search"] {
  border: none;
  outline: none;
  font-size: 14px;
  width: 160px;
}

/* ----------------
   Primary navigation
   ---------------- */
.site .primary-nav {
  background: var(--accent-teal);
  padding: 10px 32px;
  display: flex;
  gap: 24px;
  color: #fff;
}

.site .primary-nav a {
  color: #fff;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
}

.site .primary-nav a:hover,
.site .primary-nav .active {
  background: rgba(255,255,255,0.06);
}

/* ----------------
   Main content grid
   ---------------- */
.site .content-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  padding: 28px 32px;
}

/* Sidebar (left column) */
.site .sidebar {
  background: #fbfbfb;
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 8px;
  position: relative;
}

.site .sidebar h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: var(--primary-teal);
}

.site .sidebar .block {
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted-gray);
}

.site .sidebar .search-button {
  display: inline-block;
  margin-top: 10px;
  background: var(--primary-teal);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
}

/* Recent announcements */
.site .sidebar .announcements .item {
  margin-bottom: 12px;
  font-size: 13px;
}

/* ----------------
   Article / content area (right column)
   ---------------- */
.site .main-content {
  background: transparent;
}

.site .main-content .card {
  background: var(--card-bg);
  padding: 8px 0 0 0;
}

.site .main-content h1, .site .main-content h2 {
  color: rgba(0,0,0,0.86);
  margin: 0 0 14px 0;
}

.site .main-content p {
  color: var(--muted-gray);
  font-size: 15px;
  margin-bottom: 12px;
}

.site .main-content .meta {
  color: #8a8a8a;
  font-size: 13px;
  margin-bottom: 18px;
}

/* Journal Help / Tools */
.site .main-content .help {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* ----------------
   Tables, lists, article listings
   ---------------- */
.issue-list, .article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.issue-list li, .article-list li {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.issue-list li:last-child, .article-list li:last-child {
  border-bottom: none;
}

/* Buttons and links */
.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--primary-teal);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.btn.outline {
  background: transparent;
  color: var(--primary-teal);
  border: 1px solid var(--primary-teal);
}

/* ----------------
   Footer
   ---------------- */
.site .site-footer {
  background: #fafafa;
  border-top: 1px solid var(--border);
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted-gray);
}

/* ----------------
   Responsive
   ---------------- */
@media (max-width: 900px) {
  .site {
    margin: 16px;
  }
  .site .journal-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .site .primary-nav { padding: 10px 16px; overflow-x: auto; }
  .site .content-wrap {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .site .sidebar { order: 2; }
  .site .main-content { order: 1; }
  .site .journal-header .search-box { min-width: 100%; }
}

/* ----------------
   Accessibility tweaks
   ---------------- */
a:focus, button:focus, input:focus {
  outline: 3px solid rgba(15,90,89,0.18);
  outline-offset: 2px;
}

/* ----------------
   OJS-specific helper selectors (common structures)
   Note: Some OJS installations use different classes; tweak selectors if necessary.
   ---------------- */
.pkp_structure_page, .pkp_structure_main {
  background: transparent;
}

.pkp_block, .pkp_block .pkp_block_title {
  box-shadow: none;
  border: none;
}

/* Small utility classes */
.text-muted { color: var(--muted-gray); font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
