/**
 * custom-journal.css
 * ==================
 * Upload melalui: OJS 3 → Settings → Website → Advanced → Journal Style Sheet
 *
 * DAFTAR BAGIAN:
 *   1.  Google Fonts & CSS Variables
 *   2.  Latar Belakang Halaman
 *   3.  Kotak Konten Utama
 *   4.  Header & Nama Jurnal
 *   5.  Navigasi Utama
 *   6.  Tipografi & Tautan
 *   7.  Tombol
 *   8.  Issue TOC – Daftar Isi Terbitan
 *   9.  Article Summary (kartu artikel)
 *   10. Halaman Detail Artikel
 *   11. Galley Links (PDF / HTML / EPUB)
 *   12. Sidebar
 *   13. Footer
 *   14. Pagination & Breadcrumb
 *   15. Animasi & Efek Global
 *   16. Responsif (Mobile)
 */

/* ===========================================================================
   1. GOOGLE FONTS & CSS VARIABLES
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* --- Palet Warna --- */
    --c-primary:        #0c2340;
    --c-primary-mid:    #1a3f6f;
    --c-primary-light:  #2a527a;
    --c-accent:         #f59e0b;
    --c-accent-dark:    #d97706;
    --c-accent-glow:    rgba(245, 158, 11, 0.25);

    --c-link:           #1d5fa4;
    --c-link-hover:     #0c2340;

    --c-text:           #1e2a35;
    --c-text-light:     #5f7080;

    --c-bg:             #ffffff;
    --c-bg-shade:       #f0f4f8;
    --c-bg-card:        #ffffff;
    --c-border:         #ccd6e0;
    --c-border-light:   #e4eaf0;

    /* --- Shadow --- */
    --shadow-sm:        0 1px 4px rgba(12, 35, 64, 0.08);
    --shadow-md:        0 4px 14px rgba(12, 35, 64, 0.12);
    --shadow-lg:        0 8px 28px rgba(12, 35, 64, 0.16);

    /* --- Radius --- */
    --r-sm:             4px;
    --r-md:             8px;
    --r-pill:           999px;

    /* --- Transisi --- */
    --t-fast:           0.18s ease;
    --t-base:           0.25s ease;
}

/* ===========================================================================
   2. LATAR BELAKANG HALAMAN
   =========================================================================== */

html, body {
    background-color: #dde6f0;
    background-image:
        radial-gradient(circle, rgba(12, 35, 64, 0.07) 1px, transparent 1px),
        linear-gradient(160deg, #ccd9e8 0%, #dde6f0 50%, #d4e0ec 100%);
    background-size: 24px 24px, cover;
    background-attachment: fixed, fixed;
}

/* ===========================================================================
   3. KOTAK KONTEN UTAMA
   =========================================================================== */

.pkp_structure_page {
    box-shadow:
        0 0 0 1px rgba(12, 35, 64, 0.06),
        0 6px 32px rgba(12, 35, 64, 0.14),
        0 1px 4px rgba(12, 35, 64, 0.08);
}

/* ===========================================================================
   4. HEADER & NAMA JURNAL
   =========================================================================== */

.pkp_site_name_wrapper {
    background-color: var(--c-primary);
    background-image:
        radial-gradient(ellipse at 0% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(42, 82, 122, 0.40) 0%, transparent 55%),
        linear-gradient(135deg, #0c2340 0%, #1a3f6f 60%, #16355c 100%);
    border-bottom: 3px solid var(--c-accent);
    box-shadow: 0 3px 12px rgba(12, 35, 64, 0.30);
}

.pkp_site_name .is_text {
    color: #ffffff;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.30);
}

/* ===========================================================================
   5. NAVIGASI UTAMA
   =========================================================================== */

.pkp_navigation_primary_row {
    background-color: #ffffff;
    border-bottom: 2px solid var(--c-border-light);
    box-shadow: 0 2px 8px rgba(12, 35, 64, 0.07);
}

#navigationPrimary a {
    color: var(--c-text);
    transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}

#navigationPrimary > li > a:hover,
#navigationPrimary > li > a:focus {
    background: var(--c-accent) !important;
    color: var(--c-primary) !important;
    box-shadow: 0 3px 10px var(--c-accent-glow);
}

