/* =============================================
   MALABI OJS - MAIN STYLESHEET
   ============================================= */

:root {
    --primary: #1a5276;
    --primary-dark: #0e2f4a;
    --primary-light: #2980b9;
    --secondary: #e67e22;
    --secondary-dark: #ca6f1e;
    --accent: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #2980b9;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --gray-light: #ecf0f1;
    --text: #2c3e50;
    --text-muted: #7f8c8d;
    --border: #dee2e6;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: #f5f6fa;
    line-height: 1.6;
    font-size: 15px;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
.container-fluid { width: 100%; padding: 0 20px; }

.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { flex: 1; padding: 0 15px; }
[class*="col-"] { padding: 0 15px; }

.col-1  { width: 8.333%; }
.col-2  { width: 16.666%; }
.col-3  { width: 25%; }
.col-4  { width: 33.333%; }
.col-5  { width: 41.666%; }
.col-6  { width: 50%; }
.col-7  { width: 58.333%; }
.col-8  { width: 66.666%; }
.col-9  { width: 75%; }
.col-10 { width: 83.333%; }
.col-12 { width: 100%; }

/* =============================================
   HEADER & NAVBAR
   ============================================= */
.site-header {
    background: var(--primary-dark);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-top {
    background: var(--primary);
    padding: 6px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a { color: rgba(255,255,255,0.85); font-size: 13px; }
.header-top a:hover { color: white; }

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.logo-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-brand .brand-text { line-height: 1.2; }
.navbar-brand .brand-subtitle {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
    display: block;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

.nav-links .btn-nav {
    background: var(--secondary);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
}
.nav-links .btn-nav:hover { background: var(--secondary-dark); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    min-width: 220px;
    z-index: 200;
    overflow: hidden;
    border: 1px solid var(--border);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text) !important;
    font-size: 14px;
    background: transparent !important;
    border-radius: 0;
}
.dropdown-menu a:hover { background: var(--gray-light) !important; color: var(--primary) !important; }

/* Mobile toggle - hidden on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -5%;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--secondary); }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    line-height: 1.4;
}
.btn-primary   { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }
.btn-secondary { background: var(--secondary); color: white; border-color: var(--secondary); }
.btn-secondary:hover { background: var(--secondary-dark); color: white; }
.btn-success   { background: var(--accent); color: white; border-color: var(--accent); }
.btn-danger    { background: var(--danger); color: white; border-color: var(--danger); }
.btn-warning   { background: var(--warning); color: white; border-color: var(--warning); }
.btn-outline   { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-outline-white { background: transparent; color: white; border-color: white; }
.btn-outline-white:hover { background: white; color: var(--primary); }
.btn-sm  { padding: 6px 14px; font-size: 13px; }
.btn-lg  { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }

/* =============================================
   CARDS
   ============================================= */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
.card-body   { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--light); }

/* Journal Card */
.journal-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.journal-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.journal-card-cover {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 900;
    color: white;
    position: relative;
    overflow: hidden;
}
.journal-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.journal-card-body   { padding: 16px; flex: 1; }
.journal-card-title  { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.journal-card-meta   { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.journal-card-footer { padding: 12px 16px; border-top: 1px solid var(--border); }

/* Article Card */
.article-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--transition);
}
.article-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.article-title    { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.article-authors  { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.article-abstract { font-size: 14px; color: var(--text); margin-bottom: 12px; line-height: 1.6; }
.article-meta     { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.article-meta span { display: flex; align-items: center; gap: 4px; }

/* =============================================
   SECTIONS
   ============================================= */
.section    { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-title    { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.section-subtitle { color: var(--text-muted); font-size: 16px; margin-bottom: 40px; }
.section-title-wrapper { text-align: center; margin-bottom: 40px; }
.section-title-wrapper .section-title::after {
    content: '';
    display: block;
    width: 60px; height: 3px;
    background: var(--secondary);
    margin: 12px auto 0;
}

/* =============================================
   FORMS
   ============================================= */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: var(--text); }
.form-label .required { color: var(--danger); margin-left: 3px; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    background: white;
    transition: var(--transition);
    font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,82,118,0.1); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control[readonly]   { background: var(--gray-light); cursor: not-allowed; }
textarea.form-control     { min-height: 120px; resize: vertical; }
select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2395a5a6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.form-text  { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input { width: auto; }

/* =============================================
   ALERTS
   ============================================= */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.alert button { background: none; border: none; cursor: pointer; font-size: 18px; line-height: 1; opacity: 0.7; padding: 0; }
.alert-success { background: #d5f4e6; color: #1e8449; border: 1px solid #a9dfbf; }
.alert-danger  { background: #fde8e8; color: #c0392b; border: 1px solid #f1948a; }
.alert-warning { background: #fef9e7; color: #d35400; border: 1px solid #f8c471; }
.alert-info    { background: #d6eaf8; color: #1a5276; border: 1px solid #85c1e9; }

/* =============================================
   BADGES
   ============================================= */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.badge-primary   { background: #d6eaf8; color: var(--primary); }
.badge-secondary { background: var(--gray-light); color: var(--gray); }
.badge-success   { background: #d5f4e6; color: var(--accent); }
.badge-danger    { background: #fde8e8; color: var(--danger); }
.badge-warning   { background: #fef9e7; color: var(--warning); }
.badge-info      { background: #d6eaf8; color: var(--info); }

/* =============================================
   TABLES
   ============================================= */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
thead th { background: var(--light); font-weight: 700; color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
tr:hover td { background: rgba(26,82,118,0.03); }

/* =============================================
   PAGINATION
   ============================================= */
.pagination { display: flex; gap: 4px; list-style: none; padding: 20px 0; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination li {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
    background: white;
}
.pagination a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination li.active a, .pagination .active { background: var(--primary); color: white; border-color: var(--primary); }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar .widget { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.widget-title { background: var(--primary); color: white; padding: 12px 18px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.widget-body { padding: 16px; }
.widget-body ul { list-style: none; }
.widget-body ul li { border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 14px; }
.widget-body ul li:last-child { border-bottom: none; }
.widget-body ul li a { color: var(--text); }
.widget-body ul li a:hover { color: var(--primary); }

/* =============================================
   JOURNAL HEADER
   ============================================= */
.journal-header { background: var(--primary); color: white; padding: 30px 0; margin-bottom: 30px; }
.journal-header-inner { display: flex; gap: 24px; align-items: flex-start; }
.journal-cover-small { width: 100px; height: 140px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; border: 3px solid rgba(255,255,255,0.3); }
.journal-info h1 { font-size: 26px; margin-bottom: 8px; }
.journal-info .journal-meta-list { list-style: none; font-size: 13px; opacity: 0.9; }
.journal-info .journal-meta-list li { margin-bottom: 4px; }
.journal-info .journal-meta-list strong { margin-right: 6px; }

/* =============================================
   QUICK MENU
   ============================================= */
.quick-menu { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.quick-menu-title { background: var(--primary); color: white; padding: 12px 16px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.quick-menu a { display: block; padding: 10px 16px; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--text); transition: var(--transition); }
.quick-menu a:last-child { border-bottom: none; }
.quick-menu a:hover { background: var(--gray-light); color: var(--primary); padding-left: 22px; }
.quick-menu a::before { content: '»'; margin-right: 8px; color: var(--primary); }

/* =============================================
   SEARCH
   ============================================= */
.search-box { display: flex; gap: 0; }
.search-box input  { border-radius: var(--radius) 0 0 var(--radius); flex: 1; }
.search-box button { border-radius: 0 var(--radius) var(--radius) 0; padding: 10px 16px; background: var(--primary); color: white; border: none; cursor: pointer; font-size: 16px; }
.search-box button:hover { background: var(--primary-dark); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 20px; font-weight: 700; color: white; margin-bottom: 12px; }
.footer-desc  { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.footer-title { font-size: 14px; font-weight: 700; color: white; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-links a:hover { color: white; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    text-align: center;
}
.stat-item .stat-number { font-size: 32px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-item .stat-label  { font-size: 12px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; font-weight: 600; }

/* =============================================
   MISC UTILITIES
   ============================================= */
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--accent); }
.fw-bold      { font-weight: 700; }
.mt-1 { margin-top: 8px; }   .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }  .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }

/* =============================================
   TABS
   ============================================= */
.tabs { border-bottom: 2px solid var(--border); margin-bottom: 24px; display: flex; gap: 0; overflow-x: auto; }
.tab-item { padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); white-space: nowrap; }
.tab-item:hover { color: var(--primary); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* =============================================
   DOI
   ============================================= */
.doi-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff3e0; color: #e65100; border: 1px solid #ffcc02; padding: 4px 10px; border-radius: var(--radius); font-size: 12px; font-weight: 600; }

