/* Jurnal Ilmu Informasi Perpustakaan dan kearsipan - Universitas Negeri Padang */
/* Developed by Imam Ikhdanu Yusra */
/* Inspired by Teknomekanik UNP - Rahmat Azis Nabawi (c)2018 */

/* ===== ROOT VARIABLES & RESET ===== */
:root {
    --primary-color: #36b38a;
    --primary-dark: #2a8e6d;
    --primary-light: #e8f8f2;
    --secondary-color: #2c3e50;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --text-color: #333;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fefefe;
}

/* ===== HEADER & NAVIGATION ===== */
.has_site_logo .pkp_head_wrapper {
    padding-top: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fdfb 100%);
    border-bottom: 1px solid var(--medium-gray);
}

.pkp_site_name_wrapper {
    background-color: transparent;
    padding: 0;
    display: block;
    min-height: auto;
}

.pkp_site_name .is_img img {
    max-height: none !important;
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    object-fit: cover;
}

.pkp_navigation_primary_row {
    background-color: white;
    border-top: 3px solid var(--primary-color);
    border-bottom: 1px solid var(--medium-gray);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.pkp_navigation_primary>li>a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 15px;
    padding: 1rem 1.5rem;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.pkp_navigation_primary>li>a:hover,
.pkp_navigation_primary>li>a:focus {
    color: var(--primary-color);
    background-color: var(--primary-light);
    border-bottom-color: var(--primary-color);
}

.pkp_search_desktop .search_prompt {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.pkp_search_desktop .search_prompt:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

/* ===== MAIN CONTENT AREA & LAYOUT ===== */
.pkp_structure_content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
    padding-top: 2rem;
}

.pkp_structure_main {
    flex: 1;
    min-width: 0;
    padding: 0;
    background-color: transparent;
}

.pkp_structure_sidebar {
    width: 25%;
    min-width: 280px;
    flex-shrink: 0;
    padding: 0;
}

/* responsive layout */
@media (max-width: 991px) {
    .pkp_structure_sidebar {
        width: 100%;
        margin-top: 2rem;
    }
}

.pkp_structure_main:before,
.pkp_structure_main:after {
    display: none;
}

/* ===== SIDEBAR & MENU ===== */
.pkp_block {
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.pkp_block .title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.pkp_block .content p {
    line-height: 1.6;
    margin-bottom: 0.8rem;
    text-align: left;
    color: var(--dark-gray);
}

.pkp_block .content ul {
    list-style: none;
    padding: 0;
}

.pkp_block .content ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--medium-gray);
}

.pkp_block .content ul li:last-child {
    border-bottom: none;
}

/* Drop-down Menu */
.sidemenu {
    width: 100%;
    margin: 0;
    padding: 0;
}

.sidemenu li {
    list-style: none;
    margin-bottom: 0.3rem;
}

.sidemenu>li>a {
    display: block;
    padding: 0.8rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(54, 179, 138, 0.1);
    transition: var(--transition);
    position: relative;
}

.sidemenu>li>a:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.sidemenu>li>a:after {
    content: 'â€º';
    position: absolute;
    right: 1rem;
    font-size: 1.2rem;
    transition: var(--transition);
}

.sidemenu>li>a:hover:after {
    transform: translateX(3px);
}

.sidemenu li ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding-left: 0.5rem;
}

.sidemenu>li:hover ul {
    max-height: 500px;
}

.sidemenu li li a {
    display: block;
    padding: 0.6rem 1rem;
    background-color: white;
    color: var(--dark-gray);
    border-left: 2px solid var(--medium-gray);
    margin: 0.2rem 0;
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidemenu li li a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 1.3rem;
}

/* ===== BUTTONS ===== */
.cmp_button,
.cmp_form .buttons button,
.pkp_head_wrapper .pkp_search button,
.page_lost_password .buttons button,
.page_search .submit button,
.obj_article_details .citation_display form input[type="submit"],
.block_make_submission a {
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: inline-block;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    width: auto;
    min-width: 180px;
}

.cmp_button:hover,
.cmp_form .buttons button:hover,
.pkp_head_wrapper .pkp_search button:hover,
.block_make_submission a:hover {
    background: linear-gradient(to bottom, var(--primary-dark), #227456);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== CURRENT ISSUE ===== */
.page_index_journal>.current_issue>h2,
.current_issue>.current_issue_title>h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--primary-light);
    position: relative;
}

.page_index_journal>.current_issue>h2:after,
.current_issue>.current_issue_title>h2:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

/* ===== ARTICLE CARDS ===== */
.obj_article_summary {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.8rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.obj_article_summary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
}

.obj_article_summary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-dark);
}

.obj_article_summary:hover:before {
    width: 8px;
    background: var(--primary-dark);
}

