/* Terra Geospatial - OJS Custom Light Theme 
    Simplified & Organized for OJS Portal
*/

/* 1. Global Background and Text */
body {
    background-color: #FFFFFF !important;
    color: #374151 !important; /* Dark Gray 700 */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    line-height: 1.6;
}

/* 2. Header and Navigation Fixes */
.pkp_structure_head {
    background-color: #f8fafc !important; /* Very Light Gray */
    border-bottom: 1px solid #e2e8f0 !important; /* Light border */
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Fix the banner scaling for 1070x162px */
.pkp_site_name_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0; /* Added breathing room for the banner */
    width: 100%;
}

.pkp_site_name .is_img img {
    max-width: 100% !important; /* Ensures the 1070px banner fits on all screens */
    height: auto !important; /* Maintains the 1070:162 aspect ratio */
    max-height: 162px !important; /* Prevents stretching beyond natural height */
    display: block;
    margin: 0 auto;
}

/* Center and clean up the user/main navigation */
.pkp_navigation_user_wrapper, .pkp_navigation_primary_wrapper {
    background: transparent !important;
    border: none !important;
}

.pkp_navigation_primary, .pkp_navigation_user {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.pkp_navigation_primary > li > a, 
.pkp_navigation_user > li > a {
    color: #475569 !important; /* Slate 600 */
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    padding: 10px 15px !important;
    transition: color 0.3s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_user > li > a:hover {
    color: #0d9488 !important; /* Teal 600 */
}

/* 3. Main Content Area Organization */
.pkp_structure_main {
    background-color: transparent !important;
    padding-top: 40px !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
}

/* Fix background sections */
.pkp_structure_page, .pkp_structure_content {
    background-color: #FFFFFF !important;
}

.obj_article_summary, .pkp_block, .current_issue {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important; /* Subtle border */
    border-radius: 12px !important;
    padding: 25px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Softer shadow for light mode */
}

/* 4. Typography & Headings */
h1, h2, h3, h4, .title {
    color: #111827 !important; /* Gray 900 */
    font-weight: 700 !important;
    margin-bottom: 15px;
}

.obj_article_summary .title a {
    color: #0d9488 !important; /* Teal 600 */
    font-size: 1.2rem !important;
    text-decoration: none !important;
}

.obj_article_summary .meta {
    color: #64748b !important;
    font-size: 0.85rem !important;
}

/* 5. Buttons & Links */
.pkp_button, .pkp_button_primary, .read_more, .file {
    background-color: #0d9488 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.pkp_button:hover, .pkp_button_primary:hover {
    background-color: #0f766e !important;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2) !important;
    transform: translateY(-1px);
}

/* 6. Sidebar Cleanup */
.pkp_structure_sidebar {
    padding-left: 30px;
}

.pkp_block .title {
    color: #0d9488 !important;
    border-bottom: 2px solid #0d9488 !important;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem !important;
}

/* 7. Footer */
.pkp_structure_footer {
    background-color: #f1f5f9 !important; /* Light Slate */
    border-top: 1px solid #e2e8f0 !important;
    padding: 40px 0 !important;
    margin-top: 60px !important;
}

.pkp_footer_content {
    color: #64748b !important;
    font-size: 0.85rem !important;
    text-align: center;
}

/* Hide OJS specific clutter for a cleaner look */
.pkp_screen_reader { display: none; }