﻿/* ==========================================================
   BirMerhaba
   Premium Header
   ========================================================== */

:root {
    --bm-primary: #6d35f2;
    --bm-primary-dark: #5424d6;
    --bm-purple: #8b2bea;
    --bm-pink: #ec3e91;
    --bm-pink-light: #f45b9e;
    --bm-text: #101b35;
    --bm-text-secondary: #65708a;
    --bm-border: #e8e8f3;
    --bm-bg-soft: #faf9ff;
    --bm-gold: #f2a900;
    --bm-gradient: linear-gradient( 120deg, #6338ed 0%, #8b2bea 52%, #ec3e91 100% );
    --bm-header-height: 66px;
}


/* ==========================================================
   HEADER
   ========================================================== */

.bm-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--bm-header-height);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(109, 53, 242, 0.10);
    box-shadow: 0 4px 22px rgba(33, 26, 70, 0.045);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.bm-header__container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 38px;
}


/* ==========================================================
   BRAND
   ========================================================== */

.bm-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none !important;
}

.bm-brand__logo {
    width: 46px;
    height: 42px;
    object-fit: contain;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.bm-brand:hover .bm-brand__logo {
    transform: translateY(-1px);
}

.bm-brand__name {
    display: flex;
    align-items: baseline;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.7px;
    color: var(--bm-text);
}

    .bm-brand__name span {
        font-weight: 400;
    }

    .bm-brand__name strong {
        font-weight: 750;
        background: var(--bm-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }


/* ==========================================================
   NAVIGATION
   ========================================================== */

.bm-nav {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 5px;
    margin-right: auto;
}

.bm-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 13px;
    color: var(--bm-text);
    font-size: 13px;
    font-weight: 550;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease, background-color 0.18s ease;
}

    .bm-nav__link:hover {
        color: var(--bm-primary);
    }

.bm-nav__link--active {
    color: var(--bm-primary);
    font-weight: 650;
}

    .bm-nav__link--active::after {
        content: "";
        position: absolute;
        left: 13px;
        right: 13px;
        bottom: 0;
        height: 3px;
        border-radius: 10px 10px 0 0;
        background: var(--bm-gradient);
    }


/* ==========================================================
   PUBLIC ACTIONS
   ========================================================== */

.bm-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bm-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

    .bm-btn i {
        font-size: 15px;
    }


/* Login */

.bm-btn--login {
    color: var(--bm-primary);
    background: #fff;
    border: 1px solid rgba(109, 53, 242, 0.45);
}

    .bm-btn--login:hover {
        color: var(--bm-primary-dark);
        background: #faf8ff;
        border-color: var(--bm-primary);
    }


/* Register */

.bm-btn--register {
    color: #fff;
    border: none;
    background: var(--bm-gradient);
    box-shadow: 0 7px 20px rgba(130, 47, 225, 0.18);
}

    .bm-btn--register:hover {
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 9px 24px rgba(130, 47, 225, 0.26);
    }


/* ==========================================================
   MEMBER ACTIONS
   ========================================================== */

.bm-member-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bm-action-icon {
    position: relative;
    width: 39px;
    height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--bm-text);
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

    .bm-action-icon i {
        font-size: 19px;
    }

    .bm-action-icon:hover {
        color: var(--bm-primary);
        background: #f6f2ff;
        transform: translateY(-1px);
    }


/* Notification badge */

.bm-action-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 20px;
    background: var(--bm-pink);
    color: #fff;
    font-size: 9px;
    font-weight: 750;
    line-height: 1;
}


/* Separator */

.bm-header__separator {
    width: 1px;
    height: 29px;
    margin: 0 9px;
    background: var(--bm-border);
}


/* ==========================================================
   GOLD
   ========================================================== */

.bm-gold {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    color: #8a6515;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    border-radius: 9px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

    .bm-gold i {
        color: var(--bm-gold);
        font-size: 18px;
    }

    .bm-gold:hover {
        color: #75530d;
        background: #fff9e9;
    }

.bm-gold--active {
    background: #fff9e9;
}


/* ==========================================================
   PROFILE
   ========================================================== */

.bm-profile {
    margin-left: 5px;
}

.bm-profile__button {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 3px 6px 3px 4px;
    border: 0;
    border-radius: 24px;
    background: transparent;
    color: var(--bm-text);
    transition: background-color 0.18s ease;
}

    .bm-profile__button:hover,
    .bm-profile__button[aria-expanded="true"] {
        background: #f8f6fd;
    }

    .bm-profile__button::after {
        display: none;
    }

.bm-profile__avatar,
.bm-profile-menu__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    background: var(--bm-gradient);
}

