/* ==========================================================================
   1. GLOBAL VARIABLES & DEFAULT STYLES (Ranglar va Asosiy Sozlamalar)
   ========================================================================== */
:root {
    --jmmf-primary: #0f2c59;      /* To'q ko'k - Jurnal asosiy rangi */
    --jmmf-accent: #e67e00;       /* To'q sariq / Sabzi rang - Urg'u rangi */
    --jmmf-gold: #f4c430;         /* Oltin rang - Premium elementlar uchun */
    --jmmf-light: #f8f9fa;        /* Och kulrang - Fonlar uchun */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
    background-color: #ffffff;
}

/* ==========================================================================
   2. TOP BAR & PREMIUM LANGUAGE SWITCHER (Yuqori Panel va Tillar)
   ========================================================================== */
.top-bar {
    background-color: var(--jmmf-primary);
    position: relative;
    z-index: 1040; /* Navbardan yuqorida turishi shart */
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-bar a:hover {
    color: var(--jmmf-gold);
}

/* Language Dropdown Tugmasi */
.language-switcher .btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    border-radius: 6px;
    color: #ffffff !important; /* Tugma ichidagi matn har doim oq */
    transition: all 0.2s ease;
}

.language-switcher .btn:hover, 
.language-switcher .btn:focus {
    background: var(--jmmf-accent, #e67e00);
    border-color: var(--jmmf-accent, #e67e00);
    box-shadow: 0 4px 12px rgba(230, 126, 0, 0.3);
    color: #ffffff !important;
}

/* Ochiladigan Menyu Bloki (To'q rangli orqa fon) */
.language-switcher .dropdown-menu {
    z-index: 1050 !important;
    background-color: #1e2530; /* To'q fon */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 6px;
    margin-top: 5px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 150px;
}

/* Dropdown Ichidagi Linklar (Sizda .dropdown-item ishlatilgani uchun klass to'g'rilandi) */
.language-switcher .dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 14px;
    font-weight: 500;
    color: #e2e8f0 !important; /* To'q fonda yaqqol ko'rinadigan och kulrang/oqish matn */
    text-decoration: none;
    background-color: transparent;
    border-radius: 6px;
    font-size: 0.88rem;
    transition: all 0.15s ease;
}

/* Sichqoncha ustiga kelgandagi holat */
.language-switcher .dropdown-item:hover,
.language-switcher .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--jmmf-accent, #e67e00) !important; /* Hover bo'lganda accent rangga bo'yaladi */
    padding-left: 18px; /* Silliq surilish */
}

/* Aktiv (Tanlangan) til holati */
.language-switcher .dropdown-item.active {
    background-color: var(--jmmf-primary, #0d6efd) !important;
    color: #ffffff !important;
}

/* Tanlanmagan tillar oldiga nuqta qo'yish */
.language-switcher .dropdown-item:not(.active):hover::before {
    content: "• ";
    color: var(--jmmf-accent, #e67e00);
    font-weight: bold;
}

/* ==========================================================================
   3. MAIN NAVIGATION & LOGOS (Asosiy Menyu va Logotiplar)
   ========================================================================== */
.main-nav {
    z-index: 1030 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--jmmf-primary);
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 600;
}

/* Jurnal logosi o'lchami */
.journal-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.navbar-brand:hover .journal-logo {
    transform: scale(1.03);
}

/* Muassis logosi (MDIS) o'lchami */
.founder-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.founder-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--jmmf-primary);
}

/* Submit Article Tugmasi */
.btn-accent {
    background-color: var(--jmmf-accent);
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-accent:hover {
    background-color: #cc7000;
    box-shadow: 0 4px 12px rgba(230, 126, 0, 0.2);
    transform: translateY(-1px);
}

/* ==========================================================================
   4. HERO SECTION & SCOPUS COVER (Asosiy Banner va Jurnal Muqovasi)
   ========================================================================== */
.hero-section {
    background-color: var(--jmmf-primary);
    position: relative;
    padding: 80px 0 90px 0;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(244, 196, 48, 0.08) 0%, rgba(0,0,0,0) 50%);
    z-index: 1;
}

