/* ============================================================
   AJOTRE - African Journal of Theology and Religion
   Custom Theme CSS for OJS 3.3.x
   
   HOW TO INSTALL:
   1. Upload this file to your server at:
      /home/ajotre/htdocs/ajotre.org/public/journals/1/ajotre-custom.css
   2. Go to OJS Admin → Website → Appearance → Custom CSS
      and paste this path, OR paste the entire CSS content there.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=Raleway:wght@400;500;600;700&display=swap');

/* ── Color Palette ────────────────────────────────────────── */
:root {
  --deep-navy:       #0D1B2A;
  --rich-burgundy:   #7B2035;
  --warm-gold:       #C8973A;
  --gold-light:      #E8B96A;
  --ivory:           #F7F3ED;
  --ivory-dark:      #EDE8DF;
  --text-primary:    #1A1A2E;
  --text-secondary:  #4A4A6A;
  --text-muted:      #7A7A9A;
  --white:           #FFFFFF;
  --border:          #D8D0C4;
  --shadow-sm:       0 2px 8px rgba(13,27,42,0.08);
  --shadow-md:       0 6px 24px rgba(13,27,42,0.12);
  --shadow-lg:       0 16px 48px rgba(13,27,42,0.18);
  --radius:          6px;
  --radius-lg:       12px;
}

/* ── Base & Typography ────────────────────────────────────── */
body {
  font-family: 'Source Serif 4', Georgia, serif;
  background-color: var(--ivory);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--deep-navy);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: var(--rich-burgundy);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--warm-gold);
  text-decoration: underline;
}

/* ── Header / Navbar ──────────────────────────────────────── */
.pkp_structure_head {
  background: linear-gradient(135deg, var(--deep-navy) 0%, #1a2f47 100%);
  border-bottom: 3px solid var(--warm-gold);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Site name / journal title in header */
.pkp_structure_head .pkp_site_name,
.pkp_structure_head .pkp_site_name a {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white) !important;
  letter-spacing: 0.02em;
  text-decoration: none;
}

/* Navigation menu */
.pkp_navigation_primary_row {
  background: transparent;
}
.pkp_navigation_primary .pkp_nav_list > li > a,
.pkp_navigation_primary .pkp_nav_list > li > button {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85) !important;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.pkp_navigation_primary .pkp_nav_list > li > a:hover,
.pkp_navigation_primary .pkp_nav_list > li > button:hover {
  color: var(--warm-gold) !important;
  background: rgba(200,151,58,0.1);
  text-decoration: none;
}

/* Dropdown menus */
.pkp_nav_list .pkp_nav_has_submenu ul {
  background: var(--deep-navy);
  border: 1px solid var(--warm-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
}
.pkp_nav_list .pkp_nav_has_submenu ul a {
  color: rgba(255,255,255,0.85) !important;
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  padding: 0.5rem 1.2rem;
}
.pkp_nav_list .pkp_nav_has_submenu ul a:hover {
  color: var(--warm-gold) !important;
  background: rgba(200,151,58,0.1);
}

/* User nav (Login/Register) */
.pkp_navigation_user .pkp_nav_list > li > a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7) !important;
}
.pkp_navigation_user .pkp_nav_list > li > a:hover {
  color: var(--gold-light) !important;
}

/* ── Hero / Journal Header Banner ────────────────────────── */
.pkp_structure_content .cmp_site_header,
.pkp_page_index .site_header_wrapper,
.site_header_wrapper {
  background: linear-gradient(160deg, var(--deep-navy) 0%, var(--rich-burgundy) 60%, #2c0a14 100%);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.site_header_wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8973A' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}
.site_header_wrapper .description,
.site_header_wrapper h1,
.site_header_wrapper .page-header {
  position: relative;
  z-index: 1;
  color: var(--white);
}

/* Journal title in hero */
.pkp_page_index h1,
.journal_header h1,
.site_header_wrapper h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
}

/* ── Main Content Area ────────────────────────────────────── */
.pkp_structure_content {
  background: var(--ivory);
}

.pkp_structure_main {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  margin: 2rem auto;
}

/* Page titles */
.page-header h1,
.pkp_page_submissions h1,
.pkp_page_issue h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--deep-navy);
  border-bottom: 3px solid var(--warm-gold);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

/* ── Article / Submission Cards ──────────────────────────── */
.obj_article_summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--rich-burgundy);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}
.obj_article_summary:hover {
  border-left-color: var(--warm-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.obj_article_summary .title a {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1.4;
}
.obj_article_summary .title a:hover {
  color: var(--rich-burgundy);
  text-decoration: none;
}

.obj_article_summary .authors {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rich-burgundy);
  margin: 0.4rem 0;
  letter-spacing: 0.03em;
}

.obj_article_summary .abstract {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 0.75rem;
}

/* Article DOI / metadata */
.obj_article_summary .doi,
.obj_article_summary .pages {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ── Issue Cover & Toc ────────────────────────────────────── */
.obj_issue_summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.obj_issue_summary:hover {
  box-shadow: var(--shadow-md);
}

.obj_issue_summary .cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.obj_issue_summary .title a {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep-navy);
}

.obj_issue_toc .section {
  margin-bottom: 2.5rem;
}

.obj_issue_toc .section_title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(90deg, var(--rich-burgundy), #a02b45);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

/* ── Buttons ──────────────────────────────────────────────── */
.pkp_button,
.btn,
button[class*="btn"],
input[type="submit"],
a.pkp_button {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: var(--radius) !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

/* Primary button */
.pkp_button_primary,
.btn-primary,
input[type="submit"] {
  background: linear-gradient(135deg, var(--rich-burgundy), #a02b45) !important;
  color: var(--white) !important;
  box-shadow: 0 3px 12px rgba(123,32,53,0.35) !important;
}
.pkp_button_primary:hover,
.btn-primary:hover,
input[type="submit"]:hover {
  background: linear-gradient(135deg, #a02b45, var(--rich-burgundy)) !important;
  box-shadow: 0 6px 20px rgba(123,32,53,0.45) !important;
  transform: translateY(-1px) !important;
  color: var(--white) !important;
  text-decoration: none !important;
}

/* Secondary/default button */
.pkp_button:not(.pkp_button_primary),
.btn-default {
  background: transparent !important;
  color: var(--rich-burgundy) !important;
  border: 2px solid var(--rich-burgundy) !important;
}
.pkp_button:not(.pkp_button_primary):hover {
  background: var(--rich-burgundy) !important;
  color: var(--white) !important;
}

/* PDF / Galley download buttons */
.obj_galley_link,
.pkp_galley_link {
  font-family: 'Raleway', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 0.4rem 1rem !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  margin: 0.2rem !important;
  transition: all 0.2s ease !important;
  background: var(--warm-gold) !important;
  color: var(--deep-navy) !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(200,151,58,0.3) !important;
}
.obj_galley_link:hover,
.pkp_galley_link:hover {
  background: var(--gold-light) !important;
  box-shadow: 0 4px 14px rgba(200,151,58,0.45) !important;
  transform: translateY(-1px) !important;
  text-decoration: none !important;
  color: var(--deep-navy) !important;
}

/* ── Sidebar / Blocks ─────────────────────────────────────── */
.pkp_structure_sidebar .pkp_block {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--warm-gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.pkp_block .title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--deep-navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.pkp_block ul li {
  font-size: 0.88rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--ivory-dark);
  color: var(--text-secondary);
}
.pkp_block ul li:last-child { border-bottom: none; }
.pkp_block ul li a {
  color: var(--rich-burgundy);
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
}
.pkp_block ul li a:hover { color: var(--warm-gold); }

/* ── Search Form ──────────────────────────────────────────── */
.search_block_plugin input[type="text"],
.pkp_block_search input[type="search"] {
  border: 1.5px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0.5rem 0.8rem;
  font-family: 'Source Serif 4', serif;
  font-size: 0.9rem;
  background: var(--ivory);
  color: var(--text-primary);
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
.search_block_plugin input[type="text"]:focus {
  border-color: var(--rich-burgundy);
}

/* ── Breadcrumbs ──────────────────────────────────────────── */
.pkp_navigation_breadcrumbs {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.pkp_navigation_breadcrumbs a {
  color: var(--rich-burgundy);
}
.pkp_navigation_breadcrumbs a:hover { color: var(--warm-gold); }

/* ── Article Detail Page ──────────────────────────────────── */
.obj_article_details .page_title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--deep-navy);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.obj_article_details .authors {
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rich-burgundy);
  margin-bottom: 1.5rem;
}

.obj_article_details .abstract {
  background: var(--ivory);
  border-left: 4px solid var(--warm-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.8;
}

.obj_article_details .abstract h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gold);
  margin-bottom: 0.75rem;
}

/* Keywords */
.obj_article_details .keywords {
  margin: 1.5rem 0;
}
.obj_article_details .keywords .label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-right: 0.5rem;
}
.obj_article_details .keywords .value {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.obj_article_details .keywords .value a {
  background: var(--ivory-dark);
  color: var(--rich-burgundy);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
}
.obj_article_details .keywords .value a:hover {
  background: var(--rich-burgundy);
  color: var(--white);
  border-color: var(--rich-burgundy);
  text-decoration: none;
}

/* ── Forms ────────────────────────────────────────────────── */
.pkp_form input[type="text"],
.pkp_form input[type="email"],
.pkp_form input[type="password"],
.pkp_form textarea,
.pkp_form select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  background: var(--ivory);
  color: var(--text-primary);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pkp_form input:focus,
.pkp_form textarea:focus,
.pkp_form select:focus {
  outline: none;
  border-color: var(--rich-burgundy);
  box-shadow: 0 0 0 3px rgba(123,32,53,0.1);
}

.pkp_form label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  display: block;
}

/* ── Footer ───────────────────────────────────────────────── */
.pkp_structure_footer {
  background: linear-gradient(135deg, var(--deep-navy) 0%, #1a2f47 100%);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 2rem 1.5rem;
  margin-top: 3rem;
  border-top: 3px solid var(--warm-gold);
}

.pkp_structure_footer a {
  color: var(--gold-light);
}
.pkp_structure_footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.pkp_footer_content {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  text-align: center;
  color: rgba(255,255,255,0.6);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── Announcements ────────────────────────────────────────── */
.obj_announcement_summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--rich-burgundy);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.obj_announcement_summary .title a {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--deep-navy);
}
.obj_announcement_summary .date {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--warm-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* ── Notifications / Alerts ───────────────────────────────── */
.pkp_notification {
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.pkp_notification.notifySuccess {
  background: #f0faf4;
  border-left: 4px solid #2ecc71;
  color: #1a5e38;
}
.pkp_notification.notifyError {
  background: #fdf0f0;
  border-left: 4px solid var(--rich-burgundy);
  color: var(--rich-burgundy);
}
.pkp_notification.notifyWarning {
  background: #fffbf0;
  border-left: 4px solid var(--warm-gold);
  color: #7a5200;
}

/* ── Tables ───────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Source Serif 4', serif;
  font-size: 0.92rem;
}
table thead th {
  background: var(--deep-navy);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
}
table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
table tbody tr:hover {
  background: var(--ivory);
}
table tbody td {
  padding: 0.7rem 1rem;
  color: var(--text-secondary);
}

/* ── Pagination ───────────────────────────────────────────── */
.pkp_pages {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 2rem 0;
  font-family: 'Raleway', sans-serif;
}
.pkp_pages a,
.pkp_pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  transition: all 0.2s;
}
.pkp_pages a:hover {
  background: var(--rich-burgundy);
  color: var(--white);
  border-color: var(--rich-burgundy);
  text-decoration: none;
}
.pkp_pages .current {
  background: var(--rich-burgundy);
  color: var(--white);
  border-color: var(--rich-burgundy);
}

/* ── Gold Divider Utility ─────────────────────────────────── */
.pkp_structure_main hr,
hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2rem 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .pkp_structure_main {
    padding: 1.25rem;
    margin: 0.75rem;
    border-radius: var(--radius);
  }
  .obj_article_summary {
    padding: 1.1rem 1.2rem;
  }
  .pkp_structure_head .pkp_site_name {
    font-size: 1.1rem;
  }
  .obj_article_details .abstract {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .pkp_structure_main { margin: 0.5rem; padding: 1rem; }
}
