/* =========================================================
   OJS UNIQUE MULTI-SECTION CSS STYLESHEET
   Every section has a different design language
   ========================================================= */

/* ---------- ROOT ---------- */
:root {
  --c1: #0b3c5d;
  --c2: #1d70a2;
  --c3: #28a5c4;
  --c4: #f4a261;
  --c5: #e76f51;
  --c6: #2a9d8f;
  --bg: #e8f3f8;
  --white: #ffffff;
  --text: #22313f;
  --muted: #5c6f7c;
  --line: #cfe1eb;
}

/* ---------- GLOBAL ---------- */
body,
.pkp_page_index,
.pkp_page_about,
.pkp_page_issue,
.pkp_page_article {
  background: linear-gradient(180deg, #dceef5 0%, #edf8fc 100%);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
}

a {
  color: var(--c2);
  text-decoration: none;
  transition: 0.3s ease;
}
a:hover {
  color: var(--c5);
}

img {
  max-width: 100%;
  height: auto;
}

.pkp_structure_page {
  max-width: 1280px;
  margin: 0 auto;
}

/* =========================================================
   1. HEADER = DARK GLASSY STYLE
   ========================================================= */
.pkp_structure_head {
  background: linear-gradient(135deg, #08263d, #0b3c5d, #1d70a2);
  border-bottom: 4px solid var(--c4);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.pkp_site_name a,
.pkp_site_name .is_text {
  color: #fff !important;
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.pkp_site_name img {
  max-height: 76px;
}

/* NAV = pill menu */
.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a {
  color: #fff !important;
  font-weight: 600;
  padding: 10px 16px;
  margin: 4px 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_user > li > a:hover {
  background: rgba(255,255,255,0.18);
  color: #fff !important;
}

/* =========================================================
   2. MAIN CONTENT = SOFT ELEGANT PANEL
   ========================================================= */
.pkp_structure_main,
.page_index_journal,
.page_about,
.obj_issue_toc,
.obj_article_details {
  background: rgba(255,255,255,0.60);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(29,112,162,0.08);
}

/* Section headings = underline style */
h1, h2, h3, h4, h5 {
  color: var(--c1);
  font-weight: 700;
}
h2 {
  position: relative;
  padding-bottom: 10px;
}
h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 8px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--c4), var(--c5));
}

/* =========================================================
   3. ABOUT / JOURNAL INTRO = LEFT BORDER FEATURE BLOCK
   ========================================================= */
.journal-description,
.homepage_image,
.additional_content,
.page_index_journal .homepage_content {
  background: linear-gradient(135deg, #ffffff, #f7fcfe);
  border-left: 6px solid var(--c3);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* =========================================================
   4. CURRENT ISSUE = MAGAZINE CARD STYLE
   ========================================================= */
.current_issue,
.obj_issue_summary {
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
  border: 1px solid #d5e7ef;
  border-radius: 18px;
  padding: 18px !important;
  margin-bottom: 20px;
  box-shadow: 0 14px 26px rgba(42,157,143,0.10);
  position: relative;
  overflow: hidden;
}

.current_issue::before,
.obj_issue_summary::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(42,157,143,0.18), transparent 70%);
}

.current_issue img,
.obj_issue_summary .cover img {
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* =========================================================
   5. ARTICLES / ANNOUNCEMENTS = TIMELINE STRIP STYLE
   ========================================================= */
.obj_article_summary,
.cmp_announcements .obj_announcement_summary {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 16px;
  padding: 16px 16px 16px 22px !important;
  box-shadow: 0 8px 18px rgba(11,60,93,0.07);
  position: relative;
}

.obj_article_summary::before,
.cmp_announcements .obj_announcement_summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 6px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--c3), var(--c6));
}

.obj_article_summary:hover,
.cmp_announcements .obj_announcement_summary:hover {
  transform: translateX(4px);
  transition: 0.25s ease;
}

.obj_article_summary .title a,
.cmp_announcements .title a,
.obj_issue_summary .title a {
  color: var(--c1) !important;
  font-weight: 700;
}
.obj_article_summary .title a:hover,
.cmp_announcements .title a:hover,
.obj_issue_summary .title a:hover {
  color: var(--c5) !important;
}

/* =========================================================
   6. BUTTONS = BRIGHT GRADIENT STYLE
   ========================================================= */
.cmp_button,
button,
input[type="submit"],
a.read_more,
a.obj_galley_link,
a.file,
.popup-btn {
  background: linear-gradient(135deg, var(--c4), var(--c5));
  color: #fff !important;
  border: none;
  border-radius: 30px;
  padding: 10px 18px;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 8px 20px rgba(231,111,81,0.20);
  transition: 0.3s ease;
}

.cmp_button:hover,
button:hover,
input[type="submit"]:hover,
a.read_more:hover,
a.obj_galley_link:hover,
a.file:hover,
.popup-btn:hover {
  background: linear-gradient(135deg, var(--c6), var(--c3));
  transform: translateY(-2px);
  color: #fff !important;
}

