/* Mizban Header Styles */

.mz-header {
    width: 100%;
    z-index: 1000;
}

/* Level 1: Top Bar */
.mz-header-top {
    background-color: #ffffff00;
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.04);
    padding: 12px 0;
}

.mz-header-top-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mz-header-links {
    display: flex;
    gap: 20px;
}

.mz-header-links a {
    font-size: var(--mz-fs-sm);
    color: var(--mz-text-light);
}

.mz-header-links a:hover {
    color: var(--mz-primary);
}

.mz-header-trust {
    font-size: var(--mz-fs-xs);
    color: var(--mz-text-muted);
    opacity: 0.8;
}

/* Level 2: Main Nav */
.mz-header-main {
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.04);
    background-color: #fff;
    padding: 0px 0;
}

.mz-header-main-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mz-header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.mz-header-logo img {
    height: 53px;
    width: auto;
}

.mz-header-company-name {
    font-size: 9px;
    color: var(--mz-text-muted);
    margin-top: -3px;
    white-space: nowrap;
    font-family: var(--mz-font-main);
    letter-spacing: 0.3px;
    line-height: 1;
}



/* Services Menu Box */
.mz-header-nav {
    background: #ffffff00;
    padding: 5px 15px;
    border-radius: var(--mz-radius-md);
    margin: 0 30px;
    flex-grow: 1;
    max-width: 700px;
}

.mz-header-menu {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mz-header-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--mz-text-main);
    font-weight: 500;
    transition: var(--mz-transition);
}

.mz-header-menu li a:hover {
    color: var(--mz-primary);
}

.mz-header-icon {
    color: var(--mz-text-main);
    stroke-width: 1.8;
}

/* Auth & Affiliate */
.mz-header-auth {
    display: flex;
    align-items: center;
    gap: 25px;
}

.mz-header-affiliate {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mz-header-affiliate img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* Auth button specific tweaks if needed */
.mz-btn-login {
    padding: 8px 25px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.mz-btn-register {
    padding: 8px 25px !important;
    color: var(--mz-text-light);
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

/* Organizational (B2B) button group - separator line */
.mz-btn-group-org {
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid var(--mz-border-light);
}

/* Level 3: Stats Bar */
.mz-header-stats-bar {
    padding: 10px 0 10px 0;
}

.mz-header-stats {
    background-color: #ffff;
    padding: 15px;
    border-radius: var(--mz-radius-lg);
    text-align: center;
    box-shadow: 0px 10px 30px -5px rgba(200, 200, 210, 0.08);
    font-size: var(--mz-fs-md);
}

/* Mobile Toggle */
.mz-header-toggle {
    display: none;
    cursor: pointer;
    color: var(--mz-text-dark);
    z-index: 1001;
}

/* Mobile Menu Styles (2025-2026 Design) */
.mz-header-mobile {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: var(--mz-white);
    z-index: 1002;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-right: 1px solid var(--mz-border-light);
    padding: 80px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.mz-header-mobile.mz-active {
    left: 0;
}

.mz-header-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mz-header-mobile-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--mz-text-dark);
    font-family: var(--mz-font-bold);
    font-weight: 700;
    border-radius: var(--mz-radius-lg);
    background: transparent;
    transition: background-color 0.2s, color 0.2s;
}

.mz-header-mobile-list li a:hover {
    background: var(--mz-bg-light);
    color: var(--mz-primary);
}

.mz-header-mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--mz-border-light);
}

.mz-header-mobile-auth .mz-btn {
    width: 100%;
}

.mz-header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.mz-header-overlay.mz-active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 1024px) {
    /* Make header sticky and separated */
    .mz-header {
        position: sticky;
        top: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); /* Softer, more spread-out shadow */
        background-color: var(--mz-white); /* Pure white background */
    }

    /* Hide desktop elements */
    .mz-header-nav,
    .mz-header-links, 
    .mz-header-auth,
    .mz-header-top {
        display: none;
    }

    /* Show mobile toggle */
    .mz-header-toggle {
        display: block;
    }

    /* Adjust main header for more space */
    .mz-header-main {
        padding: 8px 0;
    }

    .mz-header-main-wrapper {
        justify-content: space-between;
    }
    
    .mz-header-logo img {
        height: 38px; /* Slightly adjusted logo size */
    }

    /* Redesigned Stats Bar for Mobile */
    .mz-header-stats-bar {
        padding: 0;
        background-color: var(--mz-white); /* Match header background */
        border-top: 1px solid var(--mz-border-light);
    }

    .mz-header-stats {
        border: none;
        background-color: transparent;
        padding: 12px 15px;
        font-size: var(--mz-fs-sm);
        font-weight: 500;
        color: var(--mz-text-main);
    }
}