.text-light-gold { color: #ffe082 !important; }
.text-italic { font-style: italic; }
.bg-gold { background-color: var(--jmmf-gold); }
.text-justify { text-align: justify; }

.issue-meta-box {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
}

.text-gold {
    color: var(--jmmf-gold);
    font-weight: 600;
}

/* Muqova (Journal Cover) */
.journal-cover-frame {
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    display: inline-block;
    width: 260px;
}

.cover-inner {
    border: 2px solid #0f2c59;
    height: 330px;
    background: #fdfbf7;
}

.cover-line {
    width: 40px;
    height: 2px;
    background-color: var(--jmmf-primary);
    margin: 12px auto 0 auto;
}

/* HAQIQIY JURNAL MUQOVASI UCHUN STILLAR */
.journal-cover-wrapper {
    perspective: 1000px; /* Muqovaga yengil 3D effekt berish uchun zamin */
    display: inline-block;
}

.journal-real-cover {
    width: 250px;               /* Scopus andozasidagi ideal muqova eni */
    height: auto;               /* Bo'yini rasm proporsiyasidan kelib chiqib o'zi moslaydi */
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Chetidagi mayda yorug'lik chizig'i */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

/* Ustiga sichqoncha kelganda rasm xuddi kitobdek yengil oldinga buriladi */
.journal-cover-wrapper:hover .journal-real-cover {
    transform: rotateY(-5deg) scale(1.02);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.4) !important;
}

/* Current Issue Tugmasi */
.btn-gold-action {
    background-color: var(--jmmf-gold);
    color: #0f2c59 !important;
    font-weight: 700;
    border-radius: 50px;
    transition: 0.3s ease;
}

.btn-gold-action:hover {
    background-color: #e5b31a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 196, 48, 0.3);
}

/* ==========================================================================
   5. OAK ANNOUNCEMENT & SCOPES (OAK bayonoti va Ilmiy Yo'nalishlar)
   ========================================================================== */
.bg-oak {
    background-color: #18755c;
    color: #ffffff;
}

.oak-status-card {
    background-color: #f0faf6;
    border: 1px solid #c2ebd9;
}

.oak-badge-icon {
    width: 55px;
    height: 55px;
    background-color: #18755c;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.style-decree {
    line-height: 1.6;
    color: #344054 !important;
}

/* Yo'nalish kartochkalari (Scopes) */
.scope-card {
    border-left: 4px solid var(--jmmf-primary) !important;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    height: 100%;
    transition: 0.3s ease;
}

.scope-card:hover {
    border-left-color: var(--jmmf-accent) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 44, 89, 0.08);
}

.scope-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bg-blue-light { background-color: rgba(15, 44, 89, 0.1); color: var(--jmmf-primary); }
.bg-gold-light { background-color: rgba(244, 196, 48, 0.15); color: #b78a00; }
.bg-green-light { background-color: rgba(24, 117, 92, 0.1); color: #18755c; }

/* Title chizig'i */
.title-line {
    width: 60px;
    height: 3px;
    background-color: var(--jmmf-accent);
    margin-top: 10px;
}

/* ==========================================================================
   6. ARTICLE STRIPS (Maqolalar Ro'yxati)
   ========================================================================== */
.article-strip {
    transition: all 0.2s ease;
}

.article-strip:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.hover-accent {
    transition: color 0.2s ease;
}

.hover-accent:hover {
    color: var(--jmmf-accent) !important;
}

.italic-authors {
    font-style: italic;
    font-size: 0.9rem;
}

.doi-text {
    font-size: 0.85rem;
}

/* ==========================================================================
   7. PREMIUM SCOPUS FOOTER (Etag qismi va Indeksatsiya)
   ========================================================================== */
.jmmf-main-footer {
    background-color: #0b1523 !important; /* To'q baxmal ko'k */
    border-top: 4px solid var(--jmmf-accent);
}

.jmmf-main-footer .text-muted {
    color: #cbd5e1 !important; /* To'q fonda ko'rinadigan ochiq rang */
}

.footer-brand-info p strong {
    color: var(--jmmf-gold) !important;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.footer-founder-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 10px;
}

/* Linklar va ularning animatsiyasi */
.footer-links-list li {
    margin-bottom: 8px;
}

.footer-links-list li a {
    color: #a0aec0 !important;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links-list li a:hover {
    color: var(--jmmf-gold) !important;
    transform: translateX(4px); /* O'ngga surilish */
}

/* Kontaktlar */
.footer-contact-info li, 
.footer-contact-info li a {
    color: #e2e8f0 !important;
}

.footer-contact-info li a:hover {
    color: var(--jmmf-gold) !important;
    text-decoration: underline !important;
}

/* Indeksatsiya belgilari (Badges) */
.badge-idx {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.badge-idx:hover {
    background: rgba(244, 196, 48, 0.1);
    color: var(--jmmf-gold);
    border-color: var(--jmmf-gold);
    transform: translateY(-2px);
}

.jmmf-main-footer .text-start, 
.footer-legal-links {
    color: #94a3b8 !important;
}

.footer-legal-links a {
    color: #94a3b8 !important;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--jmmf-gold) !important;
}

/* ISSN BADGE INTEGRATSIYASINI YAXSHILASH */
.footer-issn-badge {
    color: #ffffff !important; /* ISSN raqami to'liq oppoq rangda yaqqol ko'rinadi */
    background: rgba(255, 255, 255, 0.1) !important; /* Orqa foni biroz ochroq bo'ladi */
}

.footer-issn-badge .text-white {
    color: var(--jmmf-gold) !important; /* "ISSN:" degan yozuv oltin rangda ajralib turadi */
}

/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES (Ekranlarga moslashuvchanlik)
   ========================================================================== */
@media (min-width: 992px) {
    .border-start-lg {
        border-left: 1px solid #e2e8f0 !important;
    }
}

@media (max-width: 991px) {
    .founder-wrapper {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px dashed #e2e8f0;
        width: 100%;
        justify-content: center;
    }
}