/*
 * theme35 custom styles
 * OJS 3.5 theme - Modern 2-column layout with search and premium visual styling.
 */

/* 1. Global & Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    font-weight: 600;
}

a {
    color: #2563eb;
    transition: color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 2. Header & Navigation */
.pkp_structure_head {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.pkp_head_wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.pkp_site_name_wrapper {
    display: flex;
    align-items: center;
}

.pkp_site_name a {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.pkp_site_name a:hover {
    color: #2563eb;
    text-decoration: none;
}

/* Menus */
.pkp_site_nav_menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pkp_navigation_primary, .pkp_navigation_user {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.pkp_navigation_primary a, .pkp_navigation_user a {
    color: #64748b;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.pkp_navigation_primary a::after, .pkp_navigation_user a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.pkp_navigation_primary a:hover, .pkp_navigation_user a:hover {
    color: #2563eb;
    text-decoration: none;
    background-color: transparent;
}

.pkp_navigation_primary a:hover::after, .pkp_navigation_user a:hover::after {
    width: 80%;
}

.pkp_navigation_primary .active > a {
    color: #2563eb;
    font-weight: 600;
}

.pkp_navigation_primary .active > a::after {
    width: 80%;
}

/* 3. 2-Column Responsive Layout */
.pkp_structure_content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

@media (min-width: 992px) {
    .pkp_structure_content.has_sidebar {
        display: grid;
        grid-template-columns: 8fr 3fr;
        gap: 40px;
        align-items: start;
    }
    
    .pkp_structure_main {
        grid-column: 1;
    }
    
    .pkp_structure_sidebar {
        grid-column: 2;
        float: none !important;
        width: auto !important;
        position: sticky;
        top: 20px;
    }
}

@media (max-width: 991px) {
    .pkp_structure_content.has_sidebar {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .pkp_structure_sidebar {
        width: 100% !important;
    }
}

/* 4. Sidebar Styles */
.pkp_structure_sidebar {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pkp_structure_sidebar .pkp_block {
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 24px;
}

.pkp_structure_sidebar .pkp_block:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.pkp_structure_sidebar h2, 
.pkp_structure_sidebar h3,
.pkp_structure_sidebar .title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 700;
    border-left: 3px solid #2563eb;
    padding-left: 10px;
}

/* Sidebar Search Form Block */
.block_search .pkp_search {
    position: relative;
    display: flex;
    align-items: center;
}

.block_search input.query {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.block_search input.query:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.block_search button.submit {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.block_search button.submit:hover {
    color: #2563eb;
}

/* 5. Main Content Styles */
.pkp_structure_main {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Journal Cards / Listings Grid (Modern Fresh Design) */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.journal-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.journal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.journal-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.journal-card-thumb {
    height: 160px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.journal-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journal-card-no-thumb {
    font-size: 48px;
    color: #94a3b8;
}

.journal-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.journal-card-title {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.4;
}

.journal-card-title a {
    color: #0f172a;
    font-weight: 600;
}

.journal-card-title a:hover {
    color: #2563eb;
    text-decoration: none;
}

.journal-card-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journal-card-links {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.journal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    flex: 1;
    text-align: center;
}

.journal-btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    border: 1px solid transparent;
}

.journal-btn-primary:hover {
    background-color: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
}

.journal-btn-outline {
    background-color: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.journal-btn-outline:hover {
    background-color: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
    text-decoration: none;
}

/* Journal Search Input UI */
.journals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.journals-title {
    margin: 0;
    font-size: 22px;
}

.journals-search-wrap {
    position: relative;
    min-width: 280px;
}

.journals-search-wrap input.journal-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.journals-search-wrap input.journal-search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.journals-search-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

/* Pagination Control Styling */
.journal-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.journal-pagination button.page-btn {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.journal-pagination button.page-btn:hover:not(.disabled) {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.journal-pagination button.page-btn.active {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    font-weight: 600;
}

.journal-pagination button.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8fafc;
}

/* Empty State Styling */
.no-journal-found {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    margin-top: 20px;
}

.no-journal-found p {
    font-size: 16px;
    margin-top: 10px;
}

/* Footer Styling */
.pkp_structure_footer_wrapper {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 60px;
    border-top: 1px solid #1e293b;
    font-size: 14px;
}

.pkp_structure_footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    border-left: none;
    padding-left: 0;
}

.footer-col p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a, .contact-email a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-links a:hover, .contact-email a:hover {
    color: #38bdf8;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #1e293b;
    color: #f8fafc;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-3px);
}

.pkp_footer_content {
    font-size: 14px;
}

.pkp_brand_footer img {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.pkp_brand_footer img:hover {
    opacity: 1;
}
