.header {
    background: linear-gradient(135deg, #1a0a35 0%, #0d0221 100%) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5) !important;
    position: relative;
    z-index: 9999;
}

.header__inner {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1180px;
    position: relative;
    width: min(100% - 32px, 1180px);
}

.header .logo {
    align-items: center;
    display: flex;
    float: left;
    gap: 10px;
    padding: 12px 0;
    text-decoration: none;
}

.header .logo__text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
}

.header .logo__text--primary {
    color: #c0392b;
}

.header .logo__text--accent {
    color: #f1c40f;
}

.header .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header .menu li a {
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.header .menu li a:hover {
    color: #f1c40f !important;
}

.header .menu li.add-post-menu a {
    background: linear-gradient(135deg, #c0392b, #7d3c98) !important;
    border-radius: 6px;
    color: #fff !important;
    font-weight: 700;
    padding: 8px 16px !important;
}

.header .menu-btn {
    height: 0 !important;
    left: -9999px !important;
    opacity: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    width: 0 !important;
}

.header .menu-icon {
    cursor: pointer;
    display: none;
    line-height: 1;
}

.header .menu-icon__bar {
    background: #fff;
    border-radius: 2px;
    display: block;
    height: 3px;
    margin: 5px 0;
    width: 25px;
}

@media (min-width: 769px) {
    .header__inner {
        align-items: center !important;
        display: flex !important;
        gap: 28px !important;
        justify-content: space-between !important;
    }

    .header .logo {
        flex: 0 0 auto !important;
        float: none !important;
        padding: 12px 0 !important;
    }

    .header .menu {
        align-items: center !important;
        display: flex !important;
        flex: 0 1 auto !important;
        float: none !important;
        gap: 5px;
        justify-content: center !important;
        max-height: none !important;
    }

    .header .menu li {
        float: none !important;
    }

    .header .menu li a {
        display: block;
        padding: 12px 16px !important;
    }

    .header .menu-icon {
        display: none !important;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .header__inner {
        gap: 12px !important;
        width: min(100% - 16px, 1180px);
    }

    .header .logo {
        padding: 12px 0 !important;
    }

    .header .logo__text {
        font-size: 18px !important;
    }

    .header .menu {
        gap: 2px;
    }

    .header .menu li a {
        font-size: 14px;
        padding: 12px 8px !important;
    }

    .header .menu li.add-post-menu a {
        padding: 8px 10px !important;
    }
}

@media (max-width: 768px) {
    .header__inner {
        align-items: center !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        min-height: 56px !important;
    }

    .header .logo {
        float: none !important;
        justify-content: center !important;
        margin: 0 auto !important;
        padding: 12px 58px !important;
    }

    .header .menu-icon {
        display: block !important;
        float: none !important;
        padding: 14px 16px !important;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
    }

    .header::after {
        content: none;
        display: none;
    }

    .header .menu {
        background: #1a0a35 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        clear: both !important;
        display: none !important;
        flex: 0 0 100% !important;
        float: none !important;
        width: 100% !important;
    }

    .header .menu-btn:checked ~ .menu {
        display: block !important;
    }

    .header .menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        float: none !important;
    }

    .header .menu li a {
        display: block;
        padding: 14px 24px !important;
    }

    .header .menu li.add-post-menu a {
        display: block !important;
        margin: 10px 20px !important;
        text-align: center;
    }
}