.bm-profile__avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.bm-profile__name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 650;
}

.bm-profile__chevron {
    margin-right: 3px;
    color: #8790a5;
    font-size: 10px;
}


/* ==========================================================
   PROFILE DROPDOWN
   ========================================================== */

.bm-profile-menu {
    width: 255px;
    margin-top: 9px !important;
    padding: 7px;
    border: 1px solid var(--bm-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 50px rgba(25, 21, 54, 0.13);
    overflow: hidden;
}

.bm-profile-menu__user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 8px 11px;
}

.bm-profile-menu__avatar {
    width: 42px;
    height: 42px;
    font-size: 14px;
}

.bm-profile-menu__user div {
    min-width: 0;
}

.bm-profile-menu__user strong {
    display: block;
    max-width: 165px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--bm-text);
    font-size: 13px;
}

.bm-profile-menu__user a {
    color: var(--bm-primary);
    font-size: 12px;
    text-decoration: none;
}

    .bm-profile-menu__user a:hover {
        text-decoration: underline;
    }

.bm-profile-menu .dropdown-divider {
    margin: 5px -7px;
    border-color: var(--bm-border);
    opacity: 1;
}

.bm-profile-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--bm-text);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s ease, background-color 0.15s ease;
}

    .bm-profile-menu .dropdown-item i {
        width: 18px;
        text-align: center;
        color: #68728a;
        font-size: 15px;
    }

    .bm-profile-menu .dropdown-item:hover {
        color: var(--bm-primary);
        background: #f8f5ff;
    }

        .bm-profile-menu .dropdown-item:hover i {
            color: var(--bm-primary);
        }

.bm-profile-menu__gold i {
    color: var(--bm-gold) !important;
}

.bm-profile-menu__logout {
    width: 100%;
    color: var(--bm-pink) !important;
}

    .bm-profile-menu__logout i {
        color: var(--bm-pink) !important;
    }


/* ==========================================================
   MOBILE
   ========================================================== */

.bm-mobile-toggle {
    display: none;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: #f7f4ff;
    color: var(--bm-primary);
    font-size: 18px;
}

.bm-brand__full-logo {
    display: block;
    width: 190px;
    height: 48px;
    object-fit: contain;
    object-position: left center;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 575.98px) {
    .bm-brand__full-logo {
        width: 145px;
        height: 44px;
    }
}

@media (max-width: 575.98px) {
    .bm-brand__full-logo {
        width: 150px;
        height: 42px;
    }
}
@media (max-width: 1199.98px) {
    .bm-brand__full-logo {
        width: 170px;
    }
}

@media (max-width: 1199.98px) {

    .bm-header__container {
        gap: 20px;
    }

    .bm-nav__link {
        padding-left: 9px;
        padding-right: 9px;
    }

    .bm-nav__link--active::after {
        left: 9px;
        right: 9px;
    }

    .bm-profile__name {
        display: none;
    }
}


@media (max-width: 991.98px) {

    :root {
        --bm-header-height: 60px;
    }

    .bm-nav {
        display: none;
    }

    .bm-brand__logo {
        width: 40px;
        height: 36px;
    }

    .bm-brand__name {
        font-size: 20px;
    }

    .bm-mobile-toggle {
        display: inline-flex;
    }
}


@media (max-width: 575.98px) {

    .bm-brand {
        gap: 5px;
    }

    .bm-brand__logo {
        width: 37px;
    }

    .bm-brand__name {
        font-size: 18px;
    }

    .bm-btn--login {
        display: none;
    }

    .bm-btn--register {
        min-height: 37px;
        padding: 0 12px;
        font-size: 12px;
    }

        .bm-btn--register i {
            display: none;
        }

    .bm-member-actions .bm-gold,
    .bm-member-actions .bm-header__separator,
    .bm-member-actions .bm-action-icon:first-child {
        display: none;
    }

    .bm-action-icon {
        width: 35px;
        height: 35px;
    }

    .bm-profile {
        margin-left: 0;
    }

    .bm-profile__avatar {
        width: 34px;
        height: 34px;
    }

    .bm-profile__chevron {
        display: none;
    }
}
/* =========================================================
   PROFILE AVATAR
   ========================================================= */

.bm-profile__avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    flex: 0 0 36px;
    display: block;
    overflow: hidden;
    border-radius: 50%;
}

    .bm-profile__avatar img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
        border-radius: 50%;
    }


/* Profile dropdown avatar */

.bm-profile-menu__avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex: 0 0 48px;
    display: block;
    overflow: hidden;
    border-radius: 50%;
}

    .bm-profile-menu__avatar img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
