/* =========================================================
   GEOCARTAGIS JOURNAL - PREMIUM ACADEMIC STYLE
   MDPI / SPRINGER / NATURE INSPIRED
   Compatible with OJS 3.3 / 3.4
========================================================= */

/* =========================
   GENERAL
========================= */

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f7fb;
    color: #222;
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: #0056a6;
    transition: all 0.25s ease;
    text-decoration: none;
}

a:hover {
    color: #003366;
    text-decoration: none;
}

/* =========================
   HEADER
========================= */

.pkp_site_name_wrapper {
    background: linear-gradient(135deg, #003366, #00509e);
    padding: 25px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.pkp_site_name .is_text {
    color: white !important;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
}

.pkp_site_name img {
    max-height: 90px;
}

/* =========================
   MENU
========================= */

.pkp_navigation_primary_wrapper {
    background: #002b55;
    border-bottom: 3px solid #0073cf;
}

.pkp_navigation_primary > li > a {
    color: white !important;
    font-weight: 600;
    padding: 14px 18px;
    transition: all 0.25s ease;
}

.pkp_navigation_primary > li > a:hover {
    background: #00509e;
    border-radius: 5px;
}

.pkp_navigation_search_wrapper a {
    color: white !important;
}

/* =========================
   HOMEPAGE ANNOUNCEMENT
========================= */

.cmp_announcements {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

/* =========================
   ARTICLE CARDS
========================= */

.obj_article_summary {
    background: white;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 28px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #00509e;
}

.obj_article_summary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.obj_article_summary .title a {
    font-size: 24px;
    font-weight: 700;
    color: #003366;
    line-height: 1.4;
}

.obj_article_summary .title a:hover {
    color: #00509e;
}

.obj_article_summary .meta {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
}

.obj_article_summary .authors {
    font-weight: 500;
    margin-top: 8px;
}

.obj_article_summary .pages {
    color: #777;
}

/* =========================
   DOI STYLE
========================= */

.pub_id.doi {
    display: inline-block;
    background: #eaf3ff;
    color: #00509e;
    padding: 7px 12px;
    border-radius: 6px;
    margin-top: 10px;
    font-weight: 600;
    border: 1px solid #b8d6ff;
}

.pub_id.doi a {
    color: #00509e !important;
}

.pub_id.doi:hover {
    background: #d7ebff;
}

/* =========================
   SIDEBAR
========================= */

.pkp_structure_sidebar .pkp_block {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.pkp_block .title {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 12px;
    border-bottom: 2px solid #e6eef8;
    padding-bottom: 8px;
}

/* =========================
   BUTTONS
========================= */

.cmp_button,
.obj_galley_link {
    background: #00509e !important;
    border: none !important;
    border-radius: 8px !important;
    color: white !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease;
}

.cmp_button:hover,
.obj_galley_link:hover {
    background: #003d7a !important;
    transform: translateY(-1px);
}

/* =========================
   ARTICLE PAGE
========================= */

.article_details {
    background: white;
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.article_details h1 {
    color: #003366;
    font-size: 34px;
    line-height: 1.4;
    font-weight: 700;
}

.article_details .authors {
    font-size: 17px;
    margin-top: 14px;
}

.article_details .item {
    margin-bottom: 30px;
}

/* ABSTRACT */

.item.abstract {
    background: #f8fbff;
    border-left: 5px solid #00509e;
    padding: 20px;
    border-radius: 10px;
}

/* =========================
   FOOTER
========================= */

.pkp_structure_footer_wrapper {
    background: #002244;
    color: white;
    margin-top: 60px;
    padding: 40px 0;
}

.pkp_footer_content {
    color: #d9e6f5;
}

.pkp_footer_content a {
    color: #8fc4ff;
}

/* =========================
   FORMS
========================= */

input,
select,
textarea {
    border-radius: 8px !important;
    border: 1px solid #c7d5e5 !important;
    padding: 10px !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #00509e !important;
    box-shadow: 0 0 5px rgba(0,80,158,0.25);
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

    .pkp_site_name .is_text {
        font-size: 24px;
        text-align: center;
    }

    .obj_article_summary {
        padding: 18px;
    }

    .obj_article_summary .title a {
        font-size: 20px;
    }

    .article_details {
        padding: 20px;
    }

    .article_details h1 {
        font-size: 26px;
    }

    .pkp_navigation_primary > li > a {
        padding: 10px;
        font-size: 14px;
    }

    .pkp_structure_sidebar {
        margin-top: 30px;
    }
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #edf2f7;
}

::-webkit-scrollbar-thumb {
    background: #00509e;
    border-radius: 10px;
}

/* =========================
   IMAGE STYLE
========================= */

img {
    max-width: 100%;
    border-radius: 8px;
}

/* =========================
   TABLE STYLE
========================= */

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table th {
    background: #00509e;
    color: white;
    padding: 12px;
}

table td {
    border: 1px solid #dce6f2;
    padding: 10px;
}

/* =========================
   ANIMATION
========================= */

.obj_article_summary,
.pkp_block,
.article_details {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================================================
   IEEE CITATION & REFERENCES STYLE
========================================================= */

/* ===== REFERENCES SECTION ===== */

.item.references {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-top: 35px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.item.references h2,
.item.references .label {
    color: #003366;
    font-size: 24px;
    font-weight: 700;
    border-bottom: 2px solid #dce6f2;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ===== IEEE NUMBERED REFERENCES ===== */

.citation_display,
.ref-list,
.references ol {
    counter-reset: ieee-counter;
    list-style: none;
    padding-left: 0;
}

.references li,
.ref-list li {
    counter-increment: ieee-counter;
    margin-bottom: 18px;
    padding-left: 50px;
    position: relative;
    line-height: 1.8;
    font-size: 15px;
    color: #222;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 10px;
}

/* [1] STYLE */

.references li::before,
.ref-list li::before {
    content: "[" counter(ieee-counter) "]";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #00509e;
    background: #eaf3ff;
    border: 1px solid #c7defc;
    border-radius: 6px;
    padding: 3px 8px;
    min-width: 34px;
    text-align: center;
}

/* ===== DOI IN REFERENCES ===== */

.references a[href*="doi.org"] {
    color: #c62828 !important;
    font-weight: 600;
    word-break: break-all;
}

.references a[href*="doi.org"]:hover {
    color: #8e0000 !important;
}

/* ===== INLINE CITATIONS ===== */

sup a,
.citation a {
    color: #00509e !important;
    font-weight: 600;
}

sup a:hover,
.citation a:hover {
    color: #003366 !important;
}

/* ===== BIBLIOGRAPHY STYLE ===== */

.references {
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ===== AUTHOR NAMES ===== */

.references strong {
    color: #003366;
}

/* ===== ITALIC JOURNAL NAMES ===== */

.references em {
    font-style: italic;
    color: #444;
}

/* ===== HOVER EFFECT ===== */

.references li:hover {
    background: #f8fbff;
    transition: all 0.25s ease;
    border-radius: 8px;
    padding-left: 55px;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .references li,
    .ref-list li {
        padding-left: 42px;
        font-size: 14px;
    }

    .references li::before,
    .ref-list li::before {
        font-size: 12px;
        padding: 2px 6px;
    }
}

/* =========================================================
   PROFESSIONAL AUTHOR LAYOUT - NATURE/SPRINGER STYLE
========================================================= */

.article-details .authors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0;
    list-style: none;
}

.article-details .authors li {
    display: inline-flex;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    color: #003366;
    position: relative;
}

/* comma between authors */
.article-details .authors li::after {
    content: ",";
    margin-right: 4px;
}

.article-details .authors li:last-child::after {
    content: "";
}

/* author hover */
.article-details .authors li:hover {
    color: #0056b3;
}

/* corresponding author */
.article-details .authors li.isPrimaryContact a::after {
    content: "*";
    color: #d32f2f;
    font-size: 18px;
    font-weight: bold;
    margin-left: 2px;
}

/* affiliations */
.item.authors .affiliation {
    display: block;
    font-size: 14px;
    color: #555;
    margin-top: 3px;
    font-weight: 400;
}

/* superscript affiliation numbers */
.affiliation sup,
.author-affiliation {
    color: #00509e;
    font-weight: bold;
    font-size: 12px;
}

/* email */
.author-email {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

.author-email a {
    color: #0066cc;
    text-decoration: none;
}

.author-email a:hover {
    text-decoration: underline;
}

/* ORCID */
.orcid {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}

.orcid img {
    width: 16px;
    height: 16px;
}

/* popup card */
.author-popup {
    position: absolute;
    top: 130%;
    left: 0;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    padding: 15px;
    z-index: 999;
    display: none;
    animation: fadeIn .2s ease;
}

.article-details .authors li:hover .author-popup {
    display: block;
}

.author-popup h4 {
    margin: 0 0 8px;
    color: #003366;
    font-size: 16px;
}

.author-popup p {
    margin: 4px 0;
    font-size: 13px;
    color: #444;
}

.author-popup a {
    color: #0056b3;
    text-decoration: none;
}

/* animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* mobile */
@media (max-width: 768px) {

    .article-details .authors {
        flex-direction: column;
        gap: 8px;
    }

    .article-details .authors li {
        font-size: 15px;
    }

    .author-popup {
        width: 220px;
    }
}

/* Author Affiliations - Nature Style */
.author-affiliations {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #dde5ef;
    font-size: 14.5px;
    color: #444;
    line-height: 1.55;
}

.affiliation-line {
    margin-bottom: 6px;
}

.affiliation-line sup {
    color: #00509e;
    font-weight: bold;
    margin-right: 6px;
}

/* Improve popup */
.author-popup {
    position: absolute;
    top: 130%;
    left: 0;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.16);
    padding: 16px;
    z-index: 1000;
    display: none;
    border: 1px solid #eee;
    animation: fadeIn 0.25s ease;
}

.article-details .authors li:hover .author-popup {
    display: block;
}

.author-popup h4 {
    margin: 0 0 10px 0;
    color: #003366;
    font-size: 16.5px;
}

.author-popup p {
    margin: 6px 0;
    font-size: 13.5px;
    color: #444;
}

.author-email a {
    color: #0066cc;
    text-decoration: none;
}

.author-email a:hover {
    text-decoration: underline;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 768px) {
    .author-popup {
        width: 260px;
        left: -20px;
    }
}


/* =========================================
ARTICLE INFO BOX
SPRINGER / NATURE STYLE
========================================= */

.article-info-box {
    margin: 25px 0;
    background: #ffffff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 5px solid #00509e;
}

.article-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.info-item {
    background: #f8fbff;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    transition: 0.3s ease;
}

.info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.info-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-value {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
    line-height: 1.5;
}

.doi-value a {
    color: #d32f2f;
    text-decoration: none;
    word-break: break-word;
}

.doi-value a:hover {
    text-decoration: underline;
}

/* =========================================
MOBILE
========================================= */

@media screen and (max-width: 768px) {

.article-info-grid {
    grid-template-columns: 1fr;
}

.article-info-box {
    padding: 18px;
}

}


.article-info-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:15px;
    margin:25px 0;
}

.info-item{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:18px;
    text-align:center;
    transition:.3s;
    box-shadow:0 2px 10px rgba(0,0,0,.04);
}

.info-item:hover{
    transform:translateY(-3px);
    box-shadow:0 6px 20px rgba(0,0,0,.08);
}

.info-label{
    font-size:13px;
    color:#6b7280;
    margin-bottom:8px;
}

.info-value{
    font-size:24px;
    font-weight:700;
    color:#0f172a;
}