/* OJS 3.4 Default Theme — Adabiy Meros header */

/* ==========================================
   1. LOGOTIP VA JURNAL NOMI (BOSILADIGAN BO'LISHI)
   ========================================== */
.pkp_site_name_wrapper,
.pkp_site_name_wrapper a,
.pkp_site_name_wrapper a.is_img {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 100 !important;
}

.pkp_site_name_wrapper a.is_img img {
    max-height: 55px !important;
    width: auto !important;
    margin-right: 15px !important;
}

.pkp_site_name_wrapper a.is_img::after {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    font-family: "Times New Roman", Georgia, serif !important;
    letter-spacing: .5px !important;
    white-space: nowrap !important;
    pointer-events: auto !important;
}

html[lang^="uz"] .pkp_site_name_wrapper a.is_img::after {
    content: '"Adabiy meros" ilmiy jurnali';
}

html[lang^="en"] .pkp_site_name_wrapper a.is_img::after {
    content: 'Scientific Journal "Adabiy Meros"';
}

html[lang^="ru"] .pkp_site_name_wrapper a.is_img::after {
    content: 'Научный журнал "Adabiy Meros"';
}

/* ==========================================
   2. YUQORI FOYDALANUVCHI BO'LIMI VA TILLAR (LOGIN/PROFIL TOG'RILANGAN)
   ========================================== */
#navigationUserWrapper {
    position: absolute !important;
    top: 10px !important;
    right: 20px !important;
    left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1000 !important;
    transform: none !important; /* Login/Profil tugmasi ekrandan chiqib ketishini to'xtatadi */
}

.custom_header_languages {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom_header_languages a {
    color: #fff !important;
    font-size: 0 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    opacity: .92;
}

.custom_header_languages a::after {
    font-size: 12px !important;
}

.custom_header_languages a:nth-of-type(1)::after {
    content: "EN";
}

.custom_header_languages a:nth-of-type(2)::after {
    content: "RU";
}

.custom_header_languages a:nth-of-type(3)::after {
    content: "UZ";
}

.custom_header_languages a:hover,
.custom_header_languages a:focus {
    opacity: 1;
    text-decoration: underline !important;
}

.custom_header_languages span {
    color: rgba(255, 255, 255, .55) !important;
}

#navigationUser {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_structure_sidebar .block_language {
    display: none !important;
}

@media (min-width: 901px) {
    #navigationUserWrapper {
        transform: none !important;
    }
}

@media (max-width: 900px) {
    #navigationUserWrapper {
        flex-wrap: wrap !important;
        gap: 10px 16px !important;
        transform: none !important;
    }

    .pkp_site_name_wrapper a.is_img::after {
        font-size: 18px !important;
        white-space: normal !important;
    }
}

/* ==========================================
   3. ASOSIY MENYUNI CHAP CHEKKAGA TAQASH
   ========================================== */
.pkp_structure_head .pkp_head_wrapper,
.pkp_head_wrapper,
header.pkp_structure_head,
.pkp_navigation_primary_wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

.pkp_navigation_primary_wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Menyuni logotip tagidan chapga to'liq surish */
.pkp_navigation_primary {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    margin-left: -30px !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.pkp_navigation_primary > li {
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_navigation_primary a {
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    padding: 6px 0 !important;
}

/* Search (Qidiruv) tugmasini o'ng tomonga taqash */
.pkp_navigation_primary_wrapper .pkp_search,
header .pkp_search {
    margin-left: auto !important;
    margin-right: 10px !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10 !important;
}

/* ==========================================
   4. INFORMATION BLOKINI YASHIRISH
   ========================================== */
.pkp_block_information .title,
.block_information .title,
.pkp_block_information .content li,
.block_information .content li {
    display: none !important;
}

.pkp_block_information,
.block_information {
    margin-top: -20px !important;
    padding-top: 0 !important;
}

/* Force logo + journal title to be clickable */
.pkp_site_name_wrapper {
    position: relative !important;
    z-index: 9999 !important;
}

.pkp_site_name_wrapper a.is_img {
    display: inline-flex !important;
    position: relative !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.pkp_site_name_wrapper a.is_img img,
.pkp_site_name_wrapper a.is_img::after {
    pointer-events: none !important;
}

.pkp_head_wrapper,
.pkp_structure_head,
.pkp_site_nav_menu,
#navigationUserWrapper,
.pkp_navigation_primary_wrapper {
    pointer-events: none;
}

.pkp_navigation_primary_wrapper a,
#navigationUserWrapper a,
.pkp_search,
.pkp_search_desktop {
    pointer-events: auto;
}