/* =========================================================
   7. SIDEBAR BLOCKS = FLOATING MINI PANELS
   ========================================================= */
.pkp_block {
  background: linear-gradient(180deg, #ffffff, #f6fbfd);
  border: 1px solid #d7e7ef;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 10px 22px rgba(29,112,162,0.08);
}

.pkp_block .title {
  text-align: center;
  color: var(--c2);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.pkp_structure_sidebar .content,
.pkp_structure_sidebar .content p,
.pkp_structure_sidebar .content a,
.pkp_block .content,
.pkp_block .content p,
.pkp_block .content a {
  text-align: center;
}

/* =========================================================
   8. INDEXING IMAGES = CLEAN GALLERY STYLE
   ========================================================= */
.pkp_block img,
.pkp_block .content img,
.pkp_structure_sidebar img,
.block_custom img,
.block_web_feed img {
  display: block !important;
  max-width: 170px !important;
  width: auto !important;
  height: auto !important;
  margin: 12px auto !important;
  padding: 8px;
  background: #fff;
  border: 1px solid #e3edf2;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: 0.25s ease;
}

.pkp_block img:hover,
.pkp_structure_sidebar img:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 14px 24px rgba(29,112,162,0.16);
}

/* =========================================================
   9. FORMS = MINIMAL MODERN STYLE
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d6e5ed;
  border-radius: 12px;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--c3);
  box-shadow: 0 0 0 4px rgba(40,165,196,0.12);
}

/* =========================================================
   10. TABLES = CONTRAST HEADER STYLE
   ========================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}
table th,
table td {
  padding: 12px;
  border: 1px solid #d7e6ee;
}
table th {
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
}

/* =========================================================
   11. POPUP = PREMIUM MODAL STYLE
   ========================================================= */
.ojs-popup {
  position: fixed;
  inset: 0;
  background: rgba(8, 24, 39, 0.78);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.35s ease;
  z-index: 99999;
}

.ojs-popup:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ojs-popup-box {
  width: min(92%, 580px);
  margin: 8% auto;
  background: linear-gradient(180deg, #ffffff, #f8fcfe);
  border-radius: 20px;
  padding: 28px 22px;
  border-top: 7px solid var(--c4);
  box-shadow: 0 25px 60px rgba(0,0,0,0.28);
  position: relative;
  animation: popupFade 0.35s ease;
}

.ojs-popup-box h3 {
  color: var(--c1);
  margin-top: 0;
}

.ojs-popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  color: var(--c5) !important;
  font-weight: 700;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   12. FOOTER = SEPARATE TWO-TONE STYLE
   ========================================================= */
.pkp_structure_footer_wrapper {
  background: linear-gradient(90deg, var(--c6) 0%, var(--c2) 50%, var(--c4) 100%);
  color: #fff;
  padding: 24px 18px;
  margin-top: 30px;
  border-top: 5px solid #fff;
}

.pkp_structure_footer_wrapper p,
.pkp_structure_footer_wrapper div,
.pkp_structure_footer_wrapper span,
.pkp_structure_footer_wrapper a {
  color: #fff !important;
}

/* Hide OJS/PKP branding */
.pkp_brand_footer,
.pkp_footer_content .pkp_brand_footer,
.pkp_footer_content .pkp_brand_footer a,
.pkp_footer_content .pkp_brand_footer img,
.pkp_footer_content .brand,
.pkp_footer_content .pkp_footer_branding,
.pkp_structure_footer_wrapper .pkp_brand_footer,
.pkp_structure_footer_wrapper .pkp_footer_branding,
.pkp_structure_footer_wrapper .brand,
.pkp_structure_footer_wrapper a[href*="pkp.sfu.ca"],
.pkp_structure_footer_wrapper a[href*="ojs"] {
  display: none !important;
}

/* =========================================================
   13. SMALL DETAILS
   ========================================================= */
.meta,
.published,
.authors,
.pages,
.date,
.subtitle,
.description,
.summary {
  color: var(--muted);
  font-size: 14px;
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cfdde5, transparent);
  margin: 20px 0;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #dbeef4;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--c2), var(--c3));
  border-radius: 20px;
}

/* =========================================================
   14. RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  .pkp_site_name a,
  .pkp_site_name .is_text {
    font-size: 21px;
  }

  .pkp_block img,
  .pkp_structure_sidebar img {
    max-width: 145px !important;
  }
}

@media (max-width: 768px) {
  .pkp_navigation_primary > li > a,
  .pkp_navigation_user > li > a {
    font-size: 14px;
    padding: 9px 12px;
  }

  .pkp_structure_main,
  .page_index_journal,
  .page_about,
  .obj_issue_toc,
  .obj_article_details {
    padding: 14px;
  }

  .pkp_block img,
  .pkp_structure_sidebar img {
    max-width: 125px !important;
  }

  .ojs-popup-box {
    margin: 18% auto;
    padding: 22px 18px;
  }
}