/*
 * CUSTOM CSS FOR OJS MODERN THEME
 * Target URL: https://ejournal.poltekmi.ac.id/index.php/MCSJ
 * Author: AI Assistant
 * Version: 1.0
 */

/* ============================================================
   1. IMPORT FONT & CSS VARIABLES
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Merriweather:wght@400;700&display=swap');

:root {
    --primary-color: #005a9c; /* Biru profesional yang lebih gelap */
    --secondary-color: #f4f4f4; /* Abu-abu terang untuk background */
    --accent-color: #e67e22;   /* Oranye untuk aksi/tombol */
    --text-color: #333;        /* Teks utama yang lebih gelap untuk kontras */
    --heading-font: 'Merriweather', serif;
    --body-font: 'Lato', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   2. GLOBAL STYLES & TYPOGRAPHY
   ============================================================ */
body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ============================================================
   3. HEADER & NAVIGATION
   ============================================================ */
.pkp_structure_head {
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
}

.pkp_site_name_wrapper {
    padding: 2rem 0;
}

.pkp_site_name .pkp_site_name_title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
}

.pkp_site_name .pkp_site_name_subtitle {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Navigasi Utama */
.pkp_navigation_primary {
    background-color: var(--primary-color);
    border-radius: 0;
}

.pkp_navigation_primary_wrapper {
    padding: 0;
}

.pkp_navigation_primary ul {
    display: flex;
    justify-content: center;
}

.pkp_navigation_primary li a {
    color: #fff;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.pkp_navigation_primary li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   4. HOMEPAGE COMPONENTS
   ============================================================ */

/* Blok Pengumuman & Current Issue */
.cmp_announcements,
.cmp_current_issue {
    background-color: var(--secondary-color);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.cmp_announcements h2,
.cmp_current_issue h2 {
    margin-top: 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Daftar Artikel di Current Issue */
.obj_issue_toc .obj_article_summary {
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 0;
}

.obj_issue_toc .obj_article_summary:last-child {
    border-bottom: none;
}

.obj_issue_toc .article_title {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    line-height: 1.4;
}

.obj_issue_toc .article_title a {
    color: var(--primary-color);
}

.obj_issue_toc .article_title a:hover {
    color: var(--accent-color);
}

.obj_issue_toc .authors {
    font-style: italic;
    color: #555;
    margin-bottom: 0.5rem;
}

/* ============================================================
   5. SIDEBAR
   ============================================================ */
.pkp_structure_sidebar {
    padding-left: 2rem;
}

.pkp_block {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.pkp_block h2 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.pkp_block ul {
    padding-left: 0;
    list-style-type: none;
}

.pkp_block li {
    margin-bottom: 0.5rem;
}

/* ============================================================
   6. BUTTONS & FORMS
   ============================================================ */
.c-button {
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.c-button:hover {
    background-color: #d35400;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Tombol Download PDF yang lebih menonjol */
.obj_article_summary .c-button {
    font-size: 0.9rem;
}

/* ============================================================
   7. ARTICLE PAGE
   ============================================================ */
.article_main_entry .page_header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.article_main_entry h1 {
    font-size: 2.2rem;
    margin-top: 0;
}

.article_main_entry .authors {
    font-size: 1.1rem;
    color: #555;
}

.article_main_entry .abstract {
    background-color: var(--secondary-color);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.article_main_entry .keywords {
    font-style: italic;
    color: #666;
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.pkp_structure_footer_wrapper {
    background-color: var(--primary-color);
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

.pkp_structure_footer_wrapper a {
    color: #fff;
}

.pkp_structure_footer_wrapper a:hover {
    color: var(--accent-color);
}