#navigationPrimary .pkp_nav_list {
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* ===========================================================================
   6. TIPOGRAFI & TAUTAN
   =========================================================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--c-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
    color: var(--c-primary);
    line-height: 1.3;
}

a {
    color: var(--c-link);
    transition: color var(--t-fast);
}

a:hover,
a:focus {
    color: var(--c-link-hover);
    text-decoration: underline;
    text-decoration-color: var(--c-accent);
    text-underline-offset: 3px;
}

/* ===========================================================================
   7. TOMBOL
   =========================================================================== */

.cmp_manuscript_button,
.btn,
.pkp_button {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-mid) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--r-sm);
    padding: 0.55em 1.25em;
    box-shadow: 0 2px 8px rgba(12, 35, 64, 0.22);
    transition: background var(--t-base), transform var(--t-fast), box-shadow var(--t-base);
}

.cmp_manuscript_button:hover,
.cmp_manuscript_button:focus,
.btn:hover,
.btn:focus {
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
    color: var(--c-primary);
    box-shadow: 0 4px 16px var(--c-accent-glow);
    transform: translateY(-2px);
    text-decoration: none;
}

.cmp_manuscript_button:active,
.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* ===========================================================================
   8. ISSUE TOC – DAFTAR ISI TERBITAN
   =========================================================================== */

