/*==================================================
    HIT AUCTION
    PUBLIC HEADER
    header.css
==================================================*/


/*==================================================
    GLOBAL
==================================================*/

.main-header,
.main-header *{
    box-sizing:border-box;
}


/*==================================================
    HEADER
==================================================*/

.main-header{

    position:sticky;

    top:0;
    left:0;

    width:100%;

    z-index:9999;

    background:rgba(255,255,255,.96);

    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);

    border-bottom:1px solid rgba(226,232,240,.8);

    box-shadow:
        0 8px 30px rgba(0,0,0,.06);

}


/*==================================================
    CONTAINER
==================================================*/

.main-header .container{

    width:100%;

    max-width:1320px;

    margin:0 auto;

    padding-left:20px;
    padding-right:20px;

}


/*==================================================
    NAVBAR
==================================================*/

.main-header .navbar{

    min-height:78px;

    padding:8px 0;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:25px;

}


/*==================================================
    LOGO
==================================================*/

.main-header .navbar-brand{

    display:flex;

    align-items:center;

    flex-shrink:0;

    text-decoration:none;

}


.main-header .navbar-brand img{

    width:auto;

    height:56px;

    max-width:240px;

    object-fit:contain;

    display:block;

}


/*==================================================
    NAVIGATION WRAPPER
==================================================*/

.main-header .navbar-collapse{

    flex:1;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:25px;

}


/*==================================================
    NAVIGATION
==================================================*/

.main-header .navbar-nav{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:6px;

    margin:0 auto;

    padding:0;

    list-style:none;

}


/*==================================================
    NAV ITEM
==================================================*/

.main-header .nav-item{

    margin:0;

    padding:0;

}


/*==================================================
    NAV LINK
==================================================*/

.main-header .nav-link{

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#444;

    font-size:15px;

    font-weight:600;

    padding:10px 14px;

    border-radius:10px;

    text-decoration:none;

    white-space:nowrap;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;

}


.main-header .nav-link:hover{

    background:#eef7fb;

    color:#2596BE;

}


.main-header .nav-link.active{

    background:#2596BE;

    color:#fff;

}


/*==================================================
    RIGHT SIDE
==================================================*/

.header-right{

    display:flex;

    align-items:center;

    justify-content:flex-end;

    gap:12px;

    flex-shrink:0;

}


/*==================================================
    LOGIN
==================================================*/

.header-login-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:7px;

    min-height:44px;

    padding:11px 20px;

    border-radius:12px;

    color:#2596BE;

    background:#eef7fb;

    border:1px solid rgba(37,150,190,.15);

    font-size:14px;

    font-weight:700;

    text-decoration:none;

    transition:.3s ease;

}


.header-login-btn:hover{

    color:#fff;

    background:#2596BE;

    transform:translateY(-2px);

}


/*==================================================
    REGISTER
==================================================*/

.header-register-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:7px;

    min-height:44px;

    padding:11px 20px;

    border-radius:12px;

    color:#fff;

    background:
        linear-gradient(
            135deg,
            #2596BE,
            #2563eb
        );

    font-size:14px;

    font-weight:700;

    text-decoration:none;

    box-shadow:
        0 8px 20px rgba(37,150,190,.25);

    transition:.3s ease;

}


.header-register-btn:hover{

    color:#fff;

    transform:translateY(-2px);

    box-shadow:
        0 12px 25px rgba(37,150,190,.35);

}


/*==================================================
    NOTIFICATION
==================================================*/

.header-notification-btn{

    position:relative;

    width:44px;

    height:44px;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#475569;

    background:#f8fafc;

    border:1px solid #e2e8f0;

    border-radius:12px;

    text-decoration:none;

    transition:.3s ease;

}


.header-notification-btn i{

    font-size:17px;

}


.header-notification-btn:hover{

    color:#2596BE;

    background:#eef7fb;

    border-color:rgba(37,150,190,.25);

    transform:translateY(-2px);

}


