/* =================================================
   IJASEK – Modern & Elegant OJS Stylesheet
   Clean • Academic • Premium
   ================================================= */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Global */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f4f6f8;
    color: #1f2933;
    line-height: 1.75;
    margin: 0;
    padding: 0;
}

/* Header */
.pkp_site_name_wrapper {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    padding: 28px 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

.pkp_site_name a {
    color: #ffffff !important;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
}

/* Navigation */
.pkp_navigation_primary {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pkp_navigation_primary a {
    color: #1f2933 !important;
    font-weight: 500;
    padding: 14px 18px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.pkp_navigation_primary a:hover,
.pkp_navigation_primary .is_current a {
    color: #2563eb !important;
    border-bottom: 3px solid #2563eb;
    background-color: #f8fafc;
}

/* Main Content */
.pkp_structure_content {
    background: #ffffff;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Headings */
h1, h2, h3, h4 {
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 0.6em;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 22px;
}

/* Article Listings */
.obj_article_summary {
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.obj_article_summary:last-child {
    border-bottom: none;
}

.obj_article_summary .title a {
    font-size: 18px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.obj_article_summary .title a:hover {
    text-decoration: underline;
}

.article-meta {
    color: #6b7280;
    font-size: 14px;
    margin-top: 8px;
}

/* Article Abstract */
.obj_article_details .abstract {
    background: #f8fafc;
    border-left: 5px solid #2563eb;
    padding: 20px;
    margin-top: 25px;
    border-radius: 6px;
}

/* Buttons */
.pkp_button,
.pkp_button_primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.pkp_button:hover,
.pkp_button_primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px;
    transition: border 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Sidebar */
.pkp_structure_sidebar {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    margin: 20px;
    max-width: 300px;
}

.pkp_structure_sidebar h2 {
    font-size: 15px;
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
    margin-top: 0;
}

.sidebar-block {
    margin-bottom: 20px;
}

.sidebar-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-block li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-block li:last-child {
    border-bottom: none;
}

.sidebar-block a {
    color: #1f2933;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-block a:hover {
    color: #2563eb;
}

/* Footer */
.pkp_site_footer {
    background: #0f172a;
    color: #e5e7eb;
    padding: 30px 20px;
    margin-top: 40px;
    text-align: center;
}

.pkp_site_footer a {
    color: #93c5fd;
    text-decoration: none;
}

.pkp_site_footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Layout Container */
.pkp_structure_main_wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    padding: 0 20px;
}

.pkp_structure_main {
    flex: 1;
    min-width: 0;
}

/* Additional Components */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #2563eb;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

/* Mobile */
@media (max-width: 768px) {
    .pkp_structure_content {
        padding: 20px;
        margin: 10px;
    }

    .pkp_site_name a {
        font-size: 22px;
    }

    .pkp_structure_main_wrapper {
        flex-direction: column;
        padding: 0 10px;
    }

    .pkp_structure_sidebar {
        margin: 10px;
        max-width: none;
    }

    .pkp_navigation_primary {
        justify-content: center;
    }

    .pkp_navigation_primary a {
        padding: 12px 14px;
        font-size: 14px;
    }
    .pkp_brand_footer { display: none; }
    
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
}

tr:hover {
    background: #f8fafc;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    list-style: none;
    padding: 0;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #1f2933;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination .current {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Form Groups */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 10px;
}

.hero-section h1 {
    color: white;
    font-size: 32px;
    margin-bottom: 16px;
}

.hero-section p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.pkp_brand_footer { display: none; }