.obj_issue_toc .section h2 {
    color: var(--c-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 3px solid var(--c-accent);
    padding-bottom: 0.4em;
    margin-bottom: 1.2em;
}

.obj_issue_toc .pages {
    color: var(--c-text-light);
    font-size: 0.80em;
    font-family: 'Inter', sans-serif;
}

.obj_issue_toc .heading .pub_id .type,
.obj_issue_toc .heading .published .label {
    color: var(--c-accent-dark);
}

/* ===========================================================================
   9. ARTICLE SUMMARY – KARTU ARTIKEL DALAM DAFTAR
   =========================================================================== */

.obj_article_summary {
    border-bottom: 1px solid var(--c-border-light);
    padding: 10px;
}

.obj_article_summary:last-child {
    border-bottom: none;
}

.obj_article_summary .title {
    margin: 10px 5px 0 5px;
}

.meta .authors {
    margin: 0 5px 10px 5px;
}

.obj_galley_link{
    margin: 0 5px 10px 5px;
}

.obj_article_summary .title a {
    color: var(--c-primary);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.08rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    transition: color var(--t-fast);
}

.obj_article_summary .title a:hover {
    color: var(--c-link);
    text-decoration: underline;
    text-decoration-color: var(--c-accent);
    text-underline-offset: 3px;
}

.obj_article_summary .authors {
    color: var(--c-text-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    margin-top: 0.3em;
}

/* ===========================================================================
   10. HALAMAN DETAIL ARTIKEL
   =========================================================================== */

.obj_article_details h1.title {
    color: var(--c-primary);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

.obj_article_details .subtitle {
    color: var(--c-text-light);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1em;
}

.obj_article_details .main_entry .label {
    color: var(--c-text-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 3px solid var(--c-accent);
    padding-bottom: 0.3em;
    display: inline-block;
    margin-bottom: 0.75em;
}

/* Daftar penulis — layout grid kartu */
.obj_article_details .item.authors {
    margin-bottom: 1.5rem;
}

.obj_article_details ul.authors {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.obj_article_details ul.authors li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    background: var(--c-bg-shade);
    border: 1px solid var(--c-border-light);
    border-left: 4px solid var(--c-primary-mid);
    border-radius: var(--r-sm);
    padding: 0.55rem 0.9rem;
    min-width: 180px;
    flex: 1 1 auto;
    max-width: 100%;
    /* reset border-bottom dari tema bawaan */
    margin-bottom: 0 !important;
    padding-bottom: 0.55rem !important;
    border-bottom: 1px solid var(--c-border-light) !important;
}

.obj_article_details ul.authors li:last-child {
    border-bottom: 1px solid var(--c-border-light) !important;
}

/* Ikon avatar — menggunakan FontAwesome user icon */
.obj_article_details ul.authors li::before {
    content: '\f007';
    font-family: 'FontAwesome', 'Font Awesome 5 Free', 'Font Awesome 6 Free', serif;
    font-weight: 900;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-mid) 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

.obj_article_details ul.authors .name {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--c-primary);
    line-height: 1.3;
    white-space: nowrap;
}

.obj_article_details ul.authors .affiliation {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--c-text-light);
    line-height: 1.4;
    margin-top: 0.15rem;
}

/* Sembunyikan span affiliation kosong agar tidak buat gap */
.obj_article_details ul.authors .affiliation:empty,
.obj_article_details ul.authors .affiliation span:empty {
    display: none;
}

@media (max-width: 767px) {
    .obj_article_details ul.authors li {
        min-width: unset;
        flex: 1 1 100%;
    }
}

.obj_article_details .doi a {
    color: var(--c-link);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

.obj_article_details .doi a:hover {
    color: var(--c-primary);
}

.obj_article_details .keywords .value span {
    display: inline-block;
    background: var(--c-bg-shade);
    color: var(--c-primary);
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    padding: 3px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    margin: 2px 3px;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
    cursor: default;
}

.obj_article_details .keywords .value span:hover {
    background: var(--c-accent);
    color: var(--c-primary);
    border-color: var(--c-accent-dark);
}

.obj_article_details .abstract {
    font-size: 0.98rem;
    line-height: 1.85;
    text-align: justify;
    color: var(--c-text);
}

/* Pisahkan label "Abstract" dari teks abstrak */
.obj_article_details .item.abstract .label {
    display: block;
    width: 100%;
    border-bottom: 2px solid var(--c-border-light);
    padding-bottom: 0.65em;
    margin-bottom: 1.25em;
}

.obj_article_details .item.abstract .value {
    padding-top: 0.25em;
}

.obj_article_details .author_bios .sub_item {
    background: var(--c-bg-shade);
    border-left: 4px solid var(--c-accent);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

/* ===========================================================================
   11. GALLEY LINKS (PDF / HTML / EPUB)
   =========================================================================== */

/* Base — semua galley button (selector: <a class="obj_galley_link ..."> ) */
a.obj_galley_link,
.galleys_links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-mid) 100%);
    color: #ffffff !important;
    border-radius: var(--r-sm);
    padding: 0.4em 1em;
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(12, 35, 64, 0.20);
    transition: background var(--t-base), transform var(--t-fast), box-shadow var(--t-base);
    vertical-align: middle;
}

a.obj_galley_link:hover,
.galleys_links a:hover {
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
    color: var(--c-primary) !important;
    box-shadow: 0 4px 12px var(--c-accent-glow);
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* PDF — merah dengan ikon file-pdf */
a.obj_galley_link.pdf,
.galleys_links a.pdf {
    background: linear-gradient(135deg, #c0392b 0%, #8e2015 100%);
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Container galley links agar center */
.galleys_links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    background: white !important;
    width: 100%;
}

.galleys_links li {
    display: inline-block;
    margin: 0.25rem;
}

a.obj_galley_link.pdf::before,
.galleys_links a.pdf::before {
    content: '\f1c1';
    font-family: 'FontAwesome', 'Font Awesome 5 Free', 'Font Awesome 6 Free', serif;
    font-weight: 900;
    font-size: 0.9em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.90);
}

a.obj_galley_link.pdf:hover,
.galleys_links a.pdf:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff !important;
    box-shadow: 0 5px 14px rgba(192, 57, 43, 0.42);
    transform: translateY(-2px);
}

/* HTML */
a.obj_galley_link.html,
.galleys_links a.html {
    background: linear-gradient(135deg, #1a6e3c 0%, #145530 100%);
    box-shadow: 0 2px 8px rgba(26, 110, 60, 0.28);
}

a.obj_galley_link.html::before,
.galleys_links a.html::before {
    content: '\f0ac';
    font-family: 'FontAwesome', 'Font Awesome 5 Free', 'Font Awesome 6 Free', serif;
    font-weight: 900;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.85);
}

a.obj_galley_link.html:hover,
.galleys_links a.html:hover {
    background: linear-gradient(135deg, #27ae60 0%, #1a6e3c 100%);
    color: #ffffff !important;
    box-shadow: 0 5px 14px rgba(26, 110, 60, 0.38);
    transform: translateY(-2px);
}

/* ===========================================================================
   12. SIDEBAR
   =========================================================================== */

.pkp_block {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border-light);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: box-shadow var(--t-base);
}

.block_developed_by{
    margin: 10px;
}

.block_information  {
    margin: 10px;
}

.block_language {
    margin: 10px;
}


.pkp_block:hover {
    box-shadow: var(--shadow-md);
}

.pkp_block .title {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-mid) 100%);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.7em 1.1em;
    margin: 0;
    border-bottom: 3px solid var(--c-accent);
}