/*==================================================
    NOTIFICATION BADGE
==================================================*/

.notification-badge{

    position:absolute;

    top:-4px;
    right:-4px;

    min-width:18px;

    height:18px;

    padding:0 5px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#ef4444;

    color:#fff;

    border:2px solid #fff;

    border-radius:999px;

    font-size:10px;

    font-weight:800;

}


/*==================================================
    PROFILE WRAPPER
==================================================*/

.header-profile-wrapper{

    position:relative;

}


/*==================================================
    PROFILE BUTTON
==================================================*/

.header-profile-btn{

    display:flex;

    align-items:center;

    gap:9px;

    min-height:44px;

    padding:4px 10px 4px 5px;

    border:1px solid #e2e8f0;

    border-radius:14px;

    background:#fff;

    color:#334155;

    cursor:pointer;

    font-family:inherit;

    transition:.3s ease;

}


.header-profile-btn:hover{

    background:#f8fafc;

    border-color:rgba(37,150,190,.3);

    box-shadow:
        0 5px 18px rgba(0,0,0,.07);

}


.header-profile-btn.is-open{

    background:#eef7fb;

    border-color:rgba(37,150,190,.35);

}


/*==================================================
    AVATAR
==================================================*/

.header-avatar{

    width:36px;
    height:36px;

    flex-shrink:0;

    display:flex;

    align-items:center;
    justify-content:center;

    overflow:hidden;

    border-radius:50%;

    background:
        linear-gradient(
            135deg,
            #2596BE,
            #2563eb
        );

    color:#fff;

    font-size:14px;

    font-weight:800;

}


.header-avatar img{

    width:100%;
    height:100%;

    object-fit:cover;

}


.header-avatar-fallback{

    width:100%;
    height:100%;

    display:flex;

    align-items:center;
    justify-content:center;

    color:#fff;

}


/*==================================================
    USER NAME
==================================================*/

.header-user-name{

    max-width:130px;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    color:#334155;

    font-size:14px;

    font-weight:700;

}


/*==================================================
    PROFILE ARROW
==================================================*/

.header-profile-arrow{

    color:#64748b;

    font-size:11px;

    transition:.25s ease;

}


.header-profile-btn.is-open
.header-profile-arrow{

    transform:rotate(180deg);

    color:#2596BE;

}


/*==================================================
    PROFILE DROPDOWN
==================================================*/

.header-profile-dropdown{

    position:absolute;

    top:calc(100% + 12px);

    right:0;

    width:290px;

    overflow:hidden;

    background:#fff;

    border:1px solid #e2e8f0;

    border-radius:16px;

    box-shadow:
        0 20px 50px rgba(15,23,42,.16);

    opacity:0;

    visibility:hidden;

    transform:
        translateY(-8px)
        scale(.98);

    transform-origin:top right;

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;

    pointer-events:none;

}


.header-profile-dropdown.is-open{

    opacity:1;

    visibility:visible;

    transform:
        translateY(0)
        scale(1);

    pointer-events:auto;

}


/*==================================================
    DROPDOWN HEADER
==================================================*/

.profile-dropdown-header{

    display:flex;

    align-items:center;

    gap:12px;

    padding:18px;

    background:
        linear-gradient(
            135deg,
            #f0f9ff,
            #f8fafc
        );

    border-bottom:1px solid #e2e8f0;

}


/*==================================================
    DROPDOWN AVATAR
==================================================*/

.profile-dropdown-avatar{

    width:48px;
    height:48px;

    flex-shrink:0;

    display:flex;

    align-items:center;
    justify-content:center;

    overflow:hidden;

    border-radius:50%;

    background:
        linear-gradient(
            135deg,
            #2596BE,
            #2563eb
        );

    color:#fff;

    font-size:18px;

    font-weight:800;

}


.profile-dropdown-avatar img{

    width:100%;
    height:100%;

    object-fit:cover;

}


