/* ======================================================
   TALAYE JOURNAL - OJS 3.3 BOOTSTRAP 3 THEME CSS
   نسخه نهایی - کاملاً هدفمند و مینیمال
   ====================================================== */

/* ---------- 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');

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-regular-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-brands-400.woff2') format('woff2');
}

/* ==========================================
   GENERAL
   ========================================== */
body {
    font-family: 'Vazirmatn', 'Inter', sans-serif !important;
    background: #f5f5f0 !important;
}

html[lang="en"] body {
    font-family: 'Inter', 'Vazirmatn', sans-serif !important;
}

html[lang="fa"] body,
html[lang="ps"] body,
html[lang="ar"] body {
    font-family: 'Vazirmatn', sans-serif !important;
    direction: rtl !important;
    text-align: right !important;
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}

/* FONT AWESOME ICONS */
.fa, .fas {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

.far {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 400 !important;
}

.fab {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400 !important;
}

/* ==========================================
   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) !important;
}

.pkp_site_name .is_text {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #fff !important;
}

.pkp_site_description {
    color: rgba(255,255,255,0.85) !important;
    font-size: 1.1rem !important;
}

/* ==========================================
   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;
    transition: color 0.3s ease !important;
}

.navbar-default .navbar-nav > li > a:hover {
    color: #D4AF37 !important;
}

.navbar-default .navbar-nav > .active > a {
    color: #D4AF37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.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;
}

.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-weight: 700 !important;
    color: #0A2540 !important;
    border-bottom: 2px solid #D4AF37 !important;
    display: inline-block !important;
    padding-bottom: 6px !important;
    margin-bottom: 1rem !important;
}

/* ==========================================
   ARTICLE SUMMARY - باکس سمری مقالات
   ========================================== */
.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;
}

html[lang="en"] .obj_article_summary,
html[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;
    box-shadow: 0 4px 8px rgba(0,0,0,0.04), 0 16px 40px rgba(0,0,0,0.1) !important;
    background: #fefefe !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;
}

/* ==========================================
   ORCID ICON - نمایش آیکون ORCID
   ========================================== */
.obj_article_summary .authors a[href*="orcid.org"],
.article-summary .authors a[href*="orcid.org"],
.obj_article_summary .authors .orcid_icon,
.article-summary .authors .orcid_icon,
.obj_article_summary .authors a.orcid,
.article-summary .authors a.orcid,
span.authors a[href*="orcid.org"],
.author a[href*="orcid.org"],
a.orcid,
a[href*="orcid.org/0000"],
.orcid-profile a {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    text-decoration: none !important;
}

/* ایجاد آیکون ORCID با SVG inline - تضمین 100% نمایش */
.obj_article_summary .authors a[href*="orcid.org"]::after,
.article-summary .authors a[href*="orcid.org"]::after,
.obj_article_summary .authors .orcid_icon::after,
.article-summary .authors .orcid_icon::after,
.obj_article_summary .authors a.orcid::after,
.article-summary .authors a.orcid::after,
span.authors a[href*="orcid.org"]::after,
.author a[href*="orcid.org"]::after,
a.orcid::after,
a[href*="orcid.org/0000"]::after,
.orcid-profile a::after {
    content: '' !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 3px !important;
    background-color: #A6CE39 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='white' d='M256 128c0 70.7-57.3 128-128 128S0 198.7 0 128S57.3 0 128 0s128 57.3 128 128zM86.3 186.2H70.9V79.1h15.4v107.1zm22.6-107.1h41.6c39.6 0 57 28.3 57 53.6c0 27.5-21.5 53.6-56.8 53.6h-41.8V79.1zm15.4 93.3h25.1c26.3 0 42.1-17.3 42.1-39.6c0-21.2-15.1-39.5-41.5-39.5h-25.7v79.1zM78.6 56.7c0 5.2-4.2 9.4-9.4 9.4s-9.4-4.2-9.4-9.4s4.2-9.4 9.4-9.4s9.4 4.2 9.4 9.4z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease !important;
}

/* حالت hover برای ORCID */
.obj_article_summary .authors a[href*="orcid.org"]:hover::after,
.article-summary .authors a[href*="orcid.org"]:hover::after,
.obj_article_summary .authors .orcid_icon:hover::after,
.article-summary .authors .orcid_icon:hover::after,
.obj_article_summary .authors a.orcid:hover::after,
.article-summary .authors a.orcid:hover::after,
span.authors a[href*="orcid.org"]:hover::after,
.author a[href*="orcid.org"]:hover::after,
a.orcid:hover::after,
a[href*="orcid.org/0000"]:hover::after {
    transform: scale(1.2) !important;
}

/* ==========================================
   STATISTICS - آمار بازدید و دانلود
   ========================================== */
