/* ======================================================
   GHALIB JOURNAL - FINAL MASTERPIECE CSS (LARGER TEXT)
   ====================================================== */

/* ---------- 1. FONTS & BASE ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

body, body * {
    font-family: 'Vazirmatn', 'Inter', sans-serif !important;
}
body:lang(en), body:lang(en) * {
    font-family: 'Inter', 'Vazirmatn', sans-serif !important;
}

p, .abstract, .article-content, .page-content, 
.obj_article_summary .abstract, .item.article .abstract,
.sidebar .block p, .pkp_block p {
    text-align: justify !important;
    text-justify: inter-word !important;
}

/* ---------- 2. PREMIUM HEADER ---------- */
.pkp_site_name_wrapper {
    position: relative !important;
    background: linear-gradient(135deg, #071521 0%, #0A2540 45%, #153d62 100%) !important;
    padding: 2rem 0 !important;
    border-bottom: 4px solid #D4AF37 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.08) !important;
    overflow: hidden !important;
}

.pkp_site_name_wrapper::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: 
        radial-gradient(circle at 20% 20%, rgba(212,175,55,0.18) 0%, transparent 30%),
        radial-gradient(circle at 80% 25%, rgba(212,175,55,0.15) 0%, transparent 30%),
        radial-gradient(circle at 50% 90%, rgba(255,255,255,0.05) 0%, transparent 40%),
        radial-gradient(circle at 10px 10px, #D4AF37 2px, transparent 2px),
        radial-gradient(circle at 25px 35px, rgba(212,175,55,0.6) 1px, transparent 1px),
        radial-gradient(circle at 50px 15px, #D4AF37 1.5px, transparent 1.5px),
        radial-gradient(circle at 70px 45px, rgba(212,175,55,0.4) 2px, transparent 2px),
        radial-gradient(circle at 90px 25px, #D4AF37 1px, transparent 1px) !important;
    background-size: 100px 100px, 80px 80px, 120px 120px, 150px 150px, 90px 90px !important;
    opacity: 0.7;
    pointer-events: none !important;
}

.pkp_site_name_wrapper::after {
    content: '' !important;
    position: absolute !important;
    bottom: -4px; left: 0; right: 0;
    height: 4px !important;
    background: linear-gradient(90deg, #D4AF37, #e8c86a, #fff8e7, #e8c86a, #D4AF37) !important;
    z-index: 2;
}

.pkp_site_name .is_text {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.pkp_site_description {
    color: rgba(255,255,255,0.85) !important;
    font-size: 1.1rem !important;
    margin-top: 0.5rem !important;
}

/* ---------- 3. PREMIUM NAVIGATION ---------- */
.navbar-default {
    background: rgba(10, 37, 64, 0.97) !important;
    border: none !important;
    border-bottom: 2px solid #D4AF37 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    margin-bottom: 2rem !important;
}
.navbar-default .navbar-nav > li > a {
    color: #fff !important;
    font-weight: 600 !important;
    padding: 1rem 1.2rem !important;
    position: relative !important;
    transition: color 0.3s ease !important;
}
.navbar-default .navbar-nav > li > a::after {
    content: '' !important;
    position: absolute !important;
    left: 1rem; bottom: 0;
    width: 0; height: 2px;
    background: #D4AF37 !important;
    transition: width 0.3s ease !important;
}
.navbar-default .navbar-nav > li > a:hover {
    color: #D4AF37 !important;
    background: transparent !important;
}
.navbar-default .navbar-nav > li > a:hover::after {
    width: calc(100% - 2rem) !important;
}
.navbar-default .navbar-nav > .active > a {
    color: #D4AF37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
}

.navbar-nav a[href*="login"],
.navbar-nav a[href*="register"] {
    color: #ffffff !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}
.navbar-nav a[href*="login"]:hover,
.navbar-nav a[href*="register"]:hover {
    color: #D4AF37 !important;
}

/* ---------- 4. SIDEBAR SEPARATOR ---------- */
body:lang(en) .pkp_structure_sidebar,
body:lang(en) [class*="sidebar"] {
    border-left: 3px solid #D4AF37 !important;
    padding-left: 20px !important;
}
body:lang(fa) .pkp_structure_sidebar,
body:lang(fa) [class*="sidebar"] {
    border-right: 3px solid #D4AF37 !important;
    padding-right: 20px !important;
}

/* ---------- 5. ELEGANT DROPDOWNS ---------- */
.dropdown-menu {
    background: #0A2540 !important;
    border: 1px solid #D4AF37 !important;
    border-radius: 12px !important;
    padding: 0.5rem 0 !important;
    overflow: hidden;
}
.dropdown-menu > li > a {
    color: #fff !important;
    padding: 0.6rem 1.5rem !important;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.dropdown-menu > li:last-child > a {
    border-bottom: none !important;
}
.dropdown-menu > li > a:hover {
    background: #D4AF37 !important;
    color: #0A2540 !important;
    font-weight: 600;
    border-bottom-color: transparent !important;
}
.dropdown-menu > li > a i {
    color: #D4AF37 !important;
    margin-right: 8px !important;
}
.dropdown-menu > li > a:hover i {
    color: #0A2540 !important;
}

/* ---------- 6. CLASSIC SIDEBAR CARDS ---------- */
.pkp_block, .sidebar .block {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.8rem !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
    transition: all 0.35s ease !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.pkp_block:hover {
    transform: translateY(-6px) !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 16px 32px rgba(0,0,0,0.08) !important;
}
.pkp_block .title, .sidebar .block h3 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #0A2540 !important;
    border-bottom: 2px solid #D4AF37 !important;
    display: inline-block !important;
    padding-bottom: 6px !important;
    margin-bottom: 1rem !important;
    margin-top: 0;
}
.pkp_block:nth-child(1) .title::before { font-family: 'Font Awesome 6 Free'; font-weight: 900; content: "\f0c0"; margin-right: 8px; color: #D4AF37; }
.pkp_block:nth-child(2) .title::before { font-family: 'Font Awesome 6 Free'; font-weight: 900; content: "\f02d"; margin-right: 8px; color: #D4AF37; }
.pkp_block:nth-child(3) .title::before { font-family: 'Font Awesome 6 Free'; font-weight: 900; content: "\f1ea"; margin-right: 8px; color: #D4AF37; }

/* ==========================================
   7. ARTICLE CARDS - MASTERPIECE DESIGN
   ========================================== */

.obj_article_summary, 
.article-summary {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    margin-bottom: 28px !important;
    border: 1px solid #e8ecf1 !important;
    border-right: 5px solid #D4AF37 !important;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.02),
        0 8px 24px rgba(0,0,0,0.06) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

body:lang(en) .obj_article_summary,
body:lang(en) .article-summary {
    border-right: 1px solid #e8ecf1 !important;
    border-left: 5px solid #D4AF37 !important;
}

.obj_article_summary:hover,
.article-summary:hover {
    transform: translateY(-4px) !important;
    border-right-color: #e8c86a !important;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.04),
        0 16px 40px rgba(0,0,0,0.1) !important;
    background: #fefefe !important;
}

body:lang(en) .obj_article_summary:hover,
body:lang(en) .article-summary:hover {
    border-right-color: #e8ecf1 !important;
    border-left-color: #e8c86a !important;
}

/* عنوان مقاله - 1.5 برابر بزرگتر */
.obj_article_summary .title,
.article-summary .title {
    font-size: 1.95rem !important;
    font-weight: 800 !important;
    margin-bottom: 16px !important;
    line-height: 1.8 !important;
    color: #0A2540 !important;
}
.obj_article_summary .title a,
.article-summary .title a {
    color: #0A2540 !important;
    text-decoration: none !important;
    transition: color 0.25s ease !important;
}
.obj_article_summary .title a:hover,
.article-summary .title a:hover {
    color: #D4AF37 !important;
}

/* نویسندگان - 1.5 برابر بزرگتر */
.obj_article_summary .authors,
.article-summary .authors {
    font-size: 1.6rem !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    margin-bottom: 16px !important;
    line-height: 1.9 !important;
}

/* DOI */
.obj_article_summary .doi,
.article-summary .doi {
    font-size: 0.75rem !important;
    color: #64748b !important;
    margin-top: 8px !important;
    display: inline-block !important;
}
.obj_article_summary .doi a,
.article-summary .doi a {
    color: #0A2540 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}
.obj_article_summary .doi a:hover,
.article-summary .doi a:hover {
    color: #D4AF37 !important;
}

/* آمار */
.obj_article_summary .item_stats,
.obj_article_summary .gs_citation,
.article-summary .item_stats,
.article-summary .gs_citation {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #e8ecf1 !important;
}

.obj_article_summary .item_stats > *,
.obj_article_summary .gs_citation > *,
.article-summary .item_stats > *,
.article-summary .gs_citation > * {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.78rem !important;
    color: #475569 !important;
    padding: 6px 14px !important;
    background: #f8fafc !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.25s ease !important;
}

.obj_article_summary .item_stats i,
.obj_article_summary .gs_citation i,
.article-summary .item_stats i,
.article-summary .gs_citation i {
    color: #D4AF37 !important;
    font-size: 0.85rem !important;
}

.obj_article_summary .item_stats > *:hover,
.obj_article_summary .gs_citation > *:hover,
.article-summary .item_stats > *:hover,
.article-summary .gs_citation > *:hover {
    background: #ffffff !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 2px 8px rgba(212,175,55,0.15) !important;
}

/* ORCID Badge */
a[href*="orcid.org"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #f1f5f9 !important;
    padding: 3px 12px !important;
    border-radius: 30px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
}
a[href*="orcid.org"]::before {
    content: url('https://orcid.org/sites/default/files/images/orcid_16x16.png') !important;
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    margin-right: 6px !important;
    vertical-align: middle !important;
}
a[href*="orcid.org"]:hover {
    background: #A6CE39 !important;
    color: #ffffff !important;
    border-color: #A6CE39 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(166,206,57,0.25) !important;
}

/* ---------- 8. INTERACTIVE ELEMENTS ---------- */
.btn, .cmp_button {
    border-radius: 50px !important;
    transition: 0.3s ease !important;
}
.btn-primary {
    background: #0A2540 !important;
    border-color: #0A2540 !important;
}
.btn-primary:hover {
    background: #D4AF37 !important;
    border-color: #D4AF37 !important;
    color: #0A2540 !important;
}
input[name="query"] {
    max-width: 160px !important;
    border-radius: 20px;
}

/* ---------- 9. SCROLL TO TOP BUTTON ---------- */
.scroll-top-btn {
    position: fixed !important;
    bottom: 30px; right: 30px;
    width: 45px; height: 45px;
    background: #0A2540 !important;
    color: #D4AF37 !important;
    border-radius: 50% !important;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer !important;
    z-index: 999 !important;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
    border: none;
}
.scroll-top-btn.show {
    opacity: 1 !important;
    visibility: visible !important;
}
.scroll-top-btn:hover {
    background: #D4AF37 !important;
    color: #0A2540 !important;
    transform: translateY(-4px) !important;
}
body:lang(fa) .scroll-top-btn {
    right: auto !important;
    left: 30px !important;
}

/* ---------- 10. RESPONSIVE ---------- */
@media (max-width: 768px) {
    .pkp_site_name .is_text {
        font-size: 1.6rem !important;
    }
    .obj_article_summary, .article-summary {
        padding: 18px 16px !important;
    }
    .obj_article_summary .title,
    .article-summary .title {
        font-size: 1.5rem !important;
    }
    .obj_article_summary .authors,
    .article-summary .authors {
        font-size: 1.2rem !important;
    }
}