/*==================================================
    DROPDOWN USER
==================================================*/

.profile-dropdown-user{

    min-width:0;

    display:flex;

    flex-direction:column;

    gap:3px;

}


.profile-dropdown-user strong{

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    color:#1e293b;

    font-size:15px;

}


.profile-dropdown-user span{

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    color:#64748b;

    font-size:12px;

}


/*==================================================
    DROPDOWN MENU
==================================================*/

.profile-dropdown-menu{

    padding:8px;

}


/*==================================================
    DROPDOWN ITEM
==================================================*/

.profile-dropdown-item{

    display:flex;

    align-items:center;

    gap:12px;

    width:100%;

    padding:11px 10px;

    border-radius:10px;

    color:#334155;

    text-decoration:none;

    transition:.2s ease;

}


.profile-dropdown-item:hover{

    background:#eef7fb;

    color:#2596BE;

}


/*==================================================
    MENU ICON
==================================================*/

.profile-menu-icon{

    width:34px;
    height:34px;

    flex-shrink:0;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:9px;

    background:#f1f5f9;

    color:#64748b;

    font-size:14px;

}


.profile-dropdown-item:hover
.profile-menu-icon{

    background:#2596BE;

    color:#fff;

}


/*==================================================
    MENU TEXT
==================================================*/

.profile-menu-text{

    font-size:14px;

    font-weight:600;

}


/*==================================================
    FOOTER
==================================================*/

.profile-dropdown-footer{

    padding:8px;

    border-top:1px solid #e2e8f0;

}


/*==================================================
    LOGOUT
==================================================*/

.profile-dropdown-logout{

    display:flex;

    align-items:center;

    gap:12px;

    width:100%;

    padding:11px 10px;

    border-radius:10px;

    color:#dc2626;

    text-decoration:none;

}


.profile-dropdown-logout:hover{

    background:#fef2f2;

    color:#dc2626;

}


/*==================================================
    MOBILE TOGGLE
==================================================*/

.main-header .navbar-toggler{

    display:none;

    width:44px;

    height:44px;

    border:1px solid #e2e8f0;

    border-radius:10px;

    align-items:center;

    justify-content:center;

    background:#f8fafc;

    color:#334155;

    cursor:pointer;

}


/*==================================================
    TABLET
==================================================*/

@media(max-width:991px){

    .main-header .navbar{

        min-height:70px;

        flex-wrap:wrap;

    }


    .main-header .navbar-toggler{

        display:flex;

    }


    .main-header .navbar-collapse{

        display:none;

        width:100%;

        flex-direction:column;

        align-items:stretch;

        gap:10px;

        padding:12px 0 10px;

    }


    .main-header .navbar-collapse.is-open{

        display:flex;

    }


    .main-header .navbar-nav{

        width:100%;

        flex-direction:column;

        align-items:stretch;

        gap:4px;

    }


    .main-header .nav-link{

        width:100%;

        justify-content:flex-start;

        padding:12px 14px;

    }


    .header-right{

        width:100%;

        justify-content:flex-end;

        padding-top:5px;

    }

}


/*==================================================
    MOBILE
==================================================*/

@media(max-width:576px){

    .main-header .container{

        padding-left:15px;

        padding-right:15px;

    }


    .main-header .navbar-brand img{

        height:46px;

        max-width:190px;

    }


    .header-user-name{

        display:none;

    }


    .header-profile-dropdown{

        position:fixed;

        top:76px;

        left:12px;

        right:12px;

        width:auto;

    }


    .header-login-btn,
    .header-register-btn{

        padding:10px 13px;

        font-size:13px;

    }

}


/*==================================================
    VERY SMALL
==================================================*/

@media(max-width:400px){

    .header-login-btn span,
    .header-register-btn span{

        display:none;

    }


    .header-login-btn,
    .header-register-btn{

        width:42px;

        height:42px;

        padding:0;

    }


    .header-notification-btn{

        width:42px;

        height:42px;

    }

}