.obj_article_summary .item_stats,
.article-summary .item_stats,
.article_stats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid #e8ecf1 !important;
}

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

.obj_article_summary .item_stats > *:hover,
.article-summary .item_stats > *:hover,
.article_stats > *:hover {
    background: #fff !important;
    border-color: #D4AF37 !important;
    color: #0A2540 !important;
    box-shadow: 0 4px 12px rgba(212,175,55,0.15) !important;
}

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

/* ==========================================
   VIEWS & DOWNLOADS - آمار خاص
   ========================================== */
.item_views,
.item_downloads,
.galleys_stats,
.article-views,
.article-downloads {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #475569 !important;
    padding: 5px 12px !important;
    background: #f8fafc !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.78rem !important;
    transition: all 0.3s ease !important;
}

.item_views:hover,
.item_downloads:hover,
.galleys_stats:hover,
.article-views:hover,
.article-downloads:hover {
    border-color: #D4AF37 !important;
    background: #fff !important;
}

/* ==========================================
   GALLEYS - لینک‌های دانلود
   ========================================== */
.obj_article_summary .galleys a,
.article-summary .galleys a,
.obj_article_details .galleys a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 18px !important;
    background: #0A2540 !important;
    color: #fff !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.obj_article_summary .galleys a:hover,
.article-summary .galleys a:hover,
.obj_article_details .galleys a:hover {
    background: #D4AF37 !important;
    color: #0A2540 !important;
    border-color: #D4AF37 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(212,175,55,0.3) !important;
}

/* ==========================================
   DROPDOWNS
   ========================================== */
.dropdown-menu {
    background: #0A2540 !important;
    border: 1px solid #D4AF37 !important;
    border-radius: 12px !important;
    padding: 0.5rem 0 !important;
}

.dropdown-menu > li > a {
    color: #fff !important;
    padding: 0.6rem 1.5rem !important;
    transition: all 0.2s ease;
}

.dropdown-menu > li > a:hover {
    background: #D4AF37 !important;
    color: #0A2540 !important;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn, .cmp_button {
    border-radius: 50px !important;
    transition: 0.3s ease !important;
}

.btn-primary {
    background: #0A2540 !important;
    border-color: #0A2540 !important;
    color: #fff !important;
}

.btn-primary:hover {
    background: #D4AF37 !important;
    border-color: #D4AF37 !important;
    color: #0A2540 !important;
}

/* ==========================================
   SCROLL TO TOP
   ========================================== */
.scroll-top-btn {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #0A2540 !important;
    color: #D4AF37 !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.scroll-top-btn.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.scroll-top-btn:hover {
    background: #D4AF37 !important;
    color: #0A2540 !important;
    border-color: #D4AF37;
    transform: translateY(-5px) !important;
}

html[lang="fa"] .scroll-top-btn,
html[lang="ps"] .scroll-top-btn,
html[lang="ar"] .scroll-top-btn {
    right: auto !important;
    left: 30px !important;
}

/* ==========================================
   FOOTER
   ========================================== */
.pkp_structure_footer_wrapper {
    background: #071521 !important;
    color: rgba(255,255,255,0.8) !important;
    padding: 2rem 0 !important;
    border-top: 3px solid #D4AF37 !important;
    margin-top: 3rem !important;
}

.pkp_structure_footer_wrapper a {
    color: #D4AF37 !important;
}

.pkp_structure_footer_wrapper a:hover {
    color: #e8c86a !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .pkp_site_name .is_text { font-size: 1.6rem !important; }
    .obj_article_summary, .article-summary { padding: 18px 16px !important; }
    .scroll-top-btn { bottom: 20px; right: 20px; width: 42px; height: 42px; }
    html[lang="fa"] .scroll-top-btn,
    html[lang="ps"] .scroll-top-btn,
    html[lang="ar"] .scroll-top-btn { right: auto !important; left: 20px !important; }
}

@media (max-width: 480px) {
    .scroll-top-btn { bottom: 15px; right: 15px; width: 38px; height: 38px; }
    html[lang="fa"] .scroll-top-btn,
    html[lang="ps"] .scroll-top-btn,
    html[lang="ar"] .scroll-top-btn { right: auto !important; left: 15px !important; }
}

/* ==========================================
   CUSTOM SCROLLBAR
   ========================================== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

/* ==========================================
   PRINT
   ========================================== */
@media print {
    .navbar-default,
    .scroll-top-btn,
    .pkp_structure_footer_wrapper {
        display: none !important;
    }
    
    .pkp_site_name_wrapper {
        background: none !important;
        border-bottom: 2px solid #000 !important;
    }
    
    .pkp_site_name .is_text {
        color: #000 !important;
        text-shadow: none !important;
    }
}