.pkp_block a {
    color: var(--c-link);
    transition: color var(--t-fast);
}

.pkp_block a:hover {
    color: var(--c-primary);
}

/* ===========================================================================
   13. FOOTER
   =========================================================================== */

.pkp_structure_footer_wrapper {
    background: linear-gradient(180deg, var(--c-bg-shade) 0%, #e2eaf3 100%);
    border-top: 1px solid var(--c-border);
    border-bottom: 5px solid var(--c-primary);
}

.pkp_structure_footer {
    color: var(--c-text-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    line-height: 1.7;
}

.pkp_structure_footer a {
    color: var(--c-link);
    transition: color var(--t-fast);
}

.pkp_structure_footer a:hover {
    color: var(--c-primary);
}

/* ===========================================================================
   14. PAGINATION & BREADCRUMB
   =========================================================================== */

.cmp_pagination {
    font-family: 'Inter', sans-serif;
}

.cmp_pagination a {
    color: var(--c-primary);
    font-weight: 600;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    padding: 0.3em 0.7em;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
    text-decoration: none;
}

.cmp_pagination a:hover {
    background: var(--c-primary);
    color: #ffffff;
    border-color: var(--c-primary);
    text-decoration: none;
}

.cmp_breadcrumbs {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--c-text-light);
}

.cmp_breadcrumbs a {
    color: var(--c-link);
    transition: color var(--t-fast);
}

.cmp_breadcrumbs a:hover {
    color: var(--c-primary);
    text-decoration: none;
}

/* ===========================================================================
   15. ANIMASI & EFEK GLOBAL
   =========================================================================== */

/* Garis aksen bawah judul halaman */
.page_title h1::after,
.cmp_breadcrumbs .current h1::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-dark));
    border-radius: var(--r-pill);
    margin-top: 0.5em;
}

/* Focus outline aksesibel */
*:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Scroll halus */
html {
    scroll-behavior: smooth;
}

/* ===========================================================================
   16. RESPONSIF (Mobile <= 767px)
   =========================================================================== */

@media (max-width: 767px) {

    .pkp_site_name .is_text {
        font-size: 1.05rem;
        letter-spacing: 0.01em;
    }

    .obj_article_details h1.title {
        font-size: 1.4rem;
    }

    .pkp_block .title {
        font-size: 0.70rem;
    }

    a.obj_galley_link,
    .galleys_links a {
        font-size: 0.70rem;
        padding: 0.3em 0.75em;
    }

    .cmp_pagination a {
        padding: 0.25em 0.55em;
        font-size: 0.85rem;
    }
}
