/* MOSCAP Core asset — FluentSnippets "TOP BAR (CSS)" (13-top-bar-css.php, run_at=wp_head)
   снипетээс 2026-11-22-нд нүүлгэсэн; includes/assets.php ачаална. Энэ толгойноос
   бусад код өөрчлөгдөөгүй.
*/

/* =============================================
   TOPBAR
============================================= */
.moscap-topbar {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent !important;
    z-index: 102;
}

.moscap-topbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 190px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
    z-index: -1;
    pointer-events: none;
}

.moscap-topbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ——— HEADER OFFSET ——— */

/* ——— On pages without a slider ——— */
.page-id-109 .moscap-topbar {
    position: relative !important;
    background: rgba(6, 15, 30, 0.8) !important;
}

.page-id-109 .site-header {
    top: 0 !important;
}

/* ——— SOCIAL ——— */
.moscap-topbar__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.moscap-topbar__social {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.moscap-topbar__social:hover {
    border-color: #006EB4;
    background: #006EB4;
    text-decoration: none;
}

.moscap-topbar__social svg {
    width: 12px;
    height: 12px;
}

/* ——— RIGHT ——— */
.moscap-topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.moscap-topbar__divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
}

/* ——— LANGUAGE ——— */
.moscap-topbar__lang {
    display: flex;
    align-items: center;
    gap: 6px;
}

.moscap-topbar__lang a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.moscap-topbar__lang a:hover {
    color: #fff;
    text-decoration: none;
}

.moscap-topbar__lang span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
}

/* ——— USER ——— */
.moscap-topbar__user {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.moscap-topbar__user svg {
    width: 14px;
    height: 14px;
}

/* ——— LOGOUT / LOGIN ——— */
.moscap-topbar__logout,
.moscap-topbar__login {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.moscap-topbar__logout:hover,
.moscap-topbar__login:hover {
    color: #fff;
    text-decoration: none;
}

.moscap-topbar__logout svg,
.moscap-topbar__login svg {
    width: 13px;
    height: 13px;
}

/* ——— RESPONSIVE ——— */
@media (max-width: 768px) {
    .moscap-topbar__inner {
        padding: 7px 24px;
    }

    .moscap-topbar__user,
    .moscap-topbar__logout span {
        display: none;
    }
}