.obj_article_summary .title {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.obj_article_summary .meta {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.obj_article_summary .authors {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== ARTICLE DETAIL PAGE ===== */
.pkp_structure_main h1 {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
}

.obj_article_details .authors {
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.obj_article_details .affiliation,
.obj_article_details .keywords,
.obj_article_details .abstract,
.obj_article_details .references {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.obj_article_details .abstract h2,
.obj_article_details .references h2 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

/* ===== SECTIONS ===== */
.obj_issue_toc .section>h3 {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color);
    padding: 1rem 0;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.obj_issue_toc .section>h3:before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-dark);
}

/* ===== FOOTER ===== */
.pkp_structure_footer_wrapper {
    background-color: var(--light-gray);
    /* Latar belakang diubah jadi abu-abu muda terang */
    color: var(--text-color);
    /* Warna tulisan diubah menjadi gelap mengikuti tema default */
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    border-top: 5px solid var(--primary-color);
}

.pkp_structure_footer {
    display: flex;
    justify-content: center;
    /* Diubah menjadi center agar konten indeksasi di tengah */
    flex-wrap: wrap;
    gap: 2rem;
}

/* MENYEMBUNYIKAN TULISAN PLATFORM & WORKFLOW OJS */
.pkp_brand_footer {
    display: none !important;
}

/* ===== TOOLTIPS ===== */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted var(--primary-color);
    cursor: help;
    color: var(--primary-color);
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 300px;
    background-color: white;
    color: var(--text-color);
    text-align: left;
    border-radius: var(--radius-sm);
    padding: 1rem;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--medium-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip .tooltiptext:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

/* ===== UTILITY CLASSES ===== */
.userGroup {
    display: none !important;
}

.read_more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.read_more:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .pkp_navigation_primary>li>a {
        padding: 0.8rem 1rem;
        font-size: 14px;
    }

    .pkp_site_name .is_img img {
        max-height: 100px !important;
    }

    .obj_article_summary {
        padding: 1.2rem;
    }

    .tooltip .tooltiptext {
        width: 250px;
        margin-left: -125px;
    }

    .pkp_structure_footer {
        flex-direction: column;
        align-items: center;
        /* Menyesuaikan flex direction untuk mobile */
    }
}

@media (max-width: 480px) {
    .pkp_block {
        padding: 1rem;
    }

    .pkp_site_name_wrapper {
        min-height: 140px;
    }

    .pkp_site_name .is_img img {
        max-height: 80px !important;
    }

    .obj_article_details .affiliation,
    .obj_article_details .keywords,
    .obj_article_details .abstract,
    .obj_article_details .references {
        padding: 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.obj_article_summary,
.pkp_block,
.obj_issue_toc .section {
    animation: fadeIn 0.5s ease-out;
}

/* ===== FOOTER INDEX LOGOS (CUSTOM) ===== */
.footer-index-section {
    text-align: center;
    padding: 20px 0 40px 0;
    width: 100%;
}

.footer-index-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 45px;
    position: relative;
    display: inline-block;
}

/* Garis bawah di judul "Indexed By" */
.footer-index-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-index-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.footer-index-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
}

/* Ukuran dasar dan animasi */
.footer-index-logos img {
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease-in-out;
}

/* === PENYESUAIAN VISUAL PER LOGO === */
.footer-index-logos img[alt="Google Scholar"] {
    height: 115px;
}

.footer-index-logos img[alt="Sinta"] {
    height: 90px;
}

.footer-index-logos img[alt="Garuda"] {
    height: 75px;
}

.footer-index-logos img[alt="BASE"] {
    height: 65px;
}

.footer-index-logos img[alt="Neliti"] {
    height: 60px;
}

.footer-index-logos img[alt="Dimensions"] {
    height: 55px;
}

/* Animasi melayang dan efek bayangan saat di-hover kursor */
.footer-index-logos a:hover img {
    transform: translateY(-6px) scale(1.05);
    filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.15));
}

/* Responsive tampilan HP */
@media (max-width: 768px) {
    .footer-index-logos {
        gap: 30px;
    }

    .footer-index-logos img[alt="Google Scholar"] {
        height: 90px;
    }

    .footer-index-logos img[alt="Sinta"] {
        height: 65px;
    }

    .footer-index-logos img[alt="Garuda"] {
        height: 60px;
    }

    .footer-index-logos img[alt="BASE"] {
        height: 50px;
    }

    .footer-index-logos img[alt="Neliti"] {
        height: 45px;
    }

    .footer-index-logos img[alt="Dimensions"] {
        height: 45px;
    }
}

/* ===== CUSTOM FOOTER LAYOUT (PUBLISHER & INDEX) ===== */
.custom-footer-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Kolom Kiri */
.footer-info-section {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.footer-info-section .footer-text,
.footer-info-section .footer-contact {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-info-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-info-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Kolom Kanan */
.footer-index-section {
    flex: 1.2;
    /* Diberi rasio lebih besar sedikit agar logo lega */
    min-width: 300px;
    text-align: center;
}

/* Judul Footer Global */
.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* Garis Bawah Judul Kiri */
.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Garis Bawah Judul Kanan (Tengah) */
.center-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
}

/* Penataan Logo */
.footer-index-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px 40px;
    /* Gap vertical & horizontal */
}

.footer-index-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
}

/* Ukuran Dasar Logo & Animasi */
.footer-index-logos img {
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease-in-out;
}

.footer-index-logos img[alt="Google Scholar"] {
    height: 85px;
}

.footer-index-logos img[alt="Sinta"] {
    height: 70px;
}

.footer-index-logos img[alt="Garuda"] {
    height: 60px;
}

.footer-index-logos img[alt="BASE"] {
    height: 50px;
}

.footer-index-logos img[alt="Neliti"] {
    height: 45px;
}

.footer-index-logos img[alt="Dimensions"] {
    height: 40px;
}

.footer-index-logos a:hover img {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0px 6px 10px rgba(0, 0, 0, 0.12));
}

/* Responsive Tampilan HP */
@media (max-width: 768px) {
    .custom-footer-layout {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-info-section {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-index-logos {
        gap: 20px;
    }

    .footer-index-logos img[alt="Google Scholar"] {
        height: 75px;
    }

    .footer-index-logos img[alt="Sinta"] {
        height: 60px;
    }

    .footer-index-logos img[alt="Garuda"] {
        height: 50px;
    }

    .footer-index-logos img[alt="BASE"] {
        height: 45px;
    }

    .footer-index-logos img[alt="Neliti"] {
        height: 40px;
    }

    .footer-index-logos img[alt="Dimensions"] {
        height: 35px;
    }
}