/* ============================================================
   OPEN MEDICAL REPORTS — Custom Stylesheet
   Built for OJS Default Theme
   ============================================================ */


/* ============================================================
   SECTION 1: GLOBAL
   ============================================================ */
body {
    font-family: 'Georgia', serif;
    background: #f9f9f8;
    color: #1a1a2e;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', sans-serif;
}
a { color: #2563eb; }
a:hover { color: #1d4ed8; }


/* ============================================================
   SECTION 2: HEADER / HERO
   Covers the full header including nav — one unified dark block
   ============================================================ */

/* The OUTER header element — full dark gradient, no overflow:hidden (kills dropdowns) */
.pkp_structure_head {
    background: linear-gradient(135deg, #0f0a28 0%, #1a1240 50%, #1c1650 100%) !important;
    position: relative !important;
    overflow: visible !important;
    padding: 8px 40px 0 40px !important;
    z-index: 100 !important;
    border: none !important;
}

/* Kill Default Theme teal/blue on nav wrappers */
#pkp_nav_tab_wrapper,
.pkp_navigation_primary_row {
    background: #1a1240 !important;
    border-bottom: none !important;
}

/* Inner head wrapper */
.pkp_head_wrapper {
    position: relative !important;
    z-index: 2 !important;
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
}

/* Label above journal name */
.pkp_structure_head::before {
    content: 'PEER-REVIEWED  ·  OPEN ACCESS  ·  MEDICAL SCIENCE';
    display: block;
    font-family: 'Arial', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 2px;
    color: rgba(140, 170, 220, 0.85);
    margin-bottom: 4px;
    white-space: nowrap;
}

/* Journal name */
.pkp_site_name {
    font-family: 'Georgia', serif !important;
    font-size: 3.4rem !important;
    font-weight: 900 !important;
    font-style: italic !important;
    line-height: 1.1 !important;
    margin: 0 !important;
}
.pkp_site_name a,
.pkp_site_name a:visited {
    color: #ffffff !important;
    text-decoration: none !important;
    font-style: italic !important;
}
.pkp_site_name a:hover { color: #93c5fd !important; }

/* Tagline */
.pkp_site_description {
    font-family: 'Arial', sans-serif !important;
    font-size: 0.88rem !important;
    color: rgba(180, 205, 245, 0.85) !important;
    margin-top: 8px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .pkp_structure_head {
        padding: 20px 20px 16px !important;
    }
    .pkp_site_name {
        font-size: 1.5rem !important;
    }
    .pkp_site_description { display: none !important; }
}


/* ============================================================
   SECTION 3: PRIMARY NAVIGATION — dark, part of header
   ============================================================ */

.pkp_navigation_primary {
    background: #1a1240 !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    border-bottom: 3px solid #2563eb !important;
    padding: 0 40px !important;
    position: relative !important;
    z-index: 200 !important;
    overflow: visible !important;
}

/* Nav list items */
.pkp_navigation_primary li {
    position: relative !important;
}

.pkp_navigation_primary li a {
    font-family: 'Arial', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: rgba(200, 220, 255, 0.85) !important;
    padding: 11px 16px !important;
    text-decoration: none !important;
    display: block !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.15s !important;
}

.pkp_navigation_primary li a:hover,
.pkp_navigation_primary li.current a {
    color: #ffffff !important;
    border-bottom-color: #60a5fa !important;
}

/* Search link */
.pkp_navigation_search a {
    color: rgba(200, 220, 255, 0.75) !important;
}
.pkp_navigation_search a:hover {
    color: #ffffff !important;
}


/* ============================================================
   SECTION 4: SIDEBAR
   Default Theme: .pkp_structure_sidebar, .pkp_block
   ============================================================ */

.pkp_structure_sidebar {
    padding-left: 24px !important;
}

/* Sidebar block wrapper */
.pkp_block {
    border-radius: 6px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}

/* Block title bar */
.pkp_block .title {
    background: #1e3a5f !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
    font-family: 'Arial', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 !important;
    border-bottom: 2px solid #2563eb !important;
    display: block !important;
}

/* Block content */
.pkp_block .content {
    padding: 12px 14px !important;
    font-size: 0.88rem !important;
    line-height: 1.9 !important;
}

/* Sidebar links */
.pkp_block .content a {
    color: #2563eb !important;
    text-decoration: none !important;
    display: block !important;
}
.pkp_block .content a:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

/* Make a Submission button in sidebar — override the generic a[href*=submit] rule */
.pkp_block_make_submission a,
.pkp_block_make_submission .cta_button {
    background: #2563eb !important;
    color: #ffffff !important;
    padding: 11px 16px !important;
    border-radius: 5px !important;
    font-family: 'Arial', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    text-align: center !important;
    display: block !important;
    text-decoration: none !important;
    width: auto !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    transition: background 0.15s !important;
}
.pkp_block_make_submission a:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}


/* ============================================================
   SECTION 5: MAIN CONTENT AREA
   ============================================================ */

/* Article listing */
.obj_article_summary {
    border-left: 3px solid #2563eb;
    padding-left: 15px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f4f8;
}
.obj_article_summary .title a {
    color: #1e3a5f !important;
    font-weight: bold;
    font-size: 1rem;
}
.obj_article_summary .title a:hover { color: #2563eb !important; }

.obj_article_summary .authors {
    color: #64748b;
    font-size: 0.88rem;
    margin-top: 4px;
}

/* Issue TOC */
.obj_issue_toc .section > h2 {
    border-bottom: 2px solid #2563eb;
    padding-bottom: 8px;
    color: #1e3a5f;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Submission checklist */
.submissionChecklist li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
}

/* Breadcrumb */
.pkp_breadcrumbs a {
    color: #2563eb !important;
}


/* ============================================================
   SECTION 6: SUBMISSION BUTTON (sitewide — not sidebar)
   ============================================================ */
.pkp_structure_main a[href*="submit"],
.pkp_structure_main a[href*="submission"],
.pkp_page_submissions a,
.cta_button {
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 22px !important;
    border-radius: 5px !important;
    font-family: 'Arial', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    width: auto !important;
}
.pkp_structure_main a[href*="submit"]:hover,
.pkp_structure_main a[href*="submission"]:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

/* Global form buttons */
.pkp_button,
input[type="submit"],
button[type="submit"] {
    background: #2563eb !important;
    border-color: #2563eb !important;
    border-radius: 6px !important;
    color: #ffffff !important;
}
.pkp_button:hover, input[type="submit"]:hover {
    background: #1d4ed8 !important;
}


/* ============================================================
   SECTION 7: FOOTER
   ============================================================ */

.pkp_structure_footer {
    background: #1B2B4B !important;
    color: #cbd5e1 !important;
    padding: 32px 0 !important;
}
.pkp_structure_footer a { color: #93c5fd !important; }
.pkp_structure_footer a:hover { color: #ffffff !important; }

/* Hide OJS/PKP credit bar */
.pkp_footer_powered_by,
.pkp_brand_footer,
[class*="powered_by"] {
    display: none !